Project #82241 - Looping 2

There are two parts to this assignment.

Part 1

Examine the pseudocode sample provided, and explain what it does line by line.

Unit 4 Pseudocode Sample
Description: this logic calculates the total order

Program: totalOrder

               Create variable itemsList as array     

               Create variable totalOrder as double     

               Create variable listItemPrice as double     

               itemList = call Function getItemListFromUser     

               for (each item in itemsList)

                               listItemPrice = get price for item

               totalOrder = totalOrder + listItemPrice     

               end loop

               Display totalOrder

End program

Part 2

Present a solution using pseudocode and a flowchart similar to what you saw in Part 1.

 

    Identify the logic needed to apply a discount on all items in the shopping cart.

    Verify that the logic captures the discount coupon and the list of items from the user.

    Use the loop to visit all items in the shopping cart, and adjust their prices based on the coupon value.

    Verify that the adjusted prices display on the screen.

    Utilize loop structures in the solution.

 

Subject Computer
Due By (Pacific Time) 09/21/2015 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy