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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, aliceohern
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
image
Engineering, 04.07.2019 18:10, mm016281
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
image
Engineering, 04.07.2019 18:10, niicoleassssssf
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
image
Engineering, 04.07.2019 19:10, santosbeti90
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
You know the right answer?
Create two classes A Java class called javaUtils and a javaUtilsDemo class. JavaUtilsDemo class is u...

Questions in other subjects:

Konu
Mathematics, 15.04.2020 22:15