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
icon
Related questions
Question

Hi, I need to solve this problem with C++ programming language. Thank you. 

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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Introduction to computer system
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole