Problems: Program to add two distances in the inch-feet system Input Description: Enter 1st distance Enter teet: Enter inch: Enter 2nd distance Enter feet: Enter inch: Output Description: Sum of distances \( = \) Result For example: \begin{tabular}{|l|l|} \hline Input & Result \\ \hline 23 & Sum of distances \( =57^{\prime}-11.0^{-} \) \\ 8.6 & \\ 34 & \\ 2.4 & \\ \hline \end{tabular}
Added by Fernando P.
Close
Step 1
Step 1: Define the problem: We need to create a program that can add two distances together where the distances are given in feet and inches. Show more…
Show all steps
Your feedback will help us improve your experience
Ivan Kochetkov and 91 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 feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meter. Here is a sample run:
Bcrypt_Sha256$$2B$12$We1Wwocamog01O5I.V2Tkouxdh4Ofnmgpwkor7Leaonfpu0Ubfpua B.
Add or subtract as indicated. $$ 2 \mathrm{ft} 8 \mathrm{in} .+3 \mathrm{ft} 4 \mathrm{in} $$
Measurement and Geometry
U.S. Customary Units of Measurement
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD