Question: You're developing a simple software routine for grocery shoppers to enter the names and prices of their items in a self-checkout machine shown on the
You're developing a simple software routine for grocery shoppers to enter the names and prices of their items in a self-checkout machine shown on the right (think of it like "honor system" shopping). Write a short program that: 1. Asks the user to enter how many items they're purchasing 2. Allocates new memory to store x number of item names and prices 3. Asks for and collects the name and price of each item they purchase 4. Prints out a list of all the items and prices along with a total 5. Releases any allocated memory when finished
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
