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
Students have asked these similar questions
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap10 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 10-45. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap02 folder. Plan and design an application of your choice. The only requirement is that you must follow the minimum guidelines listed in Figure 2-22. Before starting the application, be sure to verify the name of the startup form. Save the solution and then start and test the application.
Microsoft Visual Basic Studio 2017 Please Create an application that allows the user to enter the gender (either F or M) and GPA for any number of students. The application should calculate the average GPA for all students, the average GPA for male students, and the average GPA for female students. Create a Windows Forms application. Use the following names for the project and solution respectively: Final Project and Final Solution. 1. Change the form file’s name to Main Form.vb 2. Change the form’s Name property to frmMain. 3. Change the form’s Font property to Segoe UI, 9pt. 4. Change the form’s MaximizeBox property to False. 5. Change the form’s StartPosition property to Centerscreen. 6. Build the interface and then code the Exit button The application’s interface is shown in the figure below. The list box should list GPAs from 1.0 through 4.0 in increments of 0.5. 7. Display information that you do not want the user to change during run time in a label. Change the following label…
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