0% found this document useful (0 votes)
192 views2 pages

Assignment2 F19-1

This document provides instructions for a 10-step Excel VBA assignment to build a grade calculator. Students will enter their current marks, a desired overall mark, and the macro will calculate the letter grade and final exam mark needed to reach the desired overall. The assignment is out of 40 total points and involves creating buttons to greet the user, calculate totals, determine letter grades, and calculate the necessary final exam mark. Data validation is used to ensure marks are between 0-10 or 0-100 as appropriate.

Uploaded by

Bob Philip
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)
192 views2 pages

Assignment2 F19-1

This document provides instructions for a 10-step Excel VBA assignment to build a grade calculator. Students will enter their current marks, a desired overall mark, and the macro will calculate the letter grade and final exam mark needed to reach the desired overall. The assignment is out of 40 total points and involves creating buttons to greet the user, calculate totals, determine letter grades, and calculate the necessary final exam mark. Data validation is used to ensure marks are between 0-10 or 0-100 as appropriate.

Uploaded by

Bob Philip
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/ 2

Grader - Instructions Excel’s VBA 2019

Assignment2 VBA Instructions and grades


Total marks: 40

Excel’s Visual Basic for Applications


Steps to Perform:

Step Instructions Points


Possible

1 Start Excel. Download and open the file named gradeCalculator_for_a2.xlsm (this is a Macro- 0
Enabled Workbook). You should see “Revel Assignments (10%)” in cell F9 and similar entries
in cells F10 to F15 and F17. A button is also displayed at the top that says “Click here to clear
all values and re-enter them. Remember to …”.

2 Display the Developer tab in Excel. Save the file as gradeCalculator_for_a2.xlsm (Macro- 3
enabled Workbook)

3 Students who wish to use this calculator will enter their Revel Assignment mark (10%) in cell 4
G9. Cell G9 has data validation so that only values between 0 and 10 (both inclusive) are
allowed. For any other value, an error message “Revel Assignment marks must be between 0
and 10” pops up and gives the student an option to Retry. For example, an error message
pops up if 11 is entered in G9:

Understand the data validation method used for cell G9. Now apply this method to cell
G10 using an appropriate message.

4 Repeat step 3 for cells G11 to G15 and G17 and use appropriate error messages to validate 7
the values in them (similar to step 3).

5 Create Button 1: 5
Name: “Greetings”
Action:
1. Ask the student to enter name
2. Display a message that reads “Hello” followed by the name entered
3. Display a message that reads "Use the grade calculator to find the total marks you
need to score in the final exam in order to meet your expectations, given every mark
other than the final exam mark"
4. Display a message that reads "Best of luck " followed by the name entered
5. Display a message that reads "Please enter all your current marks, and the overall
mark that you desire (/100) - start entering from Cell G9"

6 Enter valid values for cells G9 – G15. 1

Created On: 07/05/2019 1 Assignment 2


Grader - Instructions Excel’s VBA 2019

7 Create Button 2: 6
Name: “Find Current Total”
Action:
1. Displays the following message in cell F16 “Current Total / 65”.
2. Adds the marks entered in cells G9..G15 and displays it in G16

8 Enter a valid value in cell G17 – this is the overall mark that the student desires (/100) 1

9 Create Button 3: 6
Name: “Click here to calculate the desired letter grade”
Action: Calculate the letter grade (based on the desired overall mark) and display in cell H17.
Use the following formula to calculate the letter grade:
OVERALL GRADE LETTER GRADE
>= 85 A
< 85 AND >= 70 B
< 70 AND >= 60 C
< 60 AND >= 50 D
< 50 F

10 Create Button 4: 7
Name: “Click here to calculate the final Exam Mark”
Action:
1. Display the following message in cell F19 “Final Exam Mark / 35”.
2. Calculate the final exam mark (/35) the student needs to reach the desired overall
mark and display it in cell G19.
3. Display the following message in cell F20 “Final Exam Mark / 100”.
4. Calculate the final exam mark (/100) the student needs to reach the desired overall
mark and display it in cell G20.

Total Points 40

Created On: 07/05/2019 2 Assignment 2

You might also like