Question: 2. Write a program that initializes three floating-point values (2.3, 55.6, 44.7). The program should compute square of each value and add them together.

2. Write a program that initializes three floating-point values (2.3, 55.6, 44.7). The program should compute

2. Write a program that initializes three floating-point values (2.3, 55.6, 44.7). The program should compute square of each value and add them together. Then, display the result. 3. Calculate the volume of a cone using the formula: Volume of Cone = 1/3 r h Take the values of 'r' and 'h' (r= 2.6, h = 3.43). If the Volume comes out to be greater than or equal to 100 and radius is divisible by 2 then print "Acha Cone" otherwise print "Ganda Cone" 4. Rewrite the above three programs with wrong syntax (you have to add few errors in each program). Highlight the error by adding comment with the statement.

Step by Step Solution

3.34 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below are the programs for the given tasks Program 1 Compute the sum of squares of three floatingpoi... View full answer

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 Programming Questions!