Need help making this happen

Need help making this happen

Problem

Edit, compile and run a simple Java program demonstrating input and output.

Specifications

  1. Name the .java file MyFirstProgram
  2. Import the Scanner class and create a Scanner object for key board input.
  3. Ask the user to enter their name(String variable) and age (int variable).
  4. Display their name, age and a welcome message using a printf statement

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

  1. Name the .java file SimpleMath
  2. 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.
  3. 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..

order custom paper