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 5, Problem 12E
Program Plan Intro

Form design:

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

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

ObjectPropertySetting
Form1TextGPA Calculator
radFemaleCheckedTrue
radMaleCheckedFalse
lstGpaItemsList data from (1.0-4.0)
lblAllText(Empty)
lblMaleText(Empty)
lblFemaleText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add check box to select the gender.
  • Add list box to store the grades.
  • Add three labels to show the results of the GPA.
  • Add two button controls to calculate the GPA and exit the program respectively.

Blurred answer