Question: 1 . Start 2 . Create a list of items with their prices. Items = { Item 1 : 5 0 , Item
Start Create a list of items with their prices. Items Item: "Item: "Item: "Item: Prompt the user to enter their name Display the list of items and their prices Initialize totalCost For each item: a Prompt the user to enter the quantity for that item. b Calculate the cost for that item: itemCost price quantity. c Add itemCost to totalCost Check if totalCost : a If true, apply discount: finalCost totalCost b If false, finalCost totalCost Display the final bill, including: a Customer name b Items purchased with quantities and item costs c Total cost and discount if applicable Write the bill details to a text file EnD
Write the algorithm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
