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 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
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, 23.08.2019 01:50