The diameterd (in inches) of a rope needed to lift a weight of t tons is given by the formula: V15t d where t = 3. 14159 Declare a constant for PI = 3.14159 (don't forget to capitalize PI). Use the constant in your calculations. %3D Ask for and get the weight IN POUNDS, and tell the diameter of rope needed to lift the weight. Example #1: If the user entered 1000 pounds, the output should be: To lift 1000 pounds, the rope's diameter should be 0.872 inches Example #2: If the user entered 3800 pounds the output should be: To lift 3800 pounds, the rope's diameter should be 1.699 inches Note: 1. 2000 pounds = 1 ton 2. The rope's diameter should display with 3 decimal places
The diameterd (in inches) of a rope needed to lift a weight of t tons is given by the formula: V15t d where t = 3. 14159 Declare a constant for PI = 3.14159 (don't forget to capitalize PI). Use the constant in your calculations. %3D Ask for and get the weight IN POUNDS, and tell the diameter of rope needed to lift the weight. Example #1: If the user entered 1000 pounds, the output should be: To lift 1000 pounds, the rope's diameter should be 0.872 inches Example #2: If the user entered 3800 pounds the output should be: To lift 3800 pounds, the rope's diameter should be 1.699 inches Note: 1. 2000 pounds = 1 ton 2. The rope's diameter should display with 3 decimal places
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 15RQ
Related questions
Question
Hi, I need to solve this problem with C++
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole