An Introduction to Programming Using Visual Basic Display the order number (stri
ID: 3600207 • Letter: A
Question
An Introduction to Programming Using Visual Basic
Display the order number (string function) as in the picture [[[ Order Number: JW- 1018520]]]]]
* first letter of first name (upper case)
* first letter of last name (upper case)
* dash
* date code (mmdd)
* class Number (only class level variable used in the program. Start with 500 and increment by 10 for each order to generate the next available class number. First order should be 500.)
els Are Us: NC Mountain Trips -2017 Rates Rates (per person): Base Rate (4 day trip): Base Rate (7 day trip): Optional Excursion Costs AT Hike: Whitewater Rafting: Train Ride: Wine Tasting: On-Season $699 $1,299 Off-Season $549 $1,050 $10 $75 $60 $25 $10 $50 $40 $25 Name: Party Size: Duration: Departure Date: Jason White AT Hike Rafting Train Ride Wine Tasting Four Day Trip October 18 ble Travels Are U3 -NC Mountain Trip Invoice Process Order Customer Name: Jason White Order Number: JW-1018520 Peak Season Rates Apply Reset Fom Base Cost: $1,398.00 Excusion Cost: $140.00 Total Co t: $1,538.00 Exit Programmed by: M SmitExplanation / Answer
Private Sub cmdGroup_Click()
Dim strName As String
Dim strLast As String
Dim intLastPosition As Integer
intLastPosition = InStr(1, strName, "") + 1
strLast = (Mid(strName, intLastPosition, 1))
strName = txtName.Text
If strLast = "[A-I]" Then
lblGroup.Caption = "Group 1"
ElseIf strLast = "[J-S]" Then
lblGroup.Caption = "Group 2"
ElseIf strLast = "[T-Z]" Then
lblGroup.Caption = "Group 3"
End If
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.