Question: I wrote my code prof said I'm doing wrong need help 1. Area and Circumference of Circle Write a program that inputs from the user

I wrote my code prof said I'm doing wrong need help

I wrote my code prof said I'm doing wrong need help 1.

1. Area and Circumference of Circle Write a program that inputs from the user the radius of a circle as an integer and prints the circle's circumference and area using the predened constant MathPI. Use the following formulas (r is the radius): circumference 2nr area = nr2 2. Area of Triangle If a triangle has side lengths a, b, & c, then the formula for the area of the triangle is area = Vs(s - a)(s - b)(s - c), where s = (a + b + c)/2 Write a program that asks the user to enter three sides of triangle. The program should compute and display the area of triangle. 3. Celsius to Fahrenheit Write a program that asks for a temperature in Celsius and prints out the temperature in Fahrenheit. The formula to convert Celsius to the equivalent Fahrenheit is: fahrenheit = 1.8 x celsius + 32 The output should look something like this: The Fahrenheit for the Celsius 10 is 50 4. Wall Painting Calculator Write a program that when complete will calculate the amount of paint needed to paint the walls and the ceiling of a room. Your program should ask length, width, and height of room. Assume that the room has doors, windows and a floor that don't need painting. Ask the user to enter the number of doors and number of windows in the room to be painted. Adjust the total square feet to be painted accordingly. Assume that each door is 20 square feet and each window is 15 square feet. The paint covers 350 square feet per gallon on average. 5. Hours, Minutes and Seconds Write a program that asks the user to enter seconds as an integer. The program should compute and display the number of hours, minutes and seconds that seconds amount entered by the user represents. For example, ifuser enters 4205 seconds. The answer should be: Hours Minutes : 10 Seconds : 5

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