Question: using c++ and Loop: You are tasked with writing a program to process sales of a certain commodity. Its price is volatile and changes throughout

using c++ and Loop:

using c++ and Loop: You are tasked with writing a program to

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. 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 Transactions processed: Units Sold Average Units per Order: Largest Transaction: Smallest Transaction: T tal Revenue: Average Revenue: 10 301 30.10 1075.00 97.30 $2849.80 $284.98

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!