Need help making this happen
Problem
Edit, compile and run a simple Java program demonstrating input and output.
Specifications
- Name the
.javafileMyFirstProgram - Import the
Scannerclass and create aScannerobject for key board input. - Ask the user to enter their name(String variable) and age (int variable).
- Display their name, age and a welcome message using a
printfstatement
HINT: use nextInt() with your Scanner object to get an integer value from the keyboard.
Problem
Write an application to perform simple arithmetic operations on integers.
Specification
- Name the
.javafileSimpleMath - The program should do the following:
- Prompt the user to enter five integer numbers from the keyboard.
- Display the sum, average, product, smallest and largest of the numbers.
- Display the quotient of the first number divided by the second.
- Display the remainder of the fourth number divided by the fifth.
- The average calculation should result in the integer representation of the average, not the decimal value.
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


