Problem Description: Finding an Average Your friend Jenny has a class that gives three tests. She would like you to write a program that will take the three test grades as input and tell her what her average test grade is. For this Lab you are required to write a program that will read three test grades from the user and then calculate and print the average of those grades. Using Eclipse for a Mac or PC To run Eclipse on your personal computer, you need to have JRE installed on your computer. Download and install the latest JRE or JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html (Links to an external site.)Links to an external site. Then download and install the Eclipse IDE for Java Developers for your computer environment at the following link: http://www.eclipse.org/downloads/ (Links to an external site.)Links to an external site. Eclipse should already be installed on all Lab computers. Step 1: Getting Started Start Eclipse. It will ask you for a workspace to save your files. Change this to where you want to store your project. You will want and pay attention to this, as this is where you will find the files on your computer that you have to submit. After Eclipse opens you will have to create a new Java project in order to create any files. To do this choose File -> New -> Project -> Java ->Java Project . Give the project a name (like CSE110 Lab 1 )  and then click Finish below. Next you have to add a Class to your Project. To do this right click on the project in the package explorer on the left of the screen and then select New -> Class . Name the class the appropriate name, for example You should call the class you create here Lab1 and click on Finish. The editor will then open and you can write your program. To compile and run the program click on the green play button in the toolbar. The output will show up in a console at the bottom of Eclipse. Assignment Documentation: At the beginning of each programming assignment you must have a comment block with the following information: // ———————————————————— // AUTHOR: your name // FILENAME: title of the source file // SPECIFICATION: description of the program // FOR: CSE 110- Lab #1 // TIME SPENT: how long it took you to complete the assignment //————————————————————- Step 2: Setting up a Scanner for Input Since you are required to read in the three test grades from the user, you will have to use a Scanner. Follow the instructions in Chapter 2 or in the book to import the Scanner class from the java.util library and create a Scanner object to get input from the keyboard ( System.in ). Step 3: Declaring Variables Examining the problem, we see that we will need three inputs from the user. We will need variables to hold all of the inputs. For this Lab, let’s assume that all the test grades will be integers. Therefore, we will need three int variables to hold the three test grades. Remember, if you need more than one variable of the same type, you can declare them in the same statement separated by commas. For example if we needed two double variables, we could declare them like this. double var1, var2; Declare three int variables to hold the three test grades. Be sure to give them appropriate names like test1 , test2 , etc. rather than x , y , z . Additionally, looking at the problem, we see that we have the number 3 occurring in the problem. Rather than simply using this number in the program when needed, it is preferable to declare a constant variable to hold the number so that when it is used in the program, it will be clear what the 3 refers to. Remember to create a constant you use the keyword final in front of the declaration. Also it is customary to use ALL_CAPS for the name of the constant. For example if we wanted a constant to hold the value PI, we would declare final double PI = 3.14159; Declare an int constant to hold the value 3 , the number of t…

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay