Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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                    stop

Explanation / Answer

elseif(quantityOrdered > 12)
   {
     discount = .10;
    }
else
   {
     discount = 0;
   }

   total =ItemPrice * quantityOrdered;
   total = total - discount * total;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote