Question: Write a Item Shipping Calculator program that does the following: Prompt and retrieve the following input from the user (through the console): Item name Is

Write a Item Shipping Calculator program that does the following:

Prompt and retrieve the following input from the user (through the console):

Item name Is the item fragile (add in $2.00 if the item is fragile) The order total (without shipping) The destination to which the item will be shipped (USA, Canada, Australia)

Use the following table to determine the calculations to perform:

Write a Item Shipping Calculator program that does the following: Prompt and

If the item is fragile add $2.00 to the shipping cost.

Format the output exactly as in the following image:

retrieve the following input from the user (through the console): Item name

To receive full credit the following requirements must be met:

There can be no magic numbers in your program. All static values must be defined as constants.

If the user enters an incorrect value for the question "Is the item fragile" or "Please enter your destination" the program should indicate that an incorrect value was entered and then exit the program as in the following image.

Is the item fragile (add in $2.00 if the item is fragile)

The Program should perform as intended with either uppercase or lowercase text entry (e.g. the user can enter either "y" or Y").

Use stream manipulators and not hard-coded white space to format your output.

The program should not only write to the console window but also to a file named "Order.txt"

Ship to Canada Order Total Ship to USA Ship to Australia Less than $50.00 $10.00 $6.00 $8.00 $9.00 $14.00 $50.01 to $100.00 $12.00 $100.01 to $150.00 $12.00 $15.00 $17.00 Free Free Free Over $150.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create an Item Shipping Calculator program in C follow these steps Step 1 Define Constants Define ... View full answer

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!