subject

Write a program that calculates the shipping charges for parcel. The program should ask the user to enter two floating point values: The weight of a parcel in pounds
The shipping rate per pound
The program calculates and displays the total shipping charges based on the parcel’s weight and shipping rate per pound.
Your program should print dollars and cents with two decimal places such as 32.85, and not 32.8467777.
Hint: Until we learn how to format output, we will use this little trick. You can round a floating-point value to the nearest hundredth by adding 0.005, multiplying by 100, converting the result to an integer, and then dividing by 100. This trick is not perfect but works well with most values.
Here is a sample of what a typical run of this program looks like where the user entered the values 4.75 for the weight and 2.55 for the shipping rate per pound:
Shipping Charges Calculator
Enter the weight of your parcel in pounds: 4.75
Enter the shipping price per pound: 2.55
The weight of your parcel is 4.75 pounds
The shipping price per pound is $ 2.55
The shipping charges for your parcel is $ 12.11
NOTE: Please remember that your program will be graded in terms of:
correctness: it performs the calculations correctly and uses proper arithmetic expressions: 75% (graded by Zybooks)
code style: good variable names, comments, proper indentation and spacing: 25% (grade by the TAs)
This program code is Python

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
Write a program that calculates the shipping charges for parcel. The program should ask the user to...
Questions
question
Mathematics, 12.02.2020 02:25
question
History, 12.02.2020 02:25
question
Mathematics, 12.02.2020 02:25
question
Mathematics, 12.02.2020 02:25
Questions on the website: 13722360