0% found this document useful (0 votes)
8 views

Functions Question

The document outlines a C programming assignment for students at Mount Alvernia High School's Business Department, focusing on creating a program that manages student grades for Math, English, and Science. It specifies requirements such as using arrays for grade storage, implementing a menu with a loop and switch statement, and ensuring proper input handling and error management. The grading criteria include program structure, functionality, code readability, and overall program performance, totaling 20 points.

Uploaded by

salmondaniela1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Functions Question

The document outlines a C programming assignment for students at Mount Alvernia High School's Business Department, focusing on creating a program that manages student grades for Math, English, and Science. It specifies requirements such as using arrays for grade storage, implementing a menu with a loop and switch statement, and ensuring proper input handling and error management. The grading criteria include program structure, functionality, code readability, and overall program performance, totaling 20 points.

Uploaded by

salmondaniela1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Mount Alvernia High School

Business Department
COMPUTER SCIENCE (MODULE 3)

Write a C program that will show a menu giving the option to student name a submit term grade
and final for each subject (Math, English & Science). Calculate the average per subject,
calculate overall average for the student. Display the grades per subject and the dispay the for
overall average.
NB: Ensure each grade is stored within their own array. Please use return functions, switches
and appropriate constructs.

Criteria Description Points Grade

 The program is well-structured with clear


1. Program Structure separation of functions. 2

 Correctly prompts for and receives student


name and grades.
 Uses appropriate data types (e.g., float for
2. Input Handling grades). 2

 Implements a menu using a loop and


switch statement.
 Provides options for inputting grades,
3. Menu Implementation calculating averages, and exiting. 2

 Correctly collects term and final grades for


each subject.
4. Functionality  Stores grades in separate arrays for term
of inputGrades and final grades. 3

 Correctly calculates the average for each


subject.
5. Functionality  Uses pointers to return the average
of calculateAverages values. 3

 Correctly displays the average grades for


6. Functionality each subject.
of displayGrades  Displays the overall average correctly. 2

 Code is well-commented and easy to read.


 Uses meaningful variable and function
7. Code Readability names. 2
 Handles invalid input gracefully (e.g., non-
8. Error Handling numeric input). 2

9. Overall Program  The program runs without errors and


Functionality produces the expected output. 2

Total 20

You might also like