
First, load the scores in your array. Second, display the contents of the array in order. Third, display the array in reverse order. Fourth, calculate the average of the five scores entered in the array. Finally, the algorithm should display all the homework scores in the array that are larger than the previously calculated average. Make sure you use some output statements to clarify all the details you are displaying, being cautious about spelling and communicating to your user
2.Customers will not know exactly how many items they will purchase, so using a for-loop on this lab is not allowed.
Accept the dollar value of each item purchased from the user until the user is finished.
When purchases are complete, enter a sentinel value of -1 (Make certain you do not include the -1 sentinel value in your total).
Keep track of the total dollar amount of all fireworks purchased.
Keep a tally of the number of items purchased.
If more than 20 items were purchased, give your customer a 10% discount on the total purchases.
Once purchases are complete, display the total number of items purchased, the average price of the items, the total of all fireworks purchased, any discount if applicable, and the total of all fireworks purchased minus the discount.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.