subject
Engineering, 07.10.2020 15:01 amselah4955

Create two classes A Java class called javaUtils and a javaUtilsDemo class. JavaUtilsDemo class is used to test javaUtils functionality. JavaUtils class will have the following member functions. 1. printLargestNumber()i. It asks the user to enter 3 different integers. ii. The program reads each integer into a variables called numOne, numTwo, numThree. iii. The program uses equality operators to compare and prints the largest number. iv. Test your program from javaUtilsDemo class. 2. evaluateExpression()a. The function evaluates the values of each expression below, and prints the result. a. 4 + 6 * 2 b. 10 / 5 + 8 c. 12 / 4 + 16 / 2 d. 17 / 2e. 25-10/ Example for sample printoutExpression ( 4 + 6 *2) evaluates to 16.Expression ( 10/5 + 8) evaluates to 103. getProductOfNumbers(int, int, int)i. The function takes three integer parametersii. calculates the product of the three numbers, and returns back an integer iii. Test your program from javaUtilsDemo class. Print out the results returned.4. printMyName()a. that function asks the user to enter FirstName, LastName and year in college. b. it will read the data and store them into a local string variable fName, lName and collegeYear. c. The function will display the following“Hi . ”“You are in Wilmington University”d. Test your program from javaUtilsDemo class.5. TempertureConvertor()a. Converts Celsius temperature to Fahrenheiti. The program asks user to enter a temperature in Celsiusii. The program converts the temperature to Fahrenheit. iii. The program displays the Celsius temperature entered and its converted temperature to Fahrenheit. (be clear with your output when displaying data)b. Converts Fahrenheit temperature to Celsiusi. The program asks user to enter a temperature in Fahrenheitii. The program converts the temperature to Celsiusiii. The program displays the temperature entered and its converted temperature to Celsius. (be clear with your output when displaying data)Use below formulaCelsius to Fahrenheit: (°C × 9/5) + 32 = °FFahrenheit to Celsius: (°F − 32) x 5/9 = °CTest your program with below temperatures1. 98 F = 36.67C2. 26 C= 78.8 FWhat to hand in
1 You should have 2 separate classes, JavaUtils and JavaUtilsDemo. Compile and run the application. Submit your source code and output result for each function. 2. You must comment your program. In a 2-5 sentence paragraph, explain what the program does? what is the purpose of the variables you are declaring, and what the program will print out. Comment is good for explaining the program, and you will be graded on this. Don’t be shy to comment.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
You know the right answer?
Create two classes A Java class called javaUtils and a javaUtilsDemo class. JavaUtilsDemo class is u...
Questions
question
Mathematics, 03.05.2021 18:10
question
Mathematics, 03.05.2021 18:10
question
Mathematics, 03.05.2021 18:10
question
Mathematics, 03.05.2021 18:10
question
Mathematics, 03.05.2021 18:10
question
Mathematics, 03.05.2021 18:10
Questions on the website: 13722367