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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education