subject

In this exercise, you modify the History Grade application from this chapter’s Focus lesson. Use Windows to make a copy of the History Solution folder. Rename the copy History Solution-Functions. Open the History Solution. sln file contained in the History Solution-Functions folder. Modify the btnDisplay_Click procedure so that it uses two functions named GetGrade101 and GetGrade201 to get the appropriate grade; the procedure should then display the grade in the lblGrade control. Change the two independent Sub procedures to functions that return the appropriate grade to the statements that invoke them in the btnDisplay_Click procedure. Each function should contain a parameter that accepts the total points passed to it. Save the solution and then start and test the application. Option Explicit On
Option Strict On
Option Infer Off
Public Class frmMain
' Independent Sub procedures.
Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay. Click
' Calls independent Sub procedures to display a grade.
End Sub
Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit. Click
Me. Close()
End Sub
Private Sub txtPoints_Enter(sender As Object, e As EventArgs) Handles txtPoints. Enter
txtPoints. SelectAll()
End Sub
Private Sub ClearGrade(sender As Object, e As EventArgs) Handles txtPoints. TextChanged, radHis101.CheckedChanged, radHis201.CheckedChanged
lblGrade. Text = String. Empty
End Sub
Private Sub txtPoints_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtPoints. KeyPress
' Accept only numbers and the Backspace key
If (e. KeyChar < "0" OrElse e. KeyChar > "9") AndAlso e. KeyChar <> ControlChars. Back Then
e. Handled = True
End If
End Sub

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
How do i draw hello world in python and how do i make it loop?
Answers: 1
question
Computers and Technology, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
You know the right answer?
In this exercise, you modify the History Grade application from this chapter’s Focus lesson. Use W...
Questions
question
Mathematics, 05.12.2021 23:30
question
Mathematics, 05.12.2021 23:30
question
Mathematics, 05.12.2021 23:30
question
Mathematics, 05.12.2021 23:30
Questions on the website: 13722363