a java programming code a simple java language about a doctor
appointment application
in the main i need a while loop with the following
enter 1 to sign up the patient information
enter 2 to book an appointment
enter 3 to display the information of the appointment
enter 0 to exit
first the patient class
all i need in this class is the patient to enter his id,phone
number and name to register to the application
the output must shown
please enter your name?
please enter your phone number?
please enter your id?
second the doctor class
the user will be asked to enter the doctor's name
, specialty , time and date of the appointment such as
the output must shown as
please enter the name of the doctor?
what the doctor specialty?
please enter time of the appointment?
please enter a day ?
and then a message appear saying APPOINTMENT BOOKED
3- 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.
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
a java programming code a simple java language about a doctor appointment application in the main i need a while loop wi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
a java programming code a simple java language about a doctor appointment application in the main i need a while loop wi
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!