Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can I please get on this in Python. I've done it in C++ but can't run it in Python 3. Shipping Charges The Fast Freight
Can I please get on this in Python. I've done it in C++ but can't run it in Python
3. Shipping Charges The Fast Freight Shipping Company charges the following rates (per 500 miles shipped): 1. Number Guessing Game Write a program for players to guess the number that the program randomly generated. Your program should randomly generate an integer between 1 and 10. After a player guessing a number, your program should display "Too small", "Too large", or "That's it!". Weight of Package (in Kilograms) 2 kg or less Over 2 kg but not more than 6 kg Over 6 kg but not more than 10 kg Over 10 kg but not more than 20 kg Rate $1.10 $2.20 $3.70 $4.80 Sample run #1: Guess a number between 1 and 10? 9 Too large! Write a program that asks for the weight of the package and the distance it is to be shipped, and then displays the charges. Sample run #2: Guess a number between 1 and 1073 Too small! Sample run #1: Guess a number between 1 and 10? 6 That's it! Sample run 1: Weight (kg): 15 Distance (mi): 800 Fee: $9.6 2. Software Sales Sample run 2: Weight (kg): 15 Distance (mi): 300 Fee: $4.8 A software company sells a package that retails for $100. Quantity discounts are given according to the following table. Quantity Discount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Sample run 3: Weight (kg): 5 Distance (mi): 501 Fee: $4.4 Write a program that asks for the number of units sold and computes the total cost of the purchase. Sample run 1: How many packages? 5 Total: $500 Sample run 2: How many packages? 15 Total: $1200 Sample run 3: How many packages? 200 Total: $10000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started