Question: Problem 1. Fahrenheit to Celsius (Fah ToCel.java) Write a Java class named FahToCel that reads a Fahrenheit degree in a double value from the console,

 Problem 1. Fahrenheit to Celsius (Fah ToCel.java) Write a Java class

Problem 1. Fahrenheit to Celsius (Fah ToCel.java) Write a Java class named FahToCel that reads a Fahrenheit degree in a double value from the console, then converts it to Celsius and displays the result. The formula for the conversion is as follows: 5 celsius = *(fahrenheit -32) Outputs: Please enter a degree in Fahrenheit: 100 Fahrenheit 100.0 is 37.77777777777778 in Celsius Problem 2. Area of Triangle (AreaOfTriangle.java) Write a Java class named AreaOfTriangle that prompts the user to enter the three sides of a triangle (suppose it is valid) in double values, and displays its area. The formula for computing the area of a triangle is (a, b, c are the three sides): Area = P(p-a)(p-b)(p-c) a+b+c where,p= 2 Outputs: Please enter the three sides of a triangle: 3 4 5 The area of this triangle with sides: 3.0 4.0 5.0 is: 6.0 Problem 3. Sum of Digits (Sum OfDigits.java) Write a Java class named SumOfDigits that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14

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