CIS122

Lab 6 Grader

Interface

Output

All dollar amounts are formatted appropriately

All output is correct

Determine Discount Amount

Purchase Amount Member Discount
100 NO 10.00
50 NO    0.00
150 No 15.00
100 Yes 10.00
50 Yes    5.00
150 Yes 17.50

If the input in the amount textbox is not numeric

An error message is displayed
The output label is blank

If the value entered in the amount textbox is <= 0

An error message is displayed
The output label is blank

If the value entered in the amount textbox is > 500

An error message is displayed
The output label is blank

Focus always returns to amount textbox

Leap Year Button

Year Is Leap Year?
2000 Yes
2003 No
2008 Yes
1900 No

If the input in the year textbox is not a whole number

An error message is displayed
The output label is blank

If the value entered in the amount textbox is < 1753

An error message is displayed
The output label is blank

Focus always returns to year textbox

Determine Shipping Cost Button

Distance Shipped Weight Insurance Shipping Cost
   49 miles 10 No    2.50
   51 miles 10 No    5.00
   50 miles 10 No    2.50 
499 miles 10 No    5.00
501 miles 10 No   10.00
500 miles 10 No    5.00
   49 miles 10 Yes    2.75
   51 miles 10 Yes    5.50
   50 miles 10 Yes    2.75 
499 miles 10 Yes    5.50
501 miles 10 Yes   11.00
500 miles 10 Yes    5.50
       

 

 

 

 

 

 

 

 

Focus returns to weight textbox after displaying the shipping cost

If the input in the weight textbox is not a whole number

An error message is displayed
The output label is blank
Focus returns to the weight textbox

If the input in the distance textbox is not a whole number

An error message is displayed
The output label is blank
Focus returns to the distance textbox

If the value entered in the weight textbox is <= 0

An error message is displayed
The output label is blank
Focus returns to the weight textbox

If the value entered in the weight textbox is  > 500

An error message is displayed
The output label is blank
Focus returns to the weight textbox

If the value entered in the distance textbox is <= 0

An error message is displayed
The output label is blank
Focus returns to the distance textbox

If the value entered in the distance textbox is  > 15000

An error message is displayed
The output label is blank
Focus returns to the distance textbox

Code

Student name
Project number and description
A record of how much time spent on the lab