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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
You know the right answer?
Specifications You’ve been contracted to create a medical appointment program for a doctor’s office...
Questions
question
Mathematics, 17.02.2020 18:29
question
Mathematics, 17.02.2020 18:29
Questions on the website: 13722359