1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vekshin1
3 years ago
9

In the btnadd_click event handler, add the Visual Basic instructions to do the following:

Computers and Technology
1 answer:
algol133 years ago
8 0

Answer:

A. for defining the procedural level variable intLocal with an integer datatype can be declared in visual basic as below:

Dim intLocal As Integer =23

B. Remember the static is declared using shared variable in visual basic and it means same copy will be available for all instances, and the class variable are being declared as below.

Like, Shared intStatic As Integer = 25

and Dim intClass As Integer =23

C. Now we declare a constant intOne

Const IntOne = 2 outside all methods, so that it has the class level scope.

Now, We need to write:

  Label1.Text = intLocal + intOne

       Label2.Text = intStatic + intOne

       Label3.Text = intClass + intOne

label1 displays inLocal incremented value, and so on.

D.  All are displayed through same code.

Note: we can increment each variable through variable as well, rather than with the help of Label.

Explanation:

Public Class Form1

   Dim intClass As Integer = 23

   Shared intStatic As Integer = 25

   Const intOne = 2

   Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click

   End Sub

   Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click

   End Sub

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

       Dim intLocal As Integer = 23

       Label1.Text = intLocal + intOne

       Label2.Text = intStatic + intOne

       Label3.Text = intClass + intOne

End Sub

You might be interested in
On the Loan worksheet, in cell C9, enter a PMT function to calculate the monthly payment for the Altamonte Springs 2018 faciliti
Nitella [24]

Answer:

We need to find the monthly payment.

Hence, we need to make a Loan Worksheet, and in cell c9 we need to enter a PMT function for calculating the monthly payout required for the Altamonte Springs 2018 Loan facilities. We also need to make sure that the function gives us a positive answer.

And the B5 and B6 are considered as the absolute references. The interest rate is 4.5%, and the payment numbers are 12. And the Altamonte facilities cost is $16450.95

And hence the formula will be:

=-PMT($B$5,$B$6,B7)

Explanation:

Please check the answer section, and attachment.

Download xlsx
4 0
4 years ago
What are the arguments for writing efficient programs even though hardware is relatively inexpensive?
Ainat [17]

Answer: Even though the hardware is inexpensive the writing of program is not efficient through this method as proper development of program is necessary for the clear execution due to factors like:-

  • The facility of writing program even the cost of hardware is less but it is not a free facility.
  • It also has a slower processing for the execution of the program
  • The construction of the efficient program is necessary for the compilation and execution of it rather than poorly constructed program is worthless and inefficient in working.

7 0
3 years ago
A study by the Pew Internet and American Life Project reports that ________ percent of Americans research products and services
katrin2010 [14]

Options:

A. 40;35

B. 60;30

C; 70;35

D. 60;35

Answer:D) 60; 35.

Explanation:Pew Research center is a Private, nonpartisan fact tank, which conducts opinion polls on public related issues such Demographic,political,economic, religious and Environmental topics it was established in the year 2014 in Washington DC,United States of America.

Pew research center conducts it's opinion polls and research through various platforms such as Social media,internet, questionnaires etc.

3 0
3 years ago
Write a function in Erlang called func that takes a list of tuples and returns a new list consisting of tuples from the original
vovikov84 [41]

Answer:

Please find the complete question in the attached file.

Explanation:

Following are the code to the given question:

-module(helloworld)//use a module

-export([start/0])

start() ->//start module

func([Head Taill) ->//defining a method func that takes a parameter

{

first, second} = Head,//holding head value

if //defining if block

first > second -> func(Tail)//method func that takes a parameter

true ->

[first, second}|func(Tail)]//method func that takes a parameter

end

6 0
3 years ago
Does anybody know how to do 6.3 code practice on edhesive. NEED ASAP!!!​
Lady_Fox [76]

Answer:

Hopes this helps if not comment and I'll change it

Explanation:

import simplegui

import random

def draw_handler(canvas):

for i in range (0, 1000):

x = random.randint(1, 600)

y = random.randint(1, 600)

r = random.randint(0, 255)

g = random.randint(0, 255)

b = random.randint(0, 255)

color = "RGB( " + str(r) + "," + str(g) + "," + str(b) + ")"

canvas.draw_point((x, y), color)

frame = simplegui.create_frame('Points', 600, 600)

frame.set_canvas_background("Black")

frame.set_draw_handler(draw_handler)

frame.start()

8 0
3 years ago
Other questions:
  • With Google Alerts you can Group of answer choices
    13·1 answer
  • if you wanted to predict the value of the y variable when the x variable is 15, you would be _____ the data. correlating extrapo
    14·2 answers
  • What does the binary odometer show about representing large numbers?
    8·1 answer
  • On net, is technology good or bad for society? Please explain, support your argument, I’ll mark brainliest
    9·2 answers
  • Horizontal scaling of a client/server architecture means _____.
    12·1 answer
  • What G-Suite Apps integrate with Forms
    14·2 answers
  • 20 POINTSS!! NEED HELP!!
    12·2 answers
  • An input value has to be greater than 18 and less than 65 if a driving license is to be approved for issue. What type of input c
    11·1 answer
  • Unlike radio frequency identification (RFID) tags, bar codes: Question 30 options: require a reader that tunes into a specific f
    14·1 answer
  • _________ is an alternative name for the main memory.help me​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!