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
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Aheavily insulated piston-cylinder device contains 0.02 m3 of steam at 300 kpa and 200 °c. 1.2 mpa. d this process. team is now compressed in a reversible manner to a pressure of etermine the entropy change and the work done on the steam during this process
Answers: 1
question
Engineering, 06.07.2019 03:20
Acountershaft is supported by two tapered roller bearings using indirect mounting. the radial bearing loads are 1120 lb for the left-hand bearing and 2190 lb for the right-hand bearing. the shaft rotates at 400 rpm and is to have an l10 life of 40,000 hours and an application factor of 1.4. assume ka2k 15, and find the required radial rating of each bearing
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.12.2020 18:10
question
English, 15.12.2020 18:10
question
Social Studies, 15.12.2020 18:10
question
Mathematics, 15.12.2020 18:10
question
Mathematics, 15.12.2020 18:10
question
Mathematics, 15.12.2020 18:10
question
Mathematics, 15.12.2020 18:10
question
Health, 15.12.2020 18:10
Questions on the website: 13722363