Rewrite the following pseudocode so the discount decision andcalculations are in
ID: 3608743 • Letter: R
Question
Rewrite the following pseudocode so the discount decision andcalculations are in a module.. start read customerRecord if quantityOrdered > 100 then discount = .20 else ifquantityOrdered > 12 then discount = .10 endif endif total = priceEach * quantityOrdered total = total - discount * total print total stop Rewrite the following pseudocode so the discount decision andcalculations are in a module.. start read customerRecord if quantityOrdered > 100 then discount = .20 else ifquantityOrdered > 12 then discount = .10 endif endif total = priceEach * quantityOrdered total = total - discount * total print total stopExplanation / Answer
elseif(quantityOrdered > 12)
{
discount = .10;
}
else
{
discount = 0;
}
total =ItemPrice * quantityOrdered;
total = total - discount * total;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.