DeVry BIS 311 Week 6 iLab Latest

$25

Quantity:

Description

DeVry BIS 311 Week 6 iLab Latest

iLAB OVERVIEW

Scenario/Summary

For this lab, you’ll create an application that is, in many ways, similar to the sales tax calculator you built last week. What is different this week is not what the application does, but how it does it. You will create an Order class to represent the order, with properties to hold the order amount and the sales tax percent values, and a method to calculate the order total. You will also create a user interface to get the input values from the user, instantiate an object of the Order class, call its calculation method to determine the order total, and display the total to the user.

Order Calculator Application Business Requirements

The user enters an order amount and a sales tax percent. If the order amount is greater than $100, a discount of 10% will be applied to the order amount. If the order amount is less than or equal to $100, no discount is applied. The sales tax is calculated by multiplying the order amount (after discount, if applicable) by the sales tax percent. The order total is calculated by adding the order amount (after discount, if applicable) to the sales tax. The order total is displayed as output to the user.

TOE Chart for Order Calculator Application User Interface

Task Object Event
Get the following inputs from the user:
Order amount txtOrderAmount
Sales tax percent txtSalesTaxPercent
Perform the following processing:
Calculate order total after discount with tax btnCalcTotal Click
currentOrder
Display the following outputs:
Order total lblTotal

Notice that the TOE chart lists a currentOrder object as being involved with the processing, in addition to the usual button. Also notice that the details of how to perform the order total calculation are not listed on this TOE chart. This is because the details of how to perform the calculation will be handled by the currentOrder object, so the application’s user interface does not need to be concerned with how this is done. The details of the calculation are encapsulated within the object.

Pseudocode for Order Calculator Application User Interface

Start button-click event handler

Instantiate currentOrder object from Order class

Get from user

OrderAmount property of currentOrder

SalesTaxPercent property of currentOrder

Display result of GetTotalAfterDiscount() method of currentOrder to user

Stop button-click event handler

Class Diagram for Order Class

Order

numeric OrderAmount

numeric SalesTaxPercent

GetTotalAfterDiscount()

Pseudocode for GetTotalAfterDiscount() Method of Order Class

Numeric GetTotalAfterDiscount()

Declare numeric variables for

Discount

TotalAfterDiscount

If OrderAmount > 100

Discount=0.10

Else

Discount=0

TotalAfterDiscount = (OrderAmount – OrderAmount * Discount) * (1 SalesTaxPercent)

Return TotalAfterDiscount

End GetTotalAfterDiscount()

Deliverables

Submit a Word document named Lab6YourFirstLastName.docx (where YourFirstLastName = your first and last name; e.g., Lab6JohnSmith.docx) containing the following.

  • Screenshot of form showing the application running, with order amount less than or equal to $100 and valid sales tax percent entered, and correct order total displayed
  • Screenshot of form showing the application running, with order amount greater than $100 and valid sales tax percent entered, and correct order total displayed
  • Copy of code for button-click event
  • Copy of code for Order class
Category
Category Points % Description
Create and rename form 5 10% Windows form was created and named OrderCalculator.vb. Form text property was set to Lab 6 Your Name (where Your Name = your full name).
Add controls to form 5 10% The following controls were added to the form: Identifying labels and text boxes for entry of order amount and sales tax percent; button to calculate order total; and label for display of results.
Set properties for controls 5 10% Name and text properties of all controls were set appropriately, with no typos or spelling errors.
Code button-click event 10 20% Button-click event code was entered that corresponds to the given pseudocode, with no syntax errors.
Code Order class 10 20% Code for Order class was entered that corresponds to the given class diagram and pseudocode, with no syntax errors. Class includes the Ord

DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for DeVry BIS 311 Week 6 iLab Latest, then contact us through call or live chat.

DeVry BIS 311 Week 6 iLab Latest

Best DeVry BIS 311 Week 6 iLab Latest

DeVry BIS 311 Week 6 iLab Latest