Question: VISUAL BASIC 1. You are to write a Visual Basic program that accepts as input the length, width, and depth of a pool and determines
VISUAL BASIC

| 1. | You are to write a Visual Basic program that accepts as input the length, width, and depth of a pool and determines how many gallons of water are needed to fill the pool. Use a Sub/Function named CalcGallons to calculate and display the result in a label formatted to the nearest whole number. To display the commas, you will need to read about theFormatNumber. You will call this Sub/Function four times. |
| 2. | As seen above, place your initials in the form's title bar. |
| 3. | You are NOT to use any variables - only use object properties! |
| 4. | Do NOT use any TextBoxes - only labels. |
| 5 | When executed, the form appears in the center of the screen, and your form cannot be resized. (Note: All subsequent assignments will be centered and not resizable. |
Pool calculator by AJN This program calculates the number of gallons required to fill a swimming pool Width Depth 20 Pt. Length 50 Pt. 200 50 20 The number of gallons is: 1,496,104 Exit Pool calculator by AJN This program calculates the number of gallons required to fill a swimming pool Width Depth 20 Pt. Length 50 Pt. 200 50 20 The number of gallons is: 1,496,104 Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
