Project 2 - Arithmetic Calculations Due on Sunday, 1/29/2023, by 11:59pm Lab Objectives This project was designed to reinforce programming concepts from Chapter 2 of Java How to Program: 11/e. In this lab you will practice: • Using the Scanner class to obtain input from the user Using printf to output information to the user Using arithmetic operators to perform calculations Using if statements to make decisions based on the truth or falsity of a condition Using relational operators to compare variable values The follow-up questions and activities also will give you practice: Understanding a common programming error with if statements Problem Description 1. Choose whatever compiler you like to work on programming for this project a. If you decide to use the GDB online Java compiler, i. here is the URL: https://www.onlinegdb.com/online java compiler ii. delete all existing code in the editor if there is any iii. edit your code into the blank editor 2. Create a Java application that a. requests three integers from the user b. calculates the sum, average, & product of these three numbers c. compares them to get the smallest and largest of the numbers d. displays the sum, average, product, smallest and largest of the numbers 3. Run your program after correcting all errors in the code a. Your output should be like the sample output shown below 4. Save you program as Project2_Arithmetic_YourName.java 5. Take a screenshot of your whole compiler window and save the image as Project2_Arithmetic_YourName.png a. Make sure that all output lines are displayed 6. Answer the follow-up questions in a separated Word document and name it Project2_Answers_YourName.docx
Project 2 - Arithmetic Calculations Due on Sunday, 1/29/2023, by 11:59pm Lab Objectives This project was designed to reinforce programming concepts from Chapter 2 of Java How to Program: 11/e. In this lab you will practice: • Using the Scanner class to obtain input from the user Using printf to output information to the user Using arithmetic operators to perform calculations Using if statements to make decisions based on the truth or falsity of a condition Using relational operators to compare variable values The follow-up questions and activities also will give you practice: Understanding a common programming error with if statements Problem Description 1. Choose whatever compiler you like to work on programming for this project a. If you decide to use the GDB online Java compiler, i. here is the URL: https://www.onlinegdb.com/online java compiler ii. delete all existing code in the editor if there is any iii. edit your code into the blank editor 2. Create a Java application that a. requests three integers from the user b. calculates the sum, average, & product of these three numbers c. compares them to get the smallest and largest of the numbers d. displays the sum, average, product, smallest and largest of the numbers 3. Run your program after correcting all errors in the code a. Your output should be like the sample output shown below 4. Save you program as Project2_Arithmetic_YourName.java 5. Take a screenshot of your whole compiler window and save the image as Project2_Arithmetic_YourName.png a. Make sure that all output lines are displayed 6. Answer the follow-up questions in a separated Word document and name it Project2_Answers_YourName.docx
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
Related questions
Question
Can you help me do this Java
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT