Create an initial algorithm of the basic steps


Program Assignment: Shipping Fees

The Acme Company sells Widgets at $2.00 each. A customer has the following options for shipping:

• Ground Delivery: 7 to 10 days $ 5.00
• Express Delivery:

o 2 days $ 10.00
o Overnight $ 20.00

Write a program using the steps in the lecture titled "Even More Algorithm Practice" from this module.

Be sure to do the following:

1) Prompt the User for how many Widgets they wish to purchase.

2) Error check the input to make sure that it's not zero.

• Use an outer IF/ELSE where the IF is used to display an error message if the input is zero and the ELSE is used for steps 3 through 12 below and for printing the receipt.

3) Prompt the User for the delivery option.

4) Compute the sub-total cost of the Widgets.

5) Compute sales tax on the sub-total cost of the Widgets. Use 8%.

6) Compute the total cost of the Widgets.

7) Determine the delivery cost.

• Use an IF/ELSE structure to determine Ground or Express fee.
• Nest an inner IF within the Express option to determine the 2 day or overnight fee.

8) Once the shipping fee has been selected, add it to the total cost of the Widgets.

9) Format all dollar amounts with two decimal places and add a dollar sign to each one.

10) Format the sales tax with two decimal places.

11) Only print out the receipt if the number of widgets is valid.

12) Print out the receipt showing the following:

Number of Widgets:
Sub-Total Cost:
Sales Tax:
Sub-Total with Tax:
Shipping Fee:
Total Cost:

You will also need to do the following for the prologue section:

1) Create an initial algorithm of the basic steps.
2) Develop the refined algorithm from the initial algorithm.

Format your assignment according to the following formatting requirements:

(1) The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

(2) The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

(3) Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Create an initial algorithm of the basic steps
Reference No:- TGS03140934

Now Priced at $80 (50% Discount)

Recommended (92%)

Rated (4.4/5)