Question: This program will demonstrate nested loops. Create a Java program that asks for a number of orders to process and use a loop to handle
This program will demonstrate nested loops. Create a Java program that asks for a number of orders to process and use a loop to handle the number the user gives. For each order the program needs to ask the user for how many items are going to be entered for that order In a loop for each order have it go the number of times the user entered (of how many items for that order) and ask the user for an item price and add it to a total for the order After the inner loop getting the item prices (for the current order) is over show the total to the user as well as adding it to a grand total. At the end of the program show the grand total of all orders to the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
