Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform the following to prepare your PERSONAL project report: Execute your program as teacher and take a screenshot of your output screen. Name it as

Perform the following to prepare your PERSONAL project report: Execute your program as teacher and take a screenshot of your output screen. Name it as "teacher.jpeg" Execute your program as student and take a screenshot of your output screen. Name it as "student.jpeg" Create a word file to explain all functions in detail. Name it as "functions.docx" Create a folder that contains your source files, header files, word file, screenshots, teacher office hour file(s), and appointment file, and name it as "YourStudentNumber". Compress the folder by using winRAR ("YourStudentNumber.rar"). Store the compressed folder ("YourStudentNumber.rar") in the "Project" folder, located at the course web site under the tab CSE2002 Programming II /Assignments. CSE2002 PROGRAMMING II PROJECT 2023-2024 SPRING Program : Office Hour Appointment System Definition : The program tracks the appointment of office hours. The program must contain predefined macros to print file information. The program has two users: teacher and student. Prompt to the user to enter "1" for teacher and "2" for student. If the user is a "teacher", the program prompts the teacher to enter full name for file name and an operation code, then calls a function to perform the requested action. The codes i (insert_office_hour), u(update_office_hour), p(orint_office_hour), and q (quit) will be used to represent these operations. Repeats until the teacher enters the command ' q '. Prints an error message if the teacher enters an illegal code. If the user is a "student", the program prompts the student to enter his/her full name and the teacher's full name. Then, the program loads the office hours of the teacher from the teacher's office hour file and lists the office hours of the teacher by calling print_office_hour function. The program prompts the student to enter a desired identification number and update the "appointment" file until the student enters the command ' q '. The program will be split into at least four source files: > teacher.c : functions related to teacher user. > student.c : functions related to student user. > readLine.c : functions related to the line. > appointment.c : contains the main function The program will also need header files. The teacher.c file will contain the definition for functions that perform the following operations:Enter your fullname: Teacher XEnter operation code: pID numberDayStartEnd1Monday1p*m.2p*m.2Wednesday10a*m.11a*m. CSE2002 PROGRAMMING II PROJECT 2023-2024 SPRING The student.c file will contain the definition for the function(s) that perform the following operation:TeacherStudentDayStartEndTeacher XStudent XWednesday10a*m.11a*m.Teacher XStudent YMonday1p.m.2p.m.Teacher YStudent XTuesday3p.m.4p.m. The readLine. c file will contain the definition for a function that reads line (read_line).Enter teacher's full name: q

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

What must a creditor do to become a secured party?

Answered: 1 week ago