Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coded In Java, no java library classes allowed, Please help 90 - 100 80 Excellent B 8 7 6 D F 0 2.3 The Online

Coded In Java, no java library classes allowed, Please help

image text in transcribedimage text in transcribed

90 - 100 80 Excellent B 8 7 6 D F 0 2.3 The Online School Problem You are required to develop an object-oriented program solving a (simplified) online school problem, where there is a list of participants registered in courses taught by qualified instructors: Each instructor is characterized by their name, campus phone extension (e-g-, 70310), and contact email. Each registration is characterized by its subject title, numerical marks, and instructor (who may not be assigned when the course is first created). Given a registration object: - A grade report may be returned as an array of length 2, e.g-, {"B", "Good"), where the first element stores the letter grade and the second element stores its qualitative description. Consider the following table summarizing how each mumerical marks (assumed to range between 0 and 100) maps to its grade, description (whose spellings should be exact), and grade point: Range of Raw Marks Letter Grade Qualitative Description Grade Point Exceptional 89 A 70 - 79 Good 60 69 Competent 50 - 59 Passing 0 - 49 Failing A string information object may be returned. There are two cases to consider, depending on whether or not the course instructor has been assigned. In the case where the instructor is present, the returned string should contain the course title, instructor name, the marks, and its corresponding grade and description (see the above mapping table). Each participant object is characterized by the name of student and the list of added registrations. Given a participant object, we may: - Add a new registration, either by an input registration object, or by the name of course (from which a registration object may be created accordingly). The maximum number of registrations allowed for a participant is 5: attempting to add registrations beyond this limit will have no impact (i.e., the list of registrations remains the same). Furthermore, there is no need to check if there are duplicated registrations added (e.g., two registrations with the same course name). - Retrieve its list of registrations as an array (i.e., Registration[]), whose length is less than or equal to the maximum allowable number (i.e., 5). Clear its list of registrations (e.g., allowing further registrations to be added). - Retrieve the marks of a course with the given name. If the name of a non-registered course is given, then return -1 as its marks. - Update the marks of a course with the given name. If the name of a non-registered course is given, then nothing should be changed. - Obtain a report of the GPA (grade point average) over the list of added registrations. Each online school object is characterized by its list of participants. Given an online school object, we may: - Add a new participant by an input participant object. The maximum mmber of participants allowed for a school is 100: attempting to add participants beyond this limit will have no impact (i.e., the list of participants remains the same). Furthermore, there is no need to check if there are duplicated participants added (e.g., two participants with the same name). - Retrieve the list of participants of a course, given its name, as an array. If the input name denotes a non-existing course, then an empty array is returned. Other intended functionalities of above kinds of objects can be inferred from the given JUnit test class TestOnlineSchool. 7 Any new class(es) you add must reside in the model package. - Once the necessary class(es) and method(s) are declared, you can add as many attributes as necessary to implement the body of each method. - Study carefully example instances as specified in TestOnlineSchool.java: they suggest the how the intended class(es) and method(s) should be declared and implemented. - Focus on gradually passing one test at a time. - You cannot use any Java library classes (e.g., ArrayList) or methods for implementation. That is, there must not be any import statement in the class(es) you add to the model package

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Understand why succession management is important.

Answered: 1 week ago