Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a folder called 07.08 Assignment in your Module 07 Assignment folder. 2. Create a class to define a student object. a. Instance variables

image text in transcribed

1. Create a folder called 07.08 Assignment in your Module 07 Assignment folder. 2. Create a class to define a student object. a. Instance variables are needed for the student name and five quiz scores. b. A constructor is needed to provide a way to define a student object and initialize the quiz scores. c. Methods are needed for the following: I. a method that takes in a quiz number as input and then returns the appropriate quiz value ii. a method that sets a quiz score based on inputing a quiz number and new quiz score iii. a method to get the name of a student iv. a method to set the name of a student v. a toString() method that prints the name of the student along with the quiz scores 3. Create a client class to test your student object. a. Start with five students in your class. Use a data structure to organize the students. You may choose to use either an array or an ArrayList; there is no need to do two versions of the program. Each student will have a first and last name and five quiz scores. The class will grow, so allow for at least 12 students. b. Create methods for the following tasks. Remember to make sure your methods handle there being null elements in the data structure. i. traverse through the data structure and print each element in a neat table format. ii. replace a student's name with a new one. iii. replace a student's quiz grade with a new one. It should replace only one quiz grade, as indicated by the quiz number, when it is called. It will have the data structure, quiz number, and new quiz score as input. iv. replace a student with another one. It will have the data structure, name to replace, new student name, and quiz scores as input. v. insert a new student before another student in the data structure. It will have the data structure, name to find, new student name, and quiz scores as input. vi. delete a student by finding the student name. It will take the data structure and name to find as input

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago