CSCI 112
Fall 2026 - Assignment 8
Submit deadline: 13:00, 26 November 2026, Thursday

Objectives:

References:


Problem Description

An instructor (like me) keeps the assignment and exam marks of her students in an Excel file.

A sample student mark records can be viewed in A8-input.xlsx.

In the file, you can see that Row 5 stores the assignment/exam names, Row 6 stores the maximum mark you can get in the corresponding assignment/quiz/exam, and Row 7 stores the percentage of how much the corresponding assignment/quiz/exam contributes to the final mark.

To calculate a student's final mark, first we calculate the individual contribution of each assignment/exam as (this student's mark in this assignment/exam) multiplies (the contribution percentage of this assignment/exam) then divided by (the maximum mark of this assignment/exam), then we sum the individual contributions of all assignment/exams together, the result would be this student's final mark.

In calculating the student's final mark, we need to keep the decimal part of each contribution to at least 2 digits after the decimal. However, before we can translate the final mark to its corresponding letter grade, the final mark needs to be rounded to an integer number. The VBA function that performs the rounding is:
Round(number, number_of_digits_after_decimal)
The first number in the brackets should be the number to be rounded and the second number in the brackets should be an integer number indicating how many digits after the decimal point should be kept. The returned value from function Round would be the rounded result.

The grade scale used to translate the numerical marks to their corresponding letter grades is shown in the range from A1 to L3 of the worksheet.

Your tasks:

Your overall program must design and implement 3 separate procedures to handle the search of the student, the calculation of the final numerical mark of a selected student, and the conversion of the numerical mark to its equivalent letter grade. Then the main subroutine that handles the command button click must call/use these 3 procedures to perform the "Display Info" task.

Before submitting your assignment, you need to check at least the following things:

How to submit:

To submit your assignment, login to your VIU Learn account, find the CSCI 112 course page, click on the "Assessment" drop-down menu, click on the "Assignments" item, then click on the folder named "A8". Then you can click on the "Add a File" button to browse and upload your (macro-enabled) solution file.

If you have difficulties to submit through the VIU Learn, please email me to let me know and attach your solution file with your email.


Last update: November 10, 2026