Question: C++ using loops. Dont use arrays Instructions: You are tasked with writing a program to process sales of a certain commodity. Its price is volatile
C++ using loops. Dont use arrays

Instructions: You are tasked with writing a program to process sales of a certain commodity. Its price is volatile and changes throughout the day. The input will come from the keyboard and will be in the form : of number of items and unit price 36 9.50 which means there was a sale of 36 units at 9.50. Your program should read in the transactions (Enter at least 10 of them). Indicate the end of the list by entering -99 0. After the data is read, display number of transactions, total units sold, average units per order, largest transaction amount, smallest transaction amount, total revenue and average revenue per order. A typical run would be: Enter transactions -99 0 to stop Transaction # 1 : 30 9.75 Transaction # 2: 22 8.50 Transaction # 3: 15 7.95 Transaction # 4: 12 9.00 Transaction # 5: 16 8.55 Transaction # 6: 36 7.99 Transaction # 7: 100 10.75 Transaction # 8: 43 9.99 Transaction # 9: 14 6.95 Transaction # 10: 13 8.98 Transaction # 11: -99 0 TRANSACTION PROCESSING REPORT 10 301 30.10 1075.00 97.30 $ 2849.80 $284.98 Transactions processed: Units Sold: Average Units per Order: Largest Transaction: Smallest Transaction: Total Revenue: Average Revenue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
