Question: 11. Assume that a customer purchases either a Harris Brothers item or a Jacob Co. item. If the item is a sweater manufactured by Harris

11. Assume that a customer purchases either a Harris Brothers item or a Jacob Co.

item. If the item is a sweater manufactured by Harris Brothers, the customer is entitled to a 5% discount. Write the Visual Basic code for a procedure that calculates and displays the discount (if any) and the new price. Use the variables strManufacturer, strItem, dblPrice, and dblDiscount. Format the discount and new price using the “C2” format. Display the calculated amounts in the lblDiscount and lblNewPrice controls.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock