Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java netbeans start by creating a the project and then main class. follow pictures after 3. Create a new Java Class. a. Name it Student.java

java netbeans
start by creating a the project and then main class. follow pictures after image text in transcribed
image text in transcribed
3. Create a new Java Class. a. Name it Student.java b. Add following dass variables: (choose proper type and name) 1. A private variable for first name 2. A private variable for Last name 3. A public constant (final) variable for number of lab assignment, make it 3 C. Add 2 class constructors: 1. A constructor that has no parameters 2. A constructor that takes 2 string parameters to set the 2 class variables for names d. Add getter and setter methods for 2 name variables e Add a class method to report average lab score and a letter grade: public void reportAverageScoreAndGrade ForLabs () 1. Use a counter variable and a loop to ask user to input 3 lab scores, add 3 numbers together for total lab scores 2. Calculate average lab score based on the total lab score and the class constant variable for number of lab assignment. 3. Use following criteria to determine the letter grade for lab (practice selections, you can use if..elseif..else, or switch case) 1. Above (include) 90: A 2. Above (include) 80: B 3. Above (include) 70: C Below (not include) 70: E 4. 4.Printout the report lab score and grade (you can design the actual words for the report, but remember including the average score and letter grade in it) For example: "Your average lab score is 91, you get A for lab assignments" f. Add a toString method: Let's use the name variables to return a meaningful String description of your Student class. You can decide the format of the full name. I 4. Use the Student class in your main class (YourFirstNameLastNameLab3.java) (this is a practice of how to use our Student class and test the class methods) a. Declare a Student object and initiate it (you can decide to use the constructor that has no parameters, or the one that takes 2 parameters) b. Print out the student object (this will trigger the toString method in Student class) c. Call the method defined in 3.e to report average score and letter grade for lab assignment d. Repeat 4.a, 4.b, 4.c for 2nd student, and make sure he/she get a different letter grade. e. Repeat 4.a, 4.5, 4.c for 3-4 student, and make sure he/she get a different letter grade

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions