Question

PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectiv

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

Program:

Public Class Form1

Private Sub btn_Calculate_Click(sender As Object, e As EventArgs) Handles btn_Calculate.Click

Const price12Pack As Double = 14.99
Const price5Pack As Double = 6.99
Const price2Pack As Double = 2.5
Dim totalPack As Integer
Dim totalPrice As Double
Dim pack12, pack5, pack2 As Integer

pack12 = Convert.ToInt32(txt12Packs.Text)
pack5 = Convert.ToInt32(txt5Packs.Text)
pack2 = Convert.ToInt32(txt2Packs.Text)
totalPack = pack12 + pack5 + pack2

lblTotalPacks.Text = totalPack & ", "


totalPrice = pack12 * price12Pack + pack5 * price5Pack + pack2 * price2Pack

lbl_TotalPrice.Text = "$" & Math.Round(totalPrice, 2)

End Sub

Private Sub btn_EXIT_Click(sender As Object, e As EventArgs) Handles btn_EXIT.Click
Application.Exit()
'end - can be used to exit
End Sub
End Class

Output:

Quick Launch (Ctrl+0) 2 x - 0 Sign in 9 O 0 No Application Insights Events :3 8 . 1 39 . 1 Stack Frame Chopkins Toys Demo For

Add a comment
Know the answer?
Add Answer to:
PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use...
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
  • INSTRUCTIONS #6. Your science teacher has asked you to create an application that displays how much...

    INSTRUCTIONS #6. Your science teacher has asked you to create an application that displays how much a person would weigh on the following planets: Venus, Mars, and Jupiter. The application's interface should allow the user to enter the person's weight on Earth. Perform the steps involved in creating an OO application. (See the Note at the beginning of the Exercises section.) Include a button for clearing the screen. . Create an application, using the following names for the solution and...

  • The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language....

    The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language. The book ISBN number that I am using is: 978-1-285-08416-9 or the UPC code is: 2-901285084168-1. Question 1 Visual Basic 2012 is an object-oriented programming language, which is a language that allows the programmer to use ____________________ to accomplish a program�s goal. Question 2 An application that has a Web user interface and runs on a server is called a(n) ____________________ application. Question 3...

  • Subject: Advance application development Visual studio exercise The project is to create a simple Notepad style Tex...

    Subject: Advance application development Visual studio exercise The project is to create a simple Notepad style Text Editor. This will demonstrate the C# language basics. user interface controls and how to handle user events. Controls can be found in the Toolbox pane in its default location on the left side of the IDE, with the Control Properties pane on the right side of the IDE. Include the items on the following list in the program Create a C# Windows Forms...

  • The Doughnut Shoppe sells four varieties of doughnuts: Glazed ($.65), Sugar ($.65), Chocolate ($.85), and Filled...

    The Doughnut Shoppe sells four varieties of doughnuts: Glazed ($.65), Sugar ($.65), Chocolate ($.85), and Filled ($1.00). It also sells regular coffee ($1.80) and cappuccino ($2.50). The store manager wants an application that she can use to calculate and display a customer’s subtotal, 3% sales tax, and total due. a. CreateaVisualBasicWindowsapplication.Usethefollowingnamesforthesolution and project, respectively: Doughnut Shoppe Solution and Doughnut Shoppe Project. Save the application in the ClearlyVB2012\Chap17 folder. Change the name of the form file on your disk to frmMain.vb....

  • please help me finish this, it is for Visual Basic . net in Visual studio 2010...

    please help me finish this, it is for Visual Basic . net in Visual studio 2010 (show pictures of code and of the form please) Lab #5 - Banking Account with Methods Submit Assignment Download Work file Download Runtime Be sure to include comments at the top of each procedure and at the top of the file. Be sure to use meaningful names for all buttons and labels. In this lab you will create a simple banking application that will...

  • Integer Math- Console based---uses Windows Form in Visual Basic   Create an application that uses random integers...

    Integer Math- Console based---uses Windows Form in Visual Basic   Create an application that uses random integers to test the user’s knowledge of arithmetic. Let the user choose from addition, subtraction, multiplication, and division. The integers used in the problems should range from 20 to 120. When giving feedback, use color to differentiate between a correct answer response, versus an incorrect answer response. Also check for non-integer input. Preparing division problems requires special consideration because the quotient must be an integer....

  • To conclude the project, use the UML diagram you created last week and create an application in Visual Studio name...

    To conclude the project, use the UML diagram you created last week and create an application in Visual Studio named School. Once you have written the code, be sure and test it to ensure it works before submitting it. Below is the UML diagram for the basic class we created last week for your reference, but for this project be sure you use the one that you created last week. Good luck and be sure to get started early in...

  • USING VISUAL BASIC STUDIO PLEASE PROVIDE THE CODE IN C# LANGUAGE SELECT CONSOLE APPLICATION You are...

    USING VISUAL BASIC STUDIO PLEASE PROVIDE THE CODE IN C# LANGUAGE SELECT CONSOLE APPLICATION You are to create a House with 2 rooms in the house. The following is an example of C++ code for the basic classes: **in C#, it may be written differently** class Room { private: double L; double W; public: //functions go here. } class House { private: Room room1; Room room2; public: //functions go here } The code above is C++ version. In C#, you...

  • Use visual Basic Sign in gShare Insert | Design | Layout | References | Mailings |...

    Use visual Basic Sign in gShare Insert | Design | Layout | References | Mailings | Review | View。Tell me Home File Calibri (Body) 12 影 : . Styles Editing Paste Paragraph Styles lipboard Font Chapter 5 You Do It Exercises Exercise 1: Create an application named You Do It 5_2. Add comments to your code and include the three Option statements Add a label and a button to the form. The button should use a posttest loop and the...

  • If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but...

    If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but minor discrepancies may require you to adjust. If you are attempting this assignment using another version of Visual Studio, you can expect differences in the look, feel, and/or step-by-step instructions below and you’ll have to determine the equivalent actions or operations for your version on your own. INTRODUCTION: In this assignment, you will develop some of the logic for, and then work with, the...

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
ADVERTISEMENT