Answered step by step
Verified Expert Solution
Link Copied!

Question

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 to Expert-Tailored 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

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

2. Define identity.

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

4. Describe phases of majority identity development.

Answered: 1 week ago