# Answer to Question #58409 in Software Engineering for Faisal Alqahtani

Question #58409

Demonstrate your ability to use proper commenting by writing a short program (a sequence of steps) that performs the following tasks below.

Set the initial values of the following variables: radius=4, height=6, density=3

Calculate base_area = pi * radius^2

Calculate volume = 1/3 * base_area * height

Calculate mass = volume * density

What does the program calculate and is it clear from your comments?

Set the initial values of the following variables: radius=4, height=6, density=3

Calculate base_area = pi * radius^2

Calculate volume = 1/3 * base_area * height

Calculate mass = volume * density

What does the program calculate and is it clear from your comments?

Expert's answer

#### Not answered

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment