Question: 2. Write a Java program that do the Following: (6 Marks) Asks the user to enter the name of your department using Scanner and
2. Write a Java program that do the Following: (6 Marks) Asks the user to enter the name of your department using Scanner and asks you to enter three numbers of the type double named x, y, and z, use Scanner. The program should find the smallest number and use it to calculate the following expression: expr = smallest + 39 2+1* (smallest 2) 2 Use print statement to print the department name, the smallest number, and the result of the expression. Each in a separate line.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
import javautilScanner public class DepartmentCalculator ... View full answer
Get step-by-step solutions from verified subject matter experts
