Problem 2 : Rearrange statements in Program

Problem 2 : Rearrange statements in Program

2-Consider the following program in which the statements are in the incorrect order. Rearrange the statements so that the program prompts the user to input the height and the radius of the base of a cylinder, and outputs the volume and surface area of the cylinder. Also modify the relevant output statements to format the output to two decimal places.

  1. Use the following data to test your program and take a screen shot using this data.

Exercise 2

Enter the height of the cylinder: 3

Enter the radius of the base of the cylinder: 1

Volume of the cylinder = 9.42

Surface area: 25.13

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper