Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Question
Book Icon
Chapter 9, Problem 5E
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio.
  • Select Visual Basic and click Windows Application.
  • Name the project as “Cookie Sales Project”.
  • Store the file in desired location.
  • The created project is now displayed with a form in the name of Form1.
  • Rename the Form1 as “Main Form” and add the necessary components.
  • In property window, change the Form name and add changes for Form elements properties.
  • Click the File menu->Save All.

View of the form design in the IDE:

Programming with Microsoft Visual Basic 2017, Chapter 9, Problem 5E

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextCookie Sales
lblChocolateChipText(Empty)
lblOatmealText(Empty)
lblPeanutButterText(Empty)
lblSugarText(Empty)
btnDisplayTextDisplay totals
btnExitTextExit
  • Add a necessary label control to display the total counts of cookies.
  • Add two button controls to display the cookies total and exit the program respectively.

Blurred answer
Students have asked these similar questions
Name SearchIn the Chap07 folder of the Student Sample Programs, you will find the followingfiles:• GirlNames.txt—This file contains a list of the 200 most popular names given to girls born in the United States from 2000 through 2009.• BoyNames.txt—This file contains a list of the 200 most popular names given to boys born in the United States from 2000 through 2009.Create an application that reads the contents of the two files into two separatearrays or Lists. The user should be able to enter a boy’s name, a girl’s name, orboth, and the application should display messages indicating whether the nameswere among the most popular
True or False : The Title property holds the name of the file the user selected with an Open or Save As dialog box.
Group 2/12 Problem – Population Create an application that predicts the approximate size of a population of organisms. The application should use textboxes to allow the user to enter the starting number of organisms, the average daily population increase (as a percentage), and the number of days the organisms will be left to multiply. Use a ListBox to display the population size for each day of the simulation. If the user clicks the Save button, save the current prediction to a file. Group 3/7 Problem – Dice Simulator
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning