Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program is done on Python: Willie the Welder has asked you to assist him in his work. Willie's job is to take two pipes

This program is done on Python:
Willie the Welder has asked you to assist him in his work. Willie's job is to take two pipes and weld them together. Each pipe has a specific length, measured in feet and inches.
For example, if the first pipe is 7 feet and 8 inches and the second pipe is 9 feet and 2 inches, the welded pipe would be 16 feet and 10 inches. If the first pole is 4 feet and 9 inches and the second pipe is 5 feet and 10 inches, the welded pipe will be 10 feet and 7 inches (not 9 feet and 19 inches). Your job is to write a program that will input the feet and inches of each pipe (4 int(input statements), add the lengths of the two pipes (which are input with text boxes) and to print the combined length of the welded pipes.
Please keep in mind that there are 12 inches in a foot. Your final answer should not show more than 11 inches.
Here is some sample data so that you can check your work. Assume that the number of inches is an integer between 0 and 11.
\table[[\table[[First],[Pipe],[Feet]],\table[[First Pipe],[Inches]],\table[[Second],[Pipe Feet]],\table[[Second],[Pipe],[Inches]],\table[[Total],[Feet]],\table[[Total],[Inches]]],[4,2,5,7,9,9],[3,11,2,10,6,9],[3,0,4,0,7,0],[2,8,3,4,6,0
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions