Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is all supposed to be written in Java. This is the rubric please include everything listed Instructions: For this assignment, employ all the standard

This is all supposed to be written in Java.

image text in transcribedimage text in transcribed

This is the rubric please include everything listedimage text in transcribed

Instructions: For this assignment, employ all the standard algorithm methods. You will be making a grade book program similar to one an instructor might use. The grade book will include students and their grades. The program will traverse, replace, insert, and delete items within the grade book. 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. 4. Test your methods by calling each at least once to demonstrate all of your algorithms. The output needs to be clearly labeled as to the change performed. Display the grade book after each change. This will allow you or anyone else to verify the changes were done properly. The output should be similar to that shown below: Expected Output: This is a sample of the expected output. The details will vary based on design choices you make while completing the project. Blue): Terminal Window - ... Options Starting Gradebook: Student name Q1 Q2 24 Q5 80 90 M M 70 80 85 80 85 99 80 J 79 90 90 89 85 90 99 50 85 70 B 80 89 D 70 70 80 Points Possible Points Earned Components Comments included for name, date, and purpose of the program. 1 Class created to define student objects. 1 Student objects have instance variables for name and quiz scores. 1 Constructor for a student object initializes name and quiz scores. 1 Methods correctly created to set a quiz score, get a quiz score, set a student name, get a student name, and provide toString. 4 Client class created to test student objects. 1 Data structure of student objects declared and initialized. 1 A method traverses through the data structure and prints out each element. 2 A method replaces a student's name with a new name. 2 A method replaces one quiz grade for a student with a new grade. 2 A method replaces a student with another student. 2 A method inserts a new student before another student in the data structure. 2 A method finds a student by name and then deletes that student. 2 All methods called at least once for testing purposes. 1 Output is clearly labeled, formatted, and accurate. 4 No compiler errors. No runtime errors. 2

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_2

Step: 3

blur-text-image_3

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 Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What's the best gift you've ever received?

Answered: 1 week ago