Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions