Question: 2) Write a program that prompts a user to enter 3 angles(in degrees) between 0 and 180 degrees. Then print out a table that includes

 2) Write a program that prompts a user to enter 3

2) Write a program that prompts a user to enter 3 angles(in degrees) between 0 and 180 degrees. Then print out a table that includes the angle in degrees), it's sine, and it's cosine. Use the same table format as displayed in 2 above. You must use library functions to calculate the sin and cos. You must define a constant called PI and use that to convert your angles to radians. Test your program with 22, 77 and 110 degrees 3 Calculate the volume of a water bottle shown below. The otrcs de u ections,a cgylindhical piece and a spherical piece Define PI as a constant using one of the methods mentioned in class and use appropriate math library functions when performing calculations. Prompt the user for the radius of the spherical portion and the radius and height of the cylindrical portion. Calculate volumes of the spherical portion, the cylindrical portion, and the total volume of the bottle. Use the following formulas: Volume of cylinder: Volume of sphere: Print the individual volumes of the cylinder and spherical parts of the water as well as the total volume of the water bottle. Print your answers to 4 decimal places Test with values r(sphere) = 5 cm, r(cyl) =2 cm, and h = 8 cm

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!