Activity #2 A metric ton is 35,273.92 ounces_ Write program that reads in the weight of a package of breakfast cereal in ounces and then outputs the weight in metric tons_
Added by Wendy W.
Step 1
You need to write a program that converts the weight of a package of breakfast cereal from ounces to metric tons. A metric ton is equivalent to 35,273.92 ounces. Show more…
Show all steps
Your feedback will help us improve your experience
Sanchit Jain and 99 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(Convert pounds into kilograms) Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. Here is a sample run:
Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds. output both the weights rounded to two decimal places. (note that 1 kilogram equals 2.2 pounds.) format your output with two decimal places.
Shelayah R.
Manufacturing The acceptable weights for a 20 -ounce cereal box are given by $$|x-20| \leq 0.75,$$ where $x$ is measured in ounces. Determine the high and low weights for the cereal box.
Precalculus Review
Absolute Value and Distance on the Real Number Line
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD