Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 4 Review the completed VB.NET program below that is for the shown table and GUI. Then answer the questions that follow the program by
QUESTION 4 Review the completed VB.NET program below that is for the shown table and GUI. Then answer the questions that follow the program by filling in the blanks. Form1 Name of the GUI Object: Label1 Label2 Car Purchase Online Properties: (Indicate "Text" only) Car Purchase Online Car Maker Model Choose Maker Choose Model Car Maker choose Maker Label3 Model Choose Model ComboBox1 ComboBox2 Button1 Find Price Find Price Base Price Label4 Retail Price Base Price Labels TextBox1 TextBox2 Retail Price Public class Form1 Inherits System.Windows.Forms. Form Private Sub Form1_Load(ByVal sender As System.Object, Byval e As Systen. EventArgs) Handles MyBase.Load ComboBox1.Items.Add("Ford") ComboBox1.Items.Add("Toyota") ComboBox2.Items.Add("OX") ComboBox2.Items.Add("LX") ComboBox2.Items.Add("EX") End Sub Private Sub Button1_Click(ByVal sender As System.object, Byval e As Systen. EventArgs) Handles Button1.click Dim MfPrice, BasePrice, RetailPrice As Double If (comboBox1.Text-"Choose Maker") or (ComboBox2.Text-"Choose Model") Then MsgBox("Please choose...",, "Missing input") Else If ComboBox1.Text = "Ford" Then MfPrice = 2eeee Else MfPrice = 25eee End If If ComboBox2.Text - "X" Then BasePrice - MfPrice + 2000 Else If ComboBox2.Text = "LX" Then BasePrice = MfPrice + 3eee Else BasePrice = MfPrice + 4eee End If End If RetailPrice - BasePrice + see TextBox1.Text - Format (BasePrice, "Currency") TextBox2.Text - Format(RetailPrice, "Currency") End If End Sub End Class Q1: In the run mode" of the above VB.NET program, if the user clicks the "Find Price" button without choosing anything, appears in the message box, that has the title Q2: In the "run mode" of the above VB.NET program, if the user selects "Ford" for Maker and "LX" for Model, and then clicks the "Find Price button, appears in TextBox1, and appears in TextBox2. Q3: In the run mode" of the above VB.NET program, if the user selects "Toyota" for Maker and "DX for Model, and then clicks the "Find Price" button, appears in TextBox1, and appears in TextBox2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started