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 10, Problem 1E
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio.
  • Select Visual Basic and click Windows Application.
  • Name the project as “Pizzeria 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 10, Problem 1E

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

ObjectPropertySetting
Form1TextPete’s Pizzeria
txtEntireSideText(Empty)
txtSliceSideText(Empty)
lblSlicesText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add two text box controls to input the values of entire side and slice side.
  • Add two button controls to calculate the number of slices and to exit the program respectively.

Blurred answer
Students have asked these similar questions
True or False Forms and most controls have a Preferences property that allows you to change the object’s background color.
The above screen is used to browse the products table it uses the ProductDAO.java file, it calls the getProductByCriteria() function which should accept a parameter, this parameter should be the criteria that would be built from the two combo boxes and the text box, and queries the products table.The getProductByCriteria() function should return a list of Product objects that matches the criteria specified. Modify the function so that it accepts a string paramater consisting of the fields from the combo boxes and a price number from the text box separated by commas and use this string to modify the query in the function to return the desired result set.    public List<Product> getProductByCriteria()  //MAKE MODIFICATIONS TO THIS FUNCTION SO IT CAN TAKE PARAMETER(S)    {                 if (openConnection())         {             try{                               List<Product> items = new ArrayList <> ();                 Product temp = null;                 String…
Specifications:  Lions, Tigers, and Bears Pet Clinic needs an application that displays basic services.  The application should be designed with checkboxes to select the various services (such as office call, vaccination, grooming, etc).  As each service is selected, the charge for the service should display in an associated label.  (When the checkmark is removed, the amount should be removed).   As each selection is made, the charges should be added into the total (a variable… consider scope), and displayed in a Total Due area on the application (currency format).  Align all numeric data appropriately.   Consider what should happen when the checkmark is removed. Include at least 8 services that your pet clinic performs. Include a Clear and Exit button. The clear should clear all checkboxes, appropriate labels, and the total variable. Use the standard Microsoft naming conventions for all controls. Include appropriate comments in your code. This is for intro to C# Can't use parse. Thank…
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
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT