Answered step by step
Verified Expert Solution
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 #
Purpose:
This experiment is designed to develop confidence with output manipulation, floating point arithmetic and strings.
Readings:
The experiment focuses upon the material regording inputoutput 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: and where is the radius of the ring and 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 ;
This will go BEFORE main, but after using namespace std:
A typical run would be:
Enter radius ring and radius cross section
For a ring with a radius and cross section radius
The volume :
The surface area :
Write a program to calculate the torque and diameter of a shaft. In order for a shaft with an allowable shear strength of pounds per inch to transmit a torque of in pounds, it must have a diameter of at least inches. If Phorsepower is applied to the shaft at the torque is computed by Your program should ask the user to enter values for P N and and calculate and display the torque and diameter of a shaft capable of transmitting that torque. To get the cube root, use:
pow :
In order to use pow, you will have to #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started