subject

Specifications You’ve been contracted to create a medical appointment program for a doctor’s office. This program should offer the following services in menu form.
1. Book an appointment
2. Change an appointment
3. Cancel an appointment
4. View appointment by last name
5. View all appointments
The menu should perform data validation and only accept an integer associated with one of the options. Use a switch statement to construct your menu.
Booking an appointment
Booking an appointment requires the user to enter their first and last name, date of birth, and appointment time. No need to worry about scheduling conflicts with other appointments. All appointments should be written to a text file named appointments. txt. Each appointment should be stored as a record in this file in the following format:
firstName lastName DOB apptTime
No need to perform data validation on the name, date of birth, or appointment time. You can assume valid entries. Once an appointment is booked, a message should be displayed to the user indicating so.
Changing an appointment
Changing an appointment requires that the user enter their last name, date of birth, and new appointment time. This information should be updated in the appointments. txt file. When the appointment is changed, the updated information should be displayed to the user.
Cancelling an appointment
Cancelling an appointment requires that the user enter their last name and date of birth. The cancellation should cause the appointments. txt file to be updated so that the appointment no longer appears. When the appointment is cancelled, the updated message should be displayed to the user.
View appointments by last name
This option should ask the user for their last name. If there are multiple records with the same last name, all should be shown. For example, if there are 2 appointments with the last name ‘Jones’, the output should look like this:
Bob Jones 10/3/87 8:30
Sara Jones 7/5/90 11:00
Viewing all appointments
This option should show all appointments that are stored in the appointments. txt file. No sorting is necessary.
Requirements
Each menu option should call a function to perform the work. Do not use C++ arrays or vectors in this program because we have not covered them yet. See if you can figure out another method to update information using file(s).
When displaying information, the data should appear in table format and each field should be delimited by using a tab. For example, the following record displays the appointment information for Todd Smith.
Todd Smith 5/30/1980 2:00
Your code should contain proper commenting and be formatted properly with readable code blocks and proper spacing.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, gracie2492
What result from the passage of this amendment
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, leannhb3162
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
image
Computers and Technology, 22.06.2019 19:20, SundaeSunday
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_balance should be removed since header files should not contain constants. c)the definition of cashregister should be removed since header files should not contain class definitions. d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, taapeters
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
Specifications You’ve been contracted to create a medical appointment program for a doctor’s office...

Questions in other subjects:

Konu
Biology, 29.05.2020 21:06
Konu
Mathematics, 29.05.2020 21:06