Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Experiment # 0 3 Purpose: This experiment is designed to develop confidence with output manipulation, floating point arithmetic and strings. Readings: The experiment focuses

Lab Experiment #03
Purpose:
This experiment is designed to develop confidence with output manipulation, floating point arithmetic and strings.
Readings:
The experiment focuses upon the material regording input/output and C++ mathematical expressions in our text.
Instructions:
Given a circular ring, for example a piece of garden hose made into a circle and joined at the ends, you can calculate the volume and surface area by using the formulos: V=22Rr2 and S=42Rr where R is the radius of the ring and r is the radius of the cross section of the hose. Note illustration at right. Write a program to ask for those two radii and display the Volume and surface area.
For PI, use:
const double ?PI=3.14159;
This will go BEFORE main, but after using namespace std:
A typical run would be:
Enter radius of ring and radius of cross section
25.753
For a ring with a radius of25.750 and cross section radius of
3.000
The volume is:
The surface area 13:,374.554
Write a program to calculate the torque and diameter of a shaft. In order for a shaft with an allowable shear strength of S pounds per inch ?2 to transmit a torque of T in pounds, it must have a diameter of at least D=1+f53 inches. If Phorsepower is applied to the shaft at Nrpm, the torque is computed by T=63000NN. Your program should ask the user to enter values for P. N and S and calculate and display the torque and diameter of a shaft capable of transmitting that torque. To get the cube root, use:
D= pow (16**Ts,0.333) :
In order to use pow, you will have to #include PNS
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

Step: 3

blur-text-image

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

The nature and importance of the global marketplace.

Answered: 1 week ago