Question: TASI 5 (total 25 marks): There are several errors existed in the Ct+ program below in calculating the volume of a cone with the height

 TASI 5 (total 25 marks): There are several errors existed in
the Ct+ program below in calculating the volume of a cone with

TASI 5 (total 25 marks): There are several errors existed in the Ct+ program below in calculating the volume of a cone with the height and radius are read from the user-entry on keyboard. Rectify the program correctly and answer the questions that follows. Ct+Progam with errors: Finclude ciostream> using namespace std: int main 0) I float r,h,yz float gil=3.14159 seeut "lolgput cone's radius:=: Gin r seyr "lolpRut cone's height:" sin I/ Geculates the cone's volume. v=(1.0/3.0)pi(rr)h; geut "loJhe volume of the cone is: lnln=v " = return ; 3 Answer [show your program and the oulput): Questions: 1. List 3 variables shown in the program. 2. Name 2 data types used in the classwork 2. 3. What constant is used in classwork 2? 4. Find the syntaxes in the program with the following errors: a. Syntax Error

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!