VB Programming, what is VB Programming?

Updated on educate 2024-05-24
4 answers
  1. Anonymous users2024-02-11

    Simple! 1. Define the array a(4,4).

    2. In the loop, use int(240+rnd(325-240)) to generate random numbers and assign them to an array, and judge whether it is less than 300, when it is less than 300, add up, and record the number.

    3. When you are done, you can get the sum average.

    4. The diagonal is directly judged by the bubble method. And there are rules to follow.

  2. Anonymous users2024-02-10

    private sub command1_click()

    dim a(4, 4) as string, str() as string, tmp as string, sumstr as long, count as integer

    dim max1 as integer, tmp1 as integer, max2 as integer

    for i = 0 to 4

    for j = 0 to 4

    randomize

    a(i, j) = int(rnd * 85 + 240)

    i * 400

    j * 200

    a(i, j)

    if val(a(i, j)) 300 then tmp = tmp & a(i, j) &"|"

    next j

    next i

    str = split(tmp, "|")

    Numbers less than 300:";

    for i = 0 to ubound(str)

    if str(i) <"" then str(i) &",";: count = count + 1

    sumstr = val(str(i)) sumstr

    vbcrlf & "Less than 300 and:" & sumstr

    Less than 300 numbers average:" & sumstr / count

    vbcrlf & "The first diagonal:";

    max1 = val(a(0, 0))

    for i = 0 to 4

    a(" & i & "," & i & ")=" & a(i, i) &",";

    if val(a(i, i)) max1 then tmp1 = val(a(i, i)):max1 = tmp1

    vbcrlf & "First diagonal maximum:" & max1

    vbcrlf & "Second diagonal:";

    max2 = a(0, 4)

    for i = 0 to 4

    a(" & i & "," & 4 - i & ")=" & a(i, 4 - i) &",";

    if val(a(i, 4 - i)) max2 then tmp1 = val(a(i, 4 - i)):max2 = tmp1

    next i

    vbcrlf & "Second diagonal maximum:" & max2

    end sub

  3. Anonymous users2024-02-09

    Visual Basic (VB) is an event-driven programming language developed by Microsoft that includes environments. It is derived from the basic programming language. VB has a graphical user interface (GUI) and a rapid application development program (RAD) system, which can be easily used to connect to the database using DAO, RDO, ADO, or easily create ActiveX controls.

    Programmers can easily quickly create an application using the components provided by VB.

    visual basic .net (Yes.) A high-level language for multiple programming paradigms under the .NET framework.

    It was introduced by Microsoft in 2002 as the successor to the original Visual Basic. Although since 2005, the language name in the ". .net" has been removed.

    But in order to distinguish it from VB and previous versions of Visual Basic, Visual BasicThe name "net" is still used by the public to refer to VB and later Visual and C. The two main programming languages under the .NET Framework are designed to be called.

    .NET Framework's class library resources, so the two languages have a high correspondence, data types, control structures and language characteristics are one-to-one correspondence, and it is easy to translate the source ** from one language pair to another.

  4. Anonymous users2024-02-08

    Visual Basic programming is the basic programming language.

    With a graphical user interface (GUI) and rapid application development (RAD) system, VB can easily connect to databases using DAO, RDO, ADO, or easily create Active X controls for efficient generation of type-safe and object-oriented applications.

    Programmers can easily build an application quickly using the components provided by VB.

Related questions
6 answers2024-05-24

VB design.

Introduction. What is required. >>>More

17 answers2024-05-24

Not popular, but much easier to learn than other languages.

6 answers2024-05-24

Add 2 buttons, 2 textboxes, 1 listbox, and you can't go wrong. >>>More

7 answers2024-05-24

The last sentence is wrong, you have already swapped the values of the original b and c in the second if sentence, which means that the value of a must be greater than the value of c, and at this time, the value of a is not necessarily greater than the value of b, so this is not good.

5 answers2024-05-24

Is it to add a cycle, but to know the number of cycles.