Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions