Write a program that reads the radius of a sphere and


Question: 1. Write a program that reads the radius of a sphere and prints its volume and surface area. Use the following formulas. Print the output to four decimal places. r represents the radius.

Volume = 4Πr3
                3

Surface Area = 4Πr2

2. Write a program that reads the two sides and the height of a trapezoid from the user. Compute the area of the trapezoid using the formula given below, in which h represents the vertical height of the trapezoid and a and b represent the two sides of a trapezoid. Print the area to two decimal places

Area = (a + b) x h
              2

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that reads the radius of a sphere and
Reference No:- TGS02318484

Expected delivery within 24 Hours