Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java help needed with the following. It would be very helpful if comments are added to understand the code. Create two Class objects ( two

Java help needed with the following. It would be very helpful if comments are added to understand the code.

Create two Class objects ( two .java files) Student Driver

Part 1 Class Design: Student The Sudent class is intended to be an abstract and simplified representation of a student. Each student will have an array of assignment scores. Data to Store Name a private instance variable with public getter and private setter Scores a private instance with neither getter nor setter Actions Constructor - Take in as argument the name as well as maximum number of assignments the student will have for the quarter (enforce invariants) - Initialize the scores to -1 (to indicate it doesnt yet exist) View Assignment Scores - Allow user to look up existing assignment scores (only ones that have been reported dont report any -1 scores). Enforce invariants. Report New Assignment Score - Allow user to report a new assignment score (goes into the latest assignment slot that dont currently have a score. What should you do if there are no slots open?). Enforce invariants. Update Assignment Score - Allow user to update existing assignment score. Enforce invariants. Part 2 Class Design: Driver The Driver is intended to drive the program and allow you to interact with the Student object. Positive testing (checking for valid conditions) Create an instance of a Student given valid conditions Add a valid score View valid scores Update valid scores Negative testing (checking for invalid conditions) Attempt to create an instance of a Student given invalid conditions Attempt to view scores when none has been reported Attempt to add an invalid score Attempt to update a score that hasnt been entered yet Boundary testing Attempt to add the minimum score Attempt to add the maximum score

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago