You need to write a program that will allow a customer to select the things that they want and total them up with a receipt (for simplicity there is no tax).

technical writing

Description

You need to write a program that will allow a customer to select the things that they want and total them up with a receipt (for simplicity there is no tax). The program will allow you to keep processing customers until closing. At closing, your program should allow you to print out every receipt for the entire day, and then print out the grand total of sales for the day and the amount sold for each item.


Hints:

  • Start by writing a program that loads a list of items into an array. ( 20 % )
  • Edit your program so that if the user inputs an item's name, you can match it to the array to retrieve the cost of that item in that array. ( 30 % )
  • Once that is working, edit that program so that it loops and asks the user for items repeatedly until they are done. ( 20 % )
  • Now edit the program so that it remembers the items purchased and can print out a receipt for those items. ( 15 % )
  • Next, change your program to handle multiple customers and you are done. ( 15 % )

 


Related Questions in technical writing category