Choose Create a new project and then select the template for C# Desktop app for the Windows Form App (.NET Framework). Be sure to use a location on your J: drive in the virtual desktop for the Location to store the files. Name the project "Lab4". Make sure the Place solution and project in the same directory checkbox is NOT selected. Visual Studio will create an empty Console application for you to start with. When you are finished with the lab, you should make a copy of this directory and copy to your flash drive or cloud storage, as well. Create and test a Windows Form application that make simple admission decisions for a hypothetical university based on the rules given below. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score. Display the message “Accept” if the student meets either of the following requirements: A grade point average of 3.0 or higher and an admission test score of at least 60 A grade point average of less than 3.0 and an admission test score of at least 80 If the student does not meet either of the qualification criteria, display “Reject”. In addition to displaying the accept/reject messages for each application, keep a running total of each application that was accepted or rejected. Display the running totals on the form. This will require using field variables declared at the top of the form class. The entered GPA will be a floating-point value and the admission test score will be a non-negative integer. All controls should be renamed from the defaults (label1, button1, etc.) to have descriptive variable names. For this lab and all that follow, parsing should now be done using TryParse as shown in the Chapter 4 PowerPoint slides. If the input is invalid, display an appropriate error message using a MessageBox. Here, GPA must parse to a value between 0.0 to 4.0 (inclusive) and the admission test score must parse to a value between 0 to 100 (in
Choose Create a new project and then select the template for C# Desktop app for the Windows Form App (.NET Framework). Be sure to use a location on your J: drive in the virtual desktop for the Location to store the files. Name the project "Lab4". Make sure the Place solution and project in the same directory checkbox is NOT selected. Visual Studio will create an empty Console application for you to start with. When you are finished with the lab, you should make a copy of this directory and copy to your flash drive or cloud storage, as well. Create and test a Windows Form application that make simple admission decisions for a hypothetical university based on the rules given below. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score. Display the message “Accept” if the student meets either of the following requirements: A grade point average of 3.0 or higher and an admission test score of at least 60 A grade point average of less than 3.0 and an admission test score of at least 80 If the student does not meet either of the qualification criteria, display “Reject”. In addition to displaying the accept/reject messages for each application, keep a running total of each application that was accepted or rejected. Display the running totals on the form. This will require using field variables declared at the top of the form class. The entered GPA will be a floating-point value and the admission test score will be a non-negative integer. All controls should be renamed from the defaults (label1, button1, etc.) to have descriptive variable names. For this lab and all that follow, parsing should now be done using TryParse as shown in the Chapter 4 PowerPoint slides. If the input is invalid, display an appropriate error message using a MessageBox. Here, GPA must parse to a value between 0.0 to 4.0 (inclusive) and the admission test score must parse to a value between 0 to 100 (inclusive).
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 7 images