Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding in VB (Visual Basic) Q1. (Total of 75 Points) a. (5 Points) Create a form that contains the following tools: 1. A textbox named

Coding in VB (Visual Basic)

Q1. (Total of 75 Points)

a. (5 Points) Create a form that contains the following tools:

1. A textbox named txtNumberOfCourses

2. 5 invisible textboxes named: txtCourse1, txtCourse2, etc.

3. Another 5 invisible textboxes named: txtCredits1, txtCredits2, etc.

4. A button with the caption Semester GPA

5. An invisible textbox named txtSemesterGPA

6. A button with the caption Overall GPA

7. An invisible textbox named txtOverallGPA

8. A button with the caption Clear

You may design the form in any way you see fit. However, I recommend placing the first 10 textboxes, from point 2 and 3 above, in two adjacent columns. One column for the courses and one for the credits, because txtCourse1 is associated with txtCredits1, txtCourse2 is associated with txtCredits2, and so on. 2

b. (10 Points) When the user enters the total number of semester courses in the txtNumberOfCourses textbox, the program needs to do the following:

1. Make sure that the data entered was a positive number between 1 and 5. Otherwise, it will show an error message prompting the user to enter a valid number of credits.

2. Based on the number entered in txtNumberOfCourses, the program will automatically show an equivalent number of textboxes. For example, if the user entered 2 in the txtNumberOfCourses textbox, then the form will show 4 textboxes: txtCourse1, txtCredits1, txtCourse2, and txtCredits2. The remining textboxes must stay invisible.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Overcomes obstacles and is persistent in pursuing solutions.

Answered: 1 week ago

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago