Please Solve this assignment for CIS course (Programming Fundamentals 2). (( Language: ((JAVA)) )) ASSIGNMENT STEPS :

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please Solve this assignment for CIS course (Programming Fundamentals 2). (( Language: ((JAVA)) )) ASSIGNMENT STEPS :

Post by answerhappygod »

Please Solve this assignment for CIS course (Programming
Fundamentals 2). (( Language: ((JAVA)) ))
ASSIGNMENT STEPS :
Please Solve This Assignment For Cis Course Programming Fundamentals 2 Language Java Assignment Steps 1
Please Solve This Assignment For Cis Course Programming Fundamentals 2 Language Java Assignment Steps 1 (51.27 KiB) Viewed 34 times
Please Solve This Assignment For Cis Course Programming Fundamentals 2 Language Java Assignment Steps 2
Please Solve This Assignment For Cis Course Programming Fundamentals 2 Language Java Assignment Steps 2 (53.06 KiB) Viewed 34 times
Assignment 4 (CH11+CH13) - Class Relationships + interface [17 May] Use the following UML diagram and its details to build your code. A. UML Class Diagram:attached diagram will help you to distinguish the relationships between classes and extract all the required data fields and methods. B. Details: * Hospital Class Method Description Hospital The class's constructor. Also, it will create the date when an instance created. add Representative This method will add each representative to your ArrayList. saveToFile 0 This method will save in a Hospital History text file (ex: Alhabib_History.txt): - The name of the hospital and its creation date. - The class name of each object. You must use the instanceof operator. - What display0 method returns for each class. - The file must have an output similar to this: Name of the hospital: Alhabib Created on: Tue Apr 21 13:07:07 AST 2022 Doctor ID: 1234, Name: Sara, Specialty: cardiology. Patient ID: 111, Name: Alla, Age: 25, Gender: Female. *Make sure to prepare your program to avoid any error that might cause by using IOExceptio.* * Representative Class: (this is an abstract class) Method Description Representative The class's constructor. reado This method is similar to the constructor, it used to fill the constructor from the console. It must ask for ID, and Name. *Make sure to prepare your program to avoid any inappropriate input by adding Input MismatchException.

*Doctor Class: Method Description Doctor reado The class's constructor. Also, it must invoke the superclass's constructor. This method must be overridden and invoke the superclass's read() method. This method is similar to the constructor, it used to fill the constructor from the console. After invoking read from superclass, you must ask for the doctor's specialty. *Make sure to prepare your program to avoid any inappropriate input by adding InputMismatchException.* This method must be overridden from Record interface. This method will return Doctor's information as the following line: ID: 1234, Name: Sara, Specialty: cardiology. display * Patient Class: Method Description Patient() reado The class's constructor. Also, it must invoke the superclass's constructor. This method must be overridden and invoke the superclass's read() method. This method is similar to the constructor, it used to fill the constructor from the console. After invoking read() from superclass, you must ask for the patient's age and gender. *Make sure to prepare your program to avoid any inappropriate input by adding Input MismatchException.* This method must be overridden from Record interface. This method will return Patient's information as the following line: ID: 111, Name: Alla, Age: 25, Gender: Female. display - 1 * Test Class: Now, you have to use your main method to test your work! Prepare your code to: - Create one Hospital object. (example: alhabib) - Create two Doctor objects (one through the constructor and one through read method). - Create two Patient objects (one through the constructor and one through read method). - Add all Doctor and Patient objects to the ArrayList for your created Hospital. Save your Hospital information as a text file. (ex: Alhabib_History.txt)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply