The success of ServerBox Co. has led to the hiring of thousands of workers from various...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The success of ServerBox Co. has led to the hiring of thousands of workers from various countries, each using a different measurement system. To aid the company, a conversion script is necessary. The script should ask the user for four values in centimeters and convert them to their equivalent in yards, feet, and inches. Make sure you use a for loop to avoid repetition of code. Validate the input and do not accept any value less than zero. The output should be formatted in four columns, with two decimal places for each value, as shown in the example. Input (cm) 0 50 100 312 Yards 0 0.55 1.09 3.41 Feet 0 1.64 3.28 10.24 Inches 0 19.69 39.37 122.83 (Needed conversions: 1 centimeter = 0.393700787 inches; 1 foot = 12 inches; 1 yard = 3 feet) The success of ServerBox Co. has led to the hiring of thousands of workers from various countries, each using a different measurement system. To aid the company, a conversion script is necessary. The script should ask the user for four values in centimeters and convert them to their equivalent in yards, feet, and inches. Make sure you use a for loop to avoid repetition of code. Validate the input and do not accept any value less than zero. The output should be formatted in four columns, with two decimal places for each value, as shown in the example. Input (cm) 0 50 100 312 Yards 0 0.55 1.09 3.41 Feet 0 1.64 3.28 10.24 Inches 0 19.69 39.37 122.83 (Needed conversions: 1 centimeter = 0.393700787 inches; 1 foot = 12 inches; 1 yard = 3 feet)
Expert Answer:
Answer rating: 100% (QA)
Heres a Python script that will ask the user for four values in centimeters validat... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
The following information pertains to the inventory of Parvin Company during Year 2. January 1 April 1 October 1 Beginning Inventory Purchased Purchased 500 units @ $34 2,200 units @ $39 700 units @...
-
Problem 6 (6 points) Consider the sequence of continuous functions {fn} on [0, 1] given by fn(2): = {19 nx 0x <1/n 1/n x 1 Show that {f} has no subsequence which is convergent in uniform norm. (Hint:...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Your geothermal heat pump is used to heat your house in the winter. The heat pump is operated as a vapor-compression cycle. The design is such that there must be a 10 degree temperature difference...
-
A particle is confined within a box with perfectly rigid walls at x = 0 and x = L. Although the magnitude of the instantaneous force exerted on the particle by the walls is infinite and the time over...
-
A company that manufactures classroom chairs for high school students claims that the mean breaking strength of the chairs is 300 pounds. One of the chairs collapsed beneath a 220-pound student last...
-
Consider the gasoline mileage data in Table B.3. a. Does the correlation matrix give any indication of multicollinearity? b. Calculate the variance inflation factors and the condition number of...
-
Seaforth International wrote off the following accounts receivable as uncollectible for the year ending December 31, 2016: Customer __________________Amount Kim Abel ........................... $...
-
1. Briefly describe the Balanced Scorecard approach to control. Explain how it differs from the traditional approach to control used in most companies. 2. Briefly differentiate between active...
-
Lang and Thomas, a local CPA firm, has been asked to bid on a contract to perform audits for three counties in its home state. Should the firm be awarded the contract, it must hire one new staff...
-
Consider the following mathematical model: Max Z = 5x +y subject to 4x + 5y 20 x-2y2-2 x 0,x 0 a. Find the optimal solution using graphical method. (15 marks) b. Report the screenshot of the...
-
Your customer is hiring a vehicle as follows: Hyundai Elantra or similar - Automatic Pick up: 1900 10 April Drop off: 1900 15 April They would like to reduce their excess by paying the Collision...
-
You throw a 170 g Frisbee whose radius is 7 cm. Your friend throws a 140 g Frisbee whose radius is 10 cm. Explain how the experience of throwing the two Frisbees differs from one another
-
6 (3 points) Retake question Saved An electric steel kettle weighing 0.5 kg and with a maximum output of 990.0 W has a temperature of 25 oC and is filled with 3.0 L of water at 10 oC. The system is...
-
If a parallax error were to cause the final temperature to be recorded as 0.5C too high in the first run for copper, how much of a difference would that make in the calculation of % error? Show...
-
Determine the amplitude X of the steady-state motion of the 20-kg mass if (a) c = 426 N.s/m and (b) c = 0. Assume m = 20 kg, k = 122 kN/m, F = 910cos87t N. Answers: (a) X = k m F i mm (b) X= i mm
-
What are the advantages of star-delta starter with induction motor?
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
Sanders Manufacturing Company produces electronic components on a job order basis. Most business is gained through bidding on jobs. Most firms competing with Sanders bid full cost plus a 30% markup....
-
Characteristics of a MACS: multiple performance measures What is the advantage of having multiple measures of performance?
-
When is a cost variance investigation undertaken under kaizen costing?
-
Find the probability of an IQ less than 85.
-
If 25 women are randomly selected, find the probability that the mean of their red blood cell counts is less than 4.444. Assume that red blood cell counts of women are normally distributed with a...
-
Mensa International calls itself the international high IQ society, and it has more than 100,000 members. Mensa states that candidates for membership of Mensa must achieve a score at or above the...
Study smarter with the SolutionInn App