Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 22.06.2019 15:10, AleciaCassidy
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, rowdycar313p0ao5k
[java] create an application called registrar that has the following classes: a. a student class that minimally stores the following data fields for a student: - name - student id number - number of credits - total grade points earned and this class should also be provides the following methods: - a constructor that initializes the name and id fields - a method that returns the student name field - a method that returns the student id field - methods to set and retrieve the total number of credits - methods to set and retrieve the total number of grade points earned. - a method that returns the gpa (grade points divided by credits) b. an instructor class that minimally stores the following data fields for an instructor: - name - faculty id number - department the following methods should be provided: - a constructor that initializes the name and id fields - methods to set and retrieve the instructor’s department. c. a course class that minimally stores the following data for a course: - name of the course- course registration code- maximum number of 35 students- instructor- number of students- students registered in the course (an array)the following methods should also be provided: - a constructor that initializes the name, registration code, and maximum number of students- methods to set and retrieve the instructor- a method to search for a student in the course; the search should be based on an id number.- a method to add a student to the course. if the course is hill, then an exception with an appropriate message should be raised (try creating your own exception class for this). also, be sure that the student is not already registered in the course. the list of students should be in the order that they registered.- a method to remove a student from the course. if the student is not found, then an exception with an appropriate message should be raised (use the same exception class mentioned a method that will allow course objects to be output to a file using object serialization- a method that will allow course objects to be read in from a file created with object serializationyou will note that the student and instructor classes described above have some commonality. create aperson class that captures this commonality and uses it as a base class for student and instructor. this class should be responsible for the name and id fields and also provide atostring method that returns a string of the form name, id. this will be the inheritedtostring method for the student and instructor classes.1. draw a uml diagram for diss application.2. implement the previous classes in java. write a main program that can serve as a test class that tests all of the methods created and demonstrates that they are working
Answers: 2
Do you know the correct answer?
Specifications You’ve been contracted to create a medical appointment program for a doctor’s office...

Questions in other subjects:

Konu
Mathematics, 24.02.2021 22:20
Konu
Mathematics, 24.02.2021 22:20