These decision structures are used to execute blocks of code in certain circumstances.
Download the Lesson program found below or grab it from the HandOut folder and get it working.
Use of if statements to make our programs harder to crash.
Update Payroll Program so that it will no longer crash and will output currency.
Create Animal Picker as detailed instructions are in Decision Structures in VB.docx
Add images of a cat and dog to resources.
When user types the word 'dog' or 'cat', display the appropriate picture.
Decision Structures in VB Day 1 - Solutions.pdf
ElseIf Statements (Day 2)
Use ElseIf statements to have the computer choose from 1 of several possibilities.
Add error checking to your programs with specific messages.
Complete the Decision Structure program from yesterday to see how yo use ElseIf statements.
Complete Animal Picker as a class.
You may see a working version of it by downloading CarOrDog.exe
Complete Temperature Picker on your own as described in the note.
To make it quicker, you may open your Celsius converter that you completed in the User Input assignments earlier in the course and use that as a starting point.
You may see a working example by downloading Temperature Evaluator.exe