Question: Ex . 2 - Hundred of a number Develop a program that reads an integer from the keyboard and prints the digit corresponding to the

Ex.2- Hundred of a number
Develop a program that reads an integer from the keyboard and prints the digit
corresponding to the hundreds place.
NOTE: In the examples below, bold text represents the user's typing, and italicized text
represents the program's output.
Example 1:
2500
5
Example 2:
2031
0
Example 3:
6975
9
Ex.3- Sphere Volume
Develop a program that reads a real number representing the diameter (in meters) of a
sphere. Calculate and print the volume of this sphere.
Remember that the volume of a sphere is given by the formula:
V=43R3
Use =3.14
NOTE: In the examples below, bold text represents the user's typing, and italicized text
represents the program's output.
Example 1:
3
14.13
Example 2:
10
523.333
 Ex.2- Hundred of a number Develop a program that reads an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!