Order Status(50pts) (write a program using Python)
The Middletown Wholesale Copper Wire Company sells spools of copper
wiring for $100 each and ships them for $10 a piece. Write a
program that displays the status of an order. It should use two
functions.
getOrderInfo (order, stock,
specialCharges)
displayStatus( numOrdered, inStock,
unitShipChg)
The first function asks for the following data and stores the
input values in reference parameters.
The number of ordered spools ready to ship from current
stock.
The number of ordered spools on backorder (if the number ordered
is greater than what is in stock).
The total selling price of the portion ready to ship (the number
of spools ready to ship times $100).
Total shipping and handling charges on the portion ready to
ship.
Total of the order ready to ship.
The shipping and handling parameter in the second function
should have the default argument 10.00.
sample outputs:
How many spools were ordered? 10 How many spools are in stock? 12 Amount of any special shipping charges (per spool) above the regular $10.8e per spool rate ( for none): 10 *** Order Summary *** Spools ordered Spools in this shipment: 10 10 Charges for this shipment Spool charges: $ 1000.00 Shipping charges: $ 200.00 Total this shipment: $1280.89 C:\Users\facuser source repos\Project1\x64\Debug Project1.exe (process 27212) exited with code e. Press any key to close this window ... How many spools were ordered? 10 How many spools are in stock? 9 Amount of any special shipping charges (per spool) above the regular $10.00 per spool rate ( for none): 18 *** Order Summary Spools ordered: Spools in this shipment: Spools back ordered: 10 9 1 Charges for this shipment Spool charges: $ 900.00 Shipping charges: $ 180.00 Total this shipment: $ 1080.00 C:\Users\facuser source repos Project1\x64\Debug\Project1.exe (process 25752) exited with code @.
Order Status(50pts) (write a program using Python) The Middletown Wholesale Copper Wire Company sells spools of copper w
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Order Status(50pts) (write a program using Python) The Middletown Wholesale Copper Wire Company sells spools of copper w
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!