CSCI 112
Fall 2025 - Assignment 7
Submit deadline: 11:30am, 24 November 2025, Monday

Objective:

References:


Problem Description

An institution organized an employee donation campaign for multiple causes for a period of time.

Whenever an employee donated an amount to a cause, a record was generated and appended to the list of recordes stored in an Excel worksheet named "Donation Records". Each row in the worksheet represents a donation, where each column records the donating employee's name (presumably unique for all employees), the donation cause (also unique for all causes), the donation date and the donation amount respectively. An employee can donate to the same cause multiple times.

You can find a list of the sample donation records in the input file. Note that the purpose of the sample input file is to demonstrate the format of the data. The actual data collection may be significantly different in its size and values.

After the donation campaign ended, the institution would like you to develop VBA programs to generate summary report, and to support enquiries about individual employees and causes. You are NOT allowed to change the original donation records stored in the worksheet "Donation Records" in any way.

Extra requirement:

In order to practice the VBA procedures, you must implement and use at least the following procedures:

' Given data as the name of an employee, find and return
' the row number of its match in designated column (col)
' between firstRow and lastRow,
' If no matching data is found, return lastRow+1
Function FindName(ByVal firstRow As Integer, _
                  ByVal lastRow As Integer, _
                  ByVal col As Integer, _
                  ByVal data As Date) As Integer

' Given data as the name of a cause, find and return
' the column number of its match in designated row (row)
' between firstCol and lastCol,
' If no matching data is found, return lastCol+1
Function FindName(ByVal firstCol As Integer, _
                  ByVal lastCol As Integer, _
                  ByVal row As Integer, _
                  ByVal data As String) As Integer

Your tasks

How to submit:

To submit your macro enabled solution Excel file, first 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 "A7". Then you can click on the "Add a File" button to browse and upload your solution file.

If you have trouble to make the VIU Learn submission work, please email me to let me know and attach your Excel solution file with your email if necessary.


Last updated: 12 November 2025