Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this lab, you will write a Java program to prompt the user to enter two integers. Your program will display a series of arithmetic
For this lab, you will write a Java program to prompt the user to enter two integers. Your program will display a series of arithmetic operations using those two integers.
Sample Output: This is a sample transcript of what your program should do Items in bold are user input and should not be put on the screen by your program. Make sure your output looks EXACTLY like the output below, including spacing. Items in bold are elements input by the user, not hardcoded into the program.
Enter the first number:
Enter the second number:
The average of your two numbers is:
A second run of your program with different inputs might look like this:
Enter the first number:
Enter the second number:
The average of your two numbers is:
HINT: You can start by retyping the code that was given to you in Exercise of ClosedLab That code takes in a single number and performs a few arithmetic operations on it How can you modify that code to take in two numbers? How can you modify it to display "number number instead of "Your number squared is: Take it step by step and change one thing at a time.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started