Question

Please note: This is in Visual Basic. Create an application (windows forms app). Add a label...

Please note: This is in Visual Basic.

Create an application (windows forms app). Add a label and a button to the form. The button’s Click event procedure should declare and initialize a one-dimensional Double array. Use any six numbers to initialize the array. The procedure should display (in the label) the lowest value stored in the array. Code the procedure using the For...Next statement.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the solution:

Public Class frmMain
    Private Sub btnClick_Click(sender As Object, e As EventArgs) Handles btnClick.Click
        Dim n() As Integer = {7, 4, 2, 9, 2, 10} ' n is an array of 5 integers
        Dim a As Integer 'declare the variable integer
        a = n(0) 'initialize the value to a
        For i = 0 To 5 'loop six times
            If a > n(i) Then 'check for the samllest with the array
                a = n(i) 'initialize the value to the a
            End If
        Next
        lblDisplay.Text = a 'display
    End Sub
End Class

sample output:

if got the solution helpful upvote

Add a comment
Know the answer?
Add Answer to:
Please note: This is in Visual Basic. Create an application (windows forms app). Add a label...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use...

    PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...

  • Please help! Visual Basic - Windows App Form .NET Framework. ​Option Explicit ON ​Option Strict ON...

    Please help! Visual Basic - Windows App Form .NET Framework. ​Option Explicit ON ​Option Strict ON ​Option Infer ON calculate Letter Grade Number grade: I Letter grade: Calculate Exxt Start a new Project named GradeConverter Add labels, textboxes, and button to the default form. Create an event handler for Calculate and Exit. . When the user enters a number- between 0.0 and 100.0 and clicks Calculate, the letter grade will display for the user The form should be able to...

  • In Visual Basic Windows Form App, how would you create an object with 5 fields that...

    In Visual Basic Windows Form App, how would you create an object with 5 fields that pulled from text boxes and adds the object to an array of objects at the push of a button. For example an object Item has the fields strManufacturer, strProcessor, strForm, strVideo, and strRAM. How do I send the text someone enters in to those variables and make an object that is in an array of objects with a button called save?

  • Write a C# Windows Forms App code in Visual studio with a "start", "stop", "up", "down",...

    Write a C# Windows Forms App code in Visual studio with a "start", "stop", "up", "down", "left" and "right" buttons and a textbox. The textbox should start printing numbers from 1 to 100 on the press of the "start" button and stop printing process immediately on the press of "stop" button. Also create a thread after stop button is pressed to allow manual input from  "up", "down", "left" and "right" buttons and print up, down, left or right in the same...

  • C# WINDOWS FORMS APPLICATION (not CONSOLE APPLICATION ) (Please screenshot window form of this program and...

    C# WINDOWS FORMS APPLICATION (not CONSOLE APPLICATION ) (Please screenshot window form of this program and write code on computer. Thank you very much !) For this week's assignment , create and complete a Windows application for the following question. Airline Reservation System: An airline has just bought a computer for its new reservation system. Develop a new system to assign seats on the new airplane( capacity: 10 seats) Display the following alternatives: "Please type 1 for first class, and...

  • Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the...

    Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the number of eggs produced by each of four geese. Your program should provide textboxes with labels for the user to enter the values. When the user clicks a Calculate button, your app should sum the textboxes, then display the total number of eggs, as well as the number of eggs in dozens and remaining eggs, as shown on the example. Feel free to make...

  • Using Windows Form App create an application that determines if an entry from the user is...

    Using Windows Form App create an application that determines if an entry from the user is a palindrome. A palindrome is a series of numbers that can be read from left to right or right to left. Examples of palindromes are 22222, 12321 and 89298. A palindrome must be 5 digits long. Using modulus and division evaluate digits one at a time from right to left. The user should enter their palindrome into the palindrome checker application using a text...

  • Create a C# program using WINDOWS FORM App in Visual Studio. THE ANSWER MUST BE IN...

    Create a C# program using WINDOWS FORM App in Visual Studio. THE ANSWER MUST BE IN C#, IN WINDOW FORM APP, IN VISUAL STUDIOS. Write the code to: Write a method called MaximumDiffrence that accepts an integer array as a parameter and return the maximum difference between adjacent values in the array, where the gap is defined as the absolute value of the difference between the 2 adjacent values. Example: if the array contains {5, 7, 4, 9, 6, 12,...

  • A fitness tracking app company has asked you to develop a windows application using a GUI...

    A fitness tracking app company has asked you to develop a windows application using a GUI to determine the total amount of hours somebody has exercised during their lifetime, assuming on average a user has exercises 2.5 hours per week. When the user uses the app, they will enter the following: First Name: Last Name: Date of Birth (in mm/dd/yyyy): Current Date (in mm/dd/yyyy) This program should display the users name and the number of hours the user has exercised...

  • must be visual basic code please include any properties that have to be changed. rcises-3.pdf -...

    must be visual basic code please include any properties that have to be changed. rcises-3.pdf - Adobe Acrobat Reader DC View Window Help Tools Extra exerases-3.pdf X 14 Extra exercises tor Murach's Visual Basie 2015 Extra 8-1 Display a test scores array In this exercise, you'll enhance the Score Caleulator form of extra exercise 4-2 so it saves the scores the user enters in an array and then lets the user display the sorted scores in a dialog box. Elle-a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT