1 BIS260 Midterm Test Spring 2023 Please read this page before you start working on the test. Important Note: This is an open book and take-home test. However, you are expected to...

Visual Basic


1 BIS260 Midterm Test Spring 2023 Please read this page before you start working on the test. Important Note: This is an open book and take-home test. However, you are expected to work on solving the problems on your own with no help from anyone else. If you copy lines of code from a source online, please add a reference to that website. Any confirmed attempt of cheating will result in receiving a zero on the test and the violation will be reported to the academic integrity office. ➢ Due Date: Sunday 03/12 at 11:55 pm – No late work will be accepted. ➢ What to turn in: 1. A copy of your code in a word document. 2. A zipped folder containing all the required files for running the project. ➢ There is a video that shows you how your project is expected to run. 2 A) Build this form in Visual Studio (5%): - All textboxes must be disabled except for Course and Credits - The Grade Combo Box should have the following items: A, B, C, D, F B) Data Validation (15%): The program must check when clicking on the Add Course button that: o The course textbox cannot be empty o The value for credits should be a positive number o A grade must be selected from the combo box Any bad data must result in an error message. C) Process and Output (60%): The user enters a course name, credits, and selects a grade from the combo box, then clicks on the “Add Course” button. After data validation, the program will do the following: 1. Displays the name of the course, the number of credits, the letter grade, and the points in the output text box. ▪ Note: The points are decided based on the letter grade selected: A = 4, B=3, C =2 , D=1, and F =0 3 2. Clears the course and credits textboxes, and brings the combo box back to “Select a Grade” 3. Displays the GPA, Total Credits, and Total Points in the associated textboxes. ▪ Note: The GPA is calculated as the Total Points / Total Credits ▪ Where Total Points is the summation of multiplying points x Credits for each course. ▪ For example: Say you earned an A in BIS260 that has 3 credits A = 4 Points Total Points = 4 x 3 credits = 12 Total Credits so far = 3 GPA = Total Points / Total Credits = 12/3 = 4 Which is an A. You also earned a B in BIS270 that has 3 credits B = 3 Points Total Points = 3 x 3 + 12 (from the BIS260 above) = 21 Total Credits = 3 + 3 = 6 GPA = 21/6 = 3.5 which is an A 4. The letter grade of the GPA is determined using this criteria: 3.5 – 4.0 = A 3.0 – 3.4 = B 2.5 – 2.9 = C 2.0 – 2.4 = D< 2.0 = f ▪ i attached a video that explains this process, and here is an example of the desired output: 4 d) the clear button (20%) when the clear button is clicked: 1. all textboxes should be cleared 2. combo box goes back to the “select a grade” item 3. do not forget to reset all global variable values to zero, so next student will be able to compute their gpa independent from previous calculations. e) please make sure you attach a copy of your code in a word document. good luck 2.0="F" ▪="" i="" attached="" a="" video="" that="" explains="" this="" process,="" and="" here="" is="" an="" example="" of="" the="" desired="" output:="" 4="" d)="" the="" clear="" button="" (20%)="" when="" the="" clear="" button="" is="" clicked:="" 1.="" all="" textboxes="" should="" be="" cleared="" 2.="" combo="" box="" goes="" back="" to="" the="" “select="" a="" grade”="" item="" 3.="" do="" not="" forget="" to="" reset="" all="" global="" variable="" values="" to="" zero,="" so="" next="" student="" will="" be="" able="" to="" compute="" their="" gpa="" independent="" from="" previous="" calculations.="" e)="" please="" make="" sure="" you="" attach="" a="" copy="" of="" your="" code="" in="" a="" word="" document.="" good="">
Mar 11, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here