Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

 

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 predefined constant Math.PI. Use the following formulas (r is the radius): circumference - 2nr area = r Area of Triangle If a triangle has side lengths a, b, &c, then the formula for the area of the triangle is area =s (sa) (sb) (sc), 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. 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 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. 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, if user enters 4205 seconds. The answer should be: Hours: 1 Minutes 10 Seconds: 5

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

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

More Books

Students also viewed these Programming questions

Question

f. What subspecialties and specializations does the person list?

Answered: 1 week ago

Question

2.10 Evaluate the biopsychosocial perspective on abnormal behavior.

Answered: 1 week ago

Question

T F Anxiety can give you indigestion. (p. 46)

Answered: 1 week ago