Lesson A7 - Simple I/O |
|
|
GroceryList Background: Young college students who are living alone for the first time often find grocery shopping to be one of the biggest pains. Besides the simple fact that they are busy and don’t have time to go to the store, it is often difficult to add up and calculate how much money is needed to buy everything that has been put into the shopping cart. This program will help to simplify that problem. Assignment: You will write a program that will accept a list of 5 grocery items along with their prices. The program should calculate the total cost of the items on a line-by-line basis and format the output so it looks clean and even. Instructions:
|
|