View
 

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

  1. 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        
  1. 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: 

  1. Create a new project called Grader
  2. The grader form has three text boxes corresponding to test grades, a label, a check box representing honors status, and a button.
  3. When the user clicks the button
    1. Your program will check that the test grades are between 0 and 100, inclusive
    2. Calculate and display the average of the test grades
    3. If the grade is over 90%, display, somehow, that the student made the honor roll
    4. If the grade is below 70% and the student is an honors student, display, somehow, that the student is on probation.
    5. If the student is not honors and the grade average is below 60% display, somehow, that the student is on probation.
  4. 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

 
 
 
 
 
 
 

 

 

Comments (0)

You don't have permission to comment on this page.