Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Java programming final exam and Library management system software design
Answered

Online Quiz Exam Grading Program

1.Write a program to mark an online quiz exam. The exam has 20 multiple-choice questions and the correct answers for the questions are as follows:

online quiz exam

2.Write a class named “QuizExam” that holds the correct answers in an array field. The class should also have an array field that holds the student’s answers. The class should have the following methods: “quizPassed” that returns true if the student passed the exam or false if the student failed; “corrAnswer” that returns the total number of correctly answered questions; “incorrectAnswer” that returns the total number of incorrectly answered questions; “missedAnswer” that returns an int array containing the question numbers of the questions the student missed. A student must correctly answer 15 of the 20 questions to pass the exam.

3.The program should ask the user to enter a student’s answer and then display the results returned from the QuizExam class’s methods.

4. Please provide Java codes in your Final Exam document. Do not submit the Java source file separately.

5.Design a “Building” class with

A field “buildingName” the name of the building

A field “builtYear” the year the building was built

A field “location” location of the building (city, country)

A constructor and appropriate accessors and mutators

A “toString” method that displays the “buildingName”, “builtYear”, and “location”


6.Design a “HospitalBuilding” class that extends the “Building” class with

A field “numPatients” the number of patients it can accommodate

A field “numDoctors” the number of doctors serving in this hospital

A constructor and appropriate accessors and mutators

A “toString” method that overrides the “toString” method in the base class

7.Design a “ResidentialBuilding” class that extends the “Building” class with

A field “numPeople” the number of people living in this building

A field “numApartments” the number of apartments in this building

A constructor and appropriate accessors and mutators

A “toString” method that overrides the “toString” method in the base class

The “Building” class’s “toString” method should display the building’s name, year it was built, and location.

The “HospitalBuilding” class’s “toString” method should display the building’s name, year it was built, location, the number of patients it can accommodate, and the number of doctors serving in the hospital.

The “ResidentialBuilding” class’s “toString” method should display the building’s name, year it was built, location, the number of people living in the building, and the number of apartments.

8.Design a software for library management. The software should be able to add/remove readers, add/remove books, track books rented and returned from registered readers, and show book information and the readers’ information. Readers can rent a maximum of 5 books each. A book can be rented as long as it is available to the library and not currently rented by another reader. The software can also remove a reader if all books rented by the reader are returned; otherwise, the system will generate an error message.

What classes, methods, and fields do you think would be needed to develop this system? How do the classes need to be interrelated? Explain your design with a diagram of the classes, methods, and fields that you plan to use. Explain the functionalities of your classes, methods, and fields. Also explain why you think your design is an efficient solution to this problem. You do not have to do any actual coding for this question. Explain your answer with texts and diagrams

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close