0% found this document useful (0 votes)
38 views4 pages

Lab Test Mock Question - Mike's Online Tutoring System

This document outlines a project to create a C program for an online tutoring sign-up system. The program will store student details in a struct using arrays and pointers. It will include functions to accept student details with time/date selection, track student counts per session, store and sort student grades, and display student records. The outline provides details on data fields, date/time formats, a main menu, and requirements for input validation, readability, and documentation. The goal is to help an online tutor digitize their sign-up process and view student information.

Uploaded by

Alair Rick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views4 pages

Lab Test Mock Question - Mike's Online Tutoring System

This document outlines a project to create a C program for an online tutoring sign-up system. The program will store student details in a struct using arrays and pointers. It will include functions to accept student details with time/date selection, track student counts per session, store and sort student grades, and display student records. The outline provides details on data fields, date/time formats, a main menu, and requirements for input validation, readability, and documentation. The goal is to help an online tutor digitize their sign-up process and view student information.

Uploaded by

Alair Rick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Test Your Understanding

Project: Student Sign-up System


Author: Angel Pinnock
Approximate Time: 3 Hours

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.

Part 1 - ANALYSIS OF THE PROBLEM

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)

2. He takes on a group of ten students at a time. Create a function called


studentCountTracker. (1 mark)
It should keep track of how many students have selected a set time and date. (1 mark)
If the session period is full, prompt the student to select another period. Stop accepting
students if all periods are full. (5 marks)
This function should also show how many spaces are left for each session. (3 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)

4. Create a function called storingStudentsGrades. (1 mark)


Store all their records in an array called studentGradesArray. This array should be an
instance of your student struct. (5 marks)
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

5. Create a function called studentsGradesSorter (2 marks)


It will sort the array from the lowest to highest grades. At the end of the day, Mike will
want to see the student's grades. (8 marks)

6. Finally, create a function called displayAllStudentRecords (2 marks)


It will show all the students' details. Mike will use this to see who signed up for his tutor
classes. (4 marks)

Total: 25 marks

Part 2 - OUTLINE

A. Use the following data fields to store the student's information:

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

C. Use the following menu at the start of your program. (1 mark)


1. Accept Student Details
2. View Available Sessions
3. Display All Students
4. Exit program

If option (3) is selected, display the following menu and call the appropriate functions: (1 mark)

1. Display Students Records


2. Display Students’ Grades (lowest to highest)

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

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

ADDITIONAL REQUIREMENTS:

1. Use attractive formats for all displays.

2. Make use of C features such as Macros, Enums, etc, to create a readable and organized
code.

3. Include the appropriate preprocessors/headers/libraries

4. Incorporate menu functionalities.

5. Ensure to check for input validation.

6. You may create functions to carry out other tasks.

7. Remember to include code documentation.

REMEMBER THIS IS JUST A PRACTICE/MOCK

YOU MAY REACH OUT FOR ASSISTANCE!

THE END

You may send your solutions to [email protected] for feedback.

You might also like