PrepAway - Latest Free Exam Questions & Answers

What should you do?

You develop Web-based client applications. Your team is developing a Web site for Coho Winery to handle order processing. Both sales staff and customers will use the Web site to place orders.

You must develop the data component that will be called by the Web-based application such that the Web-based application meets the following criteria:

The application uses separate Web pages for sales staff and customers to place orders.
Sales staff can apply a discount to the order.
Customers cannot apply any discount to the order.
Future changes to the pricing structure can be implemented by using the minimum amount of code. You need to ensure that the data component that you develop meets the outlined criteria. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create a CohoWinery class.The CohoWinery class must include a method named PlaceOrder.The PlaceOrder method must include a Boolean parameter named SalesPerson.If SalesPerson is True, a discount must be applied to the order.

B.
Create an Order class.The Order class must include two methods named CustomerPlaceOrder and SalesPersonPlaceOrder.The CustomerPlaceOrder method must accept all the parameters that are necessary for a customer to place an order.The SalesPersonPlaceOrder method must accept all the parameters that are necessary for a sales person to place an order, including the Discount parameter.

C.
Create a Customer class and a SalesPerson class.Each class must include a method named PlaceOrder.Each method must include all the parameters that are necessary for placing an order.The PlaceOrder method in the SalesPerson class must include a parameter for discount.

D.
Create an Order class.The Order class must include an overloaded method named PlaceOrder.One version of the PlaceOrder method must accept a parameter for discount. The parameter for discount must be used to calculate a discount on the order.


Leave a Reply