Lab 3
Variables, Math Operators,
Conversion Method, Formatting Output & Sequence
Grader
Testing Video For Lab 3
For this lab you may create your own interface similar to the following
or use the Lab 3 shell provided in the Shell folder in Angel.

Your
task is to
-
Add
code to calculate the amount of change owed to a customer given the Amount Due
and Amount Paid and determine the number of dollars, quarters, dimes, nickels,
and pennies to be returned to the customer when the user clicks the Determine
Change button. Display the results in Labels.
-
Clear
all TextBoxes and Labels when the user clicks on the Clear command button.
-
End the program when the Exit button is clicked
Additional
Requirements
- Turn Option Strict On
-
Return
Focus to the first TextBox after clicking either command button. Use the Focus method.
- Use
the Convert Class to convert
the input entered in the TextBoxes to numbers.
- Do
NOT do any math using controls. Use variables instead.
- Format the change amount as
currency.
Remember to
- Make
sure the project, form, and all controls have appropriate names.
- Use
appropriate names for variables.
- Include
your name in the Text property of the form
Hints
- Refer to the
flowchart and pseudo code provided on the week’s details page.
- If you divide the number of cents to be returned by 100 the quotient
will be how many dollars are to be returned and the remainder will be the
amount to be returned as coins.
- When using
integer division (\) and modular division (mod) all operands should be
Integers.
-
Do not be concerned with the possibility that the amount paid is
less than the amount owed.
- Formatted negative
values appear in parenthesis.
-
Look for patterns.
When
you are confident the program works
·
Include
comment lines (any line that begins with an apostrophe (‘) is treated as a
comment) in the general declaration section (That means at the top of your
program) with the following information
o
your
name
o
a
brief description of what the program does
o
A
record of how much time you spent on the lab
·
Zip up and submit
as an attachment in
the appropriate drop box.