22.05.2017 Views

BIS 311 DeVry All Week iLab

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

End If<br />

If Inputs valid is True<br />

Get Order amount<br />

Get Sales tax percent<br />

Calculate Tax = Order amount * Sales tax percent<br />

Calculate Order total = Order amount + Tax<br />

Display Tax<br />

Display Order amount<br />

End If<br />

Stop button-click event handler<br />

Start ValidateOrderAmount function (Order amount)<br />

If Order amount is not numeric<br />

Set Order amount message to "Please enter a numeric order amount."<br />

Else If Order amount is less than or equal to zero<br />

Set Order amount message to "Please enter an order amount greater than zero."<br />

Else<br />

Set Order amount message to the empty string (no error)<br />

End If<br />

Return Order amount message<br />

Stop ValidateOrderAmount<br />

Start ValidateSalesTaxPercent (Sales tax percent)<br />

If Sales tax percent is not numeric<br />

Set Sales tax percent message to "Please enter a numeric sales tax percent."<br />

Else If Sales tax percent is less than zero or greater than 0.14<br />

Set Sales tax percent message to "Please enter a sales tax percent between 0.00 and 0.14."<br />

Else<br />

Set Sales tax percent message to the empty string(no error)<br />

End If<br />

Return Sales tax percent message<br />

Stop ValidateSalesTaxPercent<br />

Deliverables<br />

<br />

<br />

<br />

Submit a Word document named Lab5YourFirstLastName.docx (where YourFirstLastName = your first and<br />

last name; e.g., Lab5JohnSmith.docx) containing the following:<br />

Screenshot of form showing the application running, with non-numeric entries for Order amount and Sales tax<br />

percent, and appropriate error messages displayed.<br />

Screenshot of form showing the application running, with out-of-range entries for Order amount and Sales tax<br />

percent, and appropriate error messages displayed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!