| |
Lab 6: Grade Calculator
Page history
last edited
by Mr. Kretsch 7 months ago
Coder's Name: _________________________________________________________
Assistants Name::______________________________________________________
Objective: Code logical and relational statements
Quiz
- Complete the following truth table:
| Din blnA as Boolean |
Dim blnB as Boolean |
blnA Xor blnB |
Not blnA And blnB |
blnA Or Not blnB |
|
| True |
True |
|
|
|
|
| True |
False |
|
|
|
|
| False |
True |
|
|
|
|
| False |
True |
|
|
|
|
- What is displayed in Label1 if I type -34 into the text box by the following code:
Dim intPositive as Integer = 100 Dim intNegative as Integer = -33 Dim intInput as Integer = Convert.ToInt32(TextBox1.Text) If intInput < intPositive And intInput > intNegative Then Label1.Text = "Valid" Else Label1.Text = "Bogus!!" Endif
Instructions:
- Create a new project called Grader
- The grader form has three text boxes corresponding to test grades, a label, a check box representing honors status, and a button.
- When the user clicks the button
- Your program will check that the test grades are between 0 and 100, inclusive
- Calculate and display the average of the test grades
- If the grade is over 90%, display, somehow, that the student made the honor roll
- If the grade is below 70% and the student is an honors student, display, somehow, that the student is on probation.
- If the student is not honors and the grade average is below 60% display, somehow, that the student is on probation.
- Extra points will be given for creativity in displaying honor roll and probation status
Extra Credit
- Add a fourth text box for homework, which counts as half a test.
- Calculate and display a letter grade
Grade
| Criteria |
Points |
Out of |
Notes |
| Grade calculation |
|
5 |
|
| Probation notification |
|
7 |
|
| Honor roll notification |
|
3 |
|
| Creativity |
|
|
|
| Homework |
|
|
|
| Letter Grade |
|
|
|
| Total |
|
15 |
|
Notes
Lab 6: Grade Calculator
|
|
Tip: To turn text into a link, highlight the text, then click on a page or file from the list above.
|
|
|
Comments (0)
You don't have permission to comment on this page.