☑Kizspy.me
exam. If you change it, the grading software can not find the execute file (.exe) or the output
results to score, thus the exam result will be 0
• Do not edit given statements in the main function. If you change, the grading software may not
be able to score and the exam result will be 0.
Question 1 (2 marks)
2 of 3
Paper No: 1
The given file Q1.cpp contains statements to enter the radius r and height h of the cylinder. You should
write statements to print the volume of the cylinder.
Hint:
Notes:
Sbottom=πr².
V = Sbottom h.
π use the M_PI in the cmath library
Do not edit given statements in the main function.
You can create new function(s) if you see it is necessary.
Complain
Zoom
+ 100%
Activate Windows
Go to Settings to activate Windows.
Close