Lab Test Mock Question - Mike's Online Tutoring System
Lab Test Mock Question - Mike's Online Tutoring System
Mike had recently started an online tutorship program for Mathematics. The interest of students
from his school and community had grown in a short time, so Mike decided to digitize his
sign-up processes. He heard about your programming skills and decided to hire you to come up
with a solution.
In this C project, create a program that will store the details of students in a struct. Use arrays,
pointers, and functions to manipulate the data.
PROBLEM DETAILS
1. Mike only offers tutoring on Thursdays, Fridays, and Saturdays. The periods on each day
are as follows: 4 PM to 6 PM and 8 PM to 10 PM. Create a function called
acceptStudentDetails that accepts the students’ information and the date and time they
would like to be tutored. (5 marks)
Total: 15 marks
3. For each period, Mike split his groups based on which student needed the most help.
Prompt the students to enter their last three test grades for Mathematics. (1 mark)
Store the three grades in an array in their record. Also, store the average of the grades in
their records. (2 mark)
Total: 25 marks
Part 2 - OUTLINE
first_name
last_name
age
grades (array)
average_grade
period_chosen
Define a struct that will hold all these fields. You may add other details where needed.
(2 marks)
B. When selecting a date and time, Mike wants it in this format: (1 mark)
Dates:
(Thur) Thursday
(Fri) Friday
(Sat) Saturday
Time periods:
Session 1 - 4 PM - 6 PM
Session 2 - 8 PM - 10 PM
You may send your solutions to [email protected] for feedback.
Test Your Understanding
Project: Student Sign-up System
Author: Angel Pinnock
Approximate Time: 3 Hours
If option (3) is selected, display the following menu and call the appropriate functions: (1 mark)
NOTE: Mike does not want individuals to be able to see other students’ details. He decided to
create a passcode so only he can select option 3 on the menu. The code is 9eJ8iOp. If a user
selects option 3, prompt them for the code. Give them three attempts at entering a valid code. If
they cannot enter a valid code in three tries, warn the user that they will be shut out of the
system. Exit the program. (5 marks)
Total: 10 marks
TOTAL MARKS: 50
ADDITIONAL REQUIREMENTS:
2. Make use of C features such as Macros, Enums, etc, to create a readable and organized
code.
THE END