Task 1: Build an Exam Marks Calculator Application
Your school is hiring you, as a programmer to develop an Exam Marks Calculator Application using
VB.Net.
Use the following steps to complete the task.
- Application Overview:
Design and implement a program that allows a user to enter marks for five subjects and
calculates the following:
Total Marks
Average Marks
Grade (based on the average marks using a grading system provided below)
- Grading System:
Grade A: 80–100
Grade B: 70–79
Grade C: 50–69
Grade D: 35–49
Grade F: Below 35
- Requirements:
The application should include:
Five textboxes for entering subject marks.
A button labeled Calculate to perform the calculations.
Labels or textboxes to display the total marks, average marks, and grade.
A Clear button to reset all input and output fields.
Validate that the marks entered are:
Numeric values.
Within the range of 0–100.
10
- Step-by-Step Guide:
Step 1: Open VB.NET/Visual Studio and create a new Windows Forms
Application.
Step 2: Design the user interface using the VB.NET/Visual Studio toolbox. Arrange
the input fields, buttons, and output labels logically.
Step 3: Write the code for the Calculate button to:
o Validate inputs.
o Calculate the total and average marks.
o Determine the grade based on the average marks.
Step 4: Write the code for the Clear button to reset all input and output fields.
Step 5: Test your application to ensure it works as expected.