Question: Write a multi - function program that displays the order status for a company that sells spools of copper wire. The program will ask the

Write a multi-function program that displays the order status for a company that sells spools of copper wire. The program will ask the user for the number of spools ordered, the percentage of the discount the customer receives, whether the customer receives a custom charge for shipping and handling of each spool or the standard charge, when custom charges are specified, the program asks the user for the custom shipping and handling charge per spool, and finally the number of spools in stock. The program will display an Order Summary on the screen showing: the number of spools back ordered, the number of spools ready to ship. The charges for the spools including any discount, the shipping and handling charges, and the total charges including shipping and handling.
The standard charge for each spool is $134.95. Some customers receive a discount. The standard shipping and handling charge per spool is $15. Some customers get a different charge per spool.
Use int variables for storing the number of spools and the number of spools in stock.
Use double variables for storing the percentage of the discount, the charges for the spools, the shipping and handling for the spools, and the total charges including shipping and handling.
Use a char variable to store the Y or N indicator of whether there is a custom shipping and handling charge per spool.
Sample Output:
Make your output look as much like the following as possible when developing in your IDE. Recall Zylabs uses preprogrammed input, so user input is not echo-printed.
Please enter the number of spools ordered: 10 Enter the discount percentage for the customer: 1.5 Does the order include custom shipping and handling charges? [Enter Y for Yes or N for No]: Y Enter the shipping and handling charge: 10 Enter the number of spools in stock: 2 Order Summary ==============================8 spools are on back order. 2 spools are ready to ship. The charges for 2 spools (including a 1.5% discount): $265.85 Shipping and handling for 2 spools: $20.00 The total charges (incl. shipping & handling): $285.85 Thank you, please shop again.

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 Programming Questions!