Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Programming . visual Basic . question 1a - 3F Question la: Write a single statement to define x as decimal and the value of

Computer Programming .
visual Basic . question 1a - 3F image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question la: Write a single statement to define x as decimal and the value of x is 99.99. Question 1b: In Me.Close() statement, what is me referring to? Question 2a: What IsttBox.Items.Clear() is used for? Question 2b: What would happen to the listbox if this statement is missing? Question 3: In A-G, determine the output displayed in the listbox by the lines of code. A. Dim amount = 10 As Double amount += 10 1stoutput.Items.Add(amount - 5) B. Dim a As Integer = 2, b As Integer = 3 a += 2 b += 5 * a Istoutput.Items.Add(a + b) Dim n As Integer = 7 n+=11 Istoutput.Items.Add(11) Istoutput.Items.Add(n) Istoutput.Items.Add(n / 4) D. Dim a as Integer = 2, b As Integer 1stoutput.Items.Add(a + 1) b = a * a 1stoutput.Items.Add(a * b) c. E. F. Dim tax As Double = 100, interest as Integer = 6 1stOutput.Items.Add(tax\interest) Dim balance As Double = 36.66 1stOutput.Items.Add(tax + balance V interest) Dim totalMinutes, hours, minutes As Integer totalMinutes = 85 hours = totalMinuts I 60 munutes = totalMinutes Mod 60 Const DAYLIGHT SAVINGS As Integer = 1 Istoutput.Items.Add(hour - DAYLIGHT SAVINGS) 1stoutput.Items.Add(minutes) 110 vuol di BUL Hnye to light yellow color or any other color in your preference. 7. Use rt = FormatNumber(rt, 3) to set the precision Resistors in Parallel by John Smith R1 - 2019 ohms R2 502 ohms R1 - 2019 cm R2 502 ohms Resistance (in ohms) 402.03808012693 Resistance (inches) 402.038 Compute (in decimal) Compute (in integer) Compute (in decimal Compute (in integer) 8. Upon clicking on button Compute (in integer), the underline will be cleared. Back color of the button and listBox change to light blue color or your own color settings. 9. Upon clicking on button Exit the form will be closed. Resistors in Parallel by lohn Smith R1 - 2019 ohms R2 - 502 ohms Resistance Colms) 402 Compute (in decimal) Compete winteger)

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

b. Why were these values considered important?

Answered: 1 week ago