I need a java programming code a simple java language for a
doctor's appointment
The user can register by his name, id, and phone number and
after he finishes a list of the doctor's name, day, time and
specialty will appear and the user can choose one of the doctors,
after he finishes a message, will appear saying APPOINTMENT HAS
BEEN BOOKED and in the next time when the user run the code he
either book an appointment again or choose to see the information
of the appointment. the information of the appointment must be kept
in a file so it won't be lost and also the patient information so
every time he runs the code he can but his id or phone number and
the appointment will appear
1- class doctor
2- class patient
3-information class
so the main and doctor class and a patient class and information
class all three classes and the main are separate in a class in net
beans not all on the same page in the main
1-class doctor it has the information of the doctor such as
name, id, time, day, and specialty, as a list such as
1- doctor jack Ophthalmologist monday 9-10am
2- doctor peter Dermatologist tuesday 11-10am
3-doctor sophie pediatrician sunday 12-1pm
4-doctor sarah Obstertrician thursday 2-3pm
and the user can only chose on of the list above as his
appointment
2-patient class, the user will register by his name, id and
phone number and the information of the user must be kept in a file
so every time the user runs the program his information won't be
lost if he wants to display the information of the appointment by
his id or phone number
3-information class the user can but his id or phone number and
all the information of the appointment that he chose will appear
such as the name of the doctor and time and day and must be kept in
a file (.txt) so every time the user runs the program the
information will appear as an output.
all three classes must be separated not all of them in the
main
I need a java programming code a simple java language for a doctor's appointment The user can register by his name, id,
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
I need a java programming code a simple java language for a doctor's appointment The user can register by his name, id,
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!