Programming with Microsoft Visual Basic 2015 (MindTap Course List)
Programming with Microsoft Visual Basic 2015 (MindTap Course List)
7th Edition
ISBN: 9781285860268
Author: Diane Zak
Publisher: Cengage Learning
Question
Book Icon
Chapter 3.LA, Problem 13E
Program Plan Intro

Assignment statement

Program plan:

  • Create new Windows Forms Application.
  • Design the form by placing the labels, textboxes, and buttons and then change their names and properties.
  • Inside the “Calculate” button,
    • Declare the “decPrice” variable and assign the value as 0.02.
    • Declare the required variables.
    • Convert the string types values into a double values.
    • Calculate the cost value by multiplying the item cost with the “decPrice” values.
    • Display the result in the “txtPrice” textbox
  • Change the format Inside the “Exit” button,
    • Close the form using “Me.Close” method

Blurred answer
Students have asked these similar questions
Write an assignment statement that adds together the values stored in the decDomestic and decInternational variables and then assigns the result to a String variable named strIncome.
Write an assignment statement that increments the intNumEmployees variable by 1.
Write a statement that uses an arithmetic assignment operator to add the number 1 to the intAge variable.

Chapter 3 Solutions

Programming with Microsoft Visual Basic 2015 (MindTap Course List)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning