Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Below are the programs for the given tasks Program 1 Compute the sum of squares of three floatingpoi...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started