VERSION 5.00 Begin VB.Form frmRestaurantRating Caption = "Restaurant Rating" ClientHeight = 2736 ClientLeft = 48 ClientTop = 336 ClientWidth = 4944 LinkTopic = "Form1" ScaleHeight = 2736 ScaleWidth = 4944 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmdDone Caption = "Done" Height = 372 Left = 3240 TabIndex = 8 Top = 2160 Width = 1452 End Begin VB.CommandButton cmdOverallRating Caption = "Overall Rating" Height = 372 Left = 3240 TabIndex = 7 Top = 1680 Width = 1452 End Begin VB.TextBox txtService Height = 288 Left = 4320 TabIndex = 6 Top = 1080 Width = 372 End Begin VB.TextBox txtFood Height = 288 Left = 2760 TabIndex = 4 Top = 1080 Width = 372 End Begin VB.TextBox txtAmbiance Height = 288 Left = 1320 TabIndex = 2 Top = 1080 Width = 372 End Begin VB.Label lblService Caption = "Service:" Height = 252 Left = 3480 TabIndex = 5 Top = 1080 Width = 852 End Begin VB.Label lblFood Caption = "Food:" Height = 252 Left = 2040 TabIndex = 3 Top = 1080 Width = 732 End Begin VB.Label lblRatingHelp Caption = "Rate the ambiance, food, and service with scores from 1 (worst) to 4 (best):" Height = 492 Left = 240 TabIndex = 0 Top = 240 Width = 3372 End Begin VB.Label lblAmbiance Caption = "Ambiance:" Height = 252 Left = 240 TabIndex = 1 Top = 1080 Width = 972 End End Attribute VB_Name = "frmRestaurantRating" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Sub cmdOverallRating_Click() Dim intAmbianceRating As Integer, intFoodRating As Integer, intServiceRating As Integer Dim intAvgRating As Integer intAmbianceRating = txtAmbiance.Text intFoodRating = txtFood.Text intServiceRating = txtService.Text intAvgRating = (intAmbianceRating + intFoodRating + intServiceRating) / 3 End Sub Private Sub cmdDone_Click() Unload Me End Sub