a java programming code for a project about a doctor
appointment application simple java language
first the patient class
second the doctor class
third the information class
in the main while loop for the following
enter 1 to Register
enter 2 to book appointment
enter 3 to display the information of the appointment
enter 0 to exit
in the main code i need at least 3 objects
the patient class
in the code i need at least a Private and public
attributes, Set/get methods, Two or more constructors
and Some functionality methods
i need to ask the user to enter his name,id and phone number
the output:
enter your name:
enter your id:
enter your phone number:
second the doctor class:
in the code i need at least a Private and public
attributes, Set/get methods, Two or more constructors
and Some functionality methods
the user should but the information of the appointment such as
the doctor name , speciality , time and day
the output:
enter doctor name?
enter time?
enter day?
enter speciality?
the information class:
after the user finish booking his appointment. the user can
enter number 3 to display the information of the appointment by
only entering his phone number. everytime the user run the code the
information will display no erasing of the information.
the output must shown like that
please enter phone number? 087162736
APPOINTMENT INFORMATION:
name of the patient
name of the doctor,day and time and also specialty
NOTE: the most important thing that the information of the
appointment must appear everytime i run the code with only the
phone number of the user so it must kept in a file(.txt) so the
information won't be erase
NOTE: i need in the code array , Aggregation concept
and printDetails method (toString method).
a java programming code for a project about a doctor appointment application simple java language first the patient clas
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
a java programming code for a project about a doctor appointment application simple java language first the patient clas
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!