Programming Practice
Let's create a couple of programs using the techniques shown for the previous program
Remember to solve each task you have to:
- Ask yourself the 4 questions
- Create the top level of the program
- Write the required subroutines with useful comments included
What you have to do!
Let's make life a little easier with this program.
- You have to create a program where the the user enters a score with 3 darts and,
- the program calculates and displays the total.
- What makes this program relatively easy is that the form is provided for you.
Read!
- Download the DARTS program by clicking on the button. Make sure you choose Save .
- Move the zipped folder into your VB Programs folder.
- Right click on the zipped folder and choose Extract All or Extract Files. Click OK or Next and keep going until the process is Finished.
- Create the program and test that it works using several different values (darts scores should all be less than 60 - treble 20 being the highest score possible).
- Tick off your Progress Grids
What you have to do!
The whole task from objects to code to testing is yours.
- Create a program that calculates and displays the area of a rectangle after prompting the user to enter the length and breadth of the rectangle.
- Test carefully that the program works correctly.
- Tick off your Progress Grids
What you MAY have to do!
Ask your teacher whether you should do the following task.
| Assessment 1 (A1). |
Complete the assessment FOOD MIXERS in your progress grids |
Mark off Exercise 8 in your progress grids.
What you should now be able to do!
-
Create a form containing the objects text box, label and list box
-
Write the top level of a program and include the required subroutines
-
Test a program runs correctly and remove any errors where needed