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
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
question
Engineering, 04.07.2019 19:10
Apressure vessel with an r/t 20 cannot be treated as thin walled vessel. a)-trune b)- false
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, 15.03.2022 18:00
question
Mathematics, 15.03.2022 18:00
question
Mathematics, 15.03.2022 18:00
Questions on the website: 13722366