Question: Write a program in a script file that calculates the cost of shipping a package according to the following price schedule: The program asks the

Write a program in a script file that calculates the cost of shipping a package according to the following price schedule:
Write a program in a script file that calculates the

The program asks the user to enter the type of service (Ground, Express, or Overnight) and the weight of the package (two numbers. First for number of pounds and second for number of ounces.) The program then displays the cost for the shipment. Run the program three times for the following cases:
(a) Ground 2 lb 7 oz.
(b) Express 0 lb 7 oz.
(c) Overnight 5 lb 10 oz.

Weight Type of 005lb 0.5-5b service More than 5 lb Ground0.701.18+S0.42 for every $4.96+ S0.72 for every (5-7 days) S0.06/oz additional 0.5 Ib (or additional lb (or frac- fraction) tion Express2.40$4.40+$1.20 for every S15.20 $1.80 for every (3-4 days) S0.25/oz additional 0.5 Ib (or additional lb (or frac- fraction). tion). Overnight 12.20$18.60+S4.80 for every $61.80+$6.40 for every (One day) 0.80/oz additional 0.5 lb (or additional lb (or frac- fraction). tion

Step by Step Solution

3.47 Rating (186 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc for j13 serviceinputPlease input the type of service G for Ground E for Expres... 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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (711).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!