Question: This is C# read the instructions carefully take your time and provide the whole code. Your company s Professional Services lead has met with CPP

This is C# read the instructions carefully take your time and provide the whole code. Your companys Professional Services lead has met with CPP and collected their requirements. Your dev admin has assigned the task of writing the code for CPP to you. CPP sells supplies for marketing company logos. For now, they want a simple windows form application their sales personnel can use to put together logo item orders. CPP sells only three types of logo items: pens, coffee mugs and usb drives. Each item has a base cost for the item and then a price for the logo. Base prices are $1.00 for pens, $3.50 for mugs, $4.00 for usb drives. If there is text placed on the object the price is $0.05 per item.
Price for the logo are based on the following:
Graphic Logo: $0.10 per item (pen, mug or usb)
Color: $0.03 per color per item.
Your dev admin has defined the user story as:
As a sales representative I would like to be able to figure out the cost of a logo item by selecting the item type, the type of logo and the number of items to order so that I can quote the customer a price.
Implement this user story as a WindowsForm application. If you need clarification of the requirements ask the instructor.
LogoOrderItem class:
Write a class named LogoOrderItem. It will reside the file named LogoOrderItem.cs
Include the following properties with backing fields:
A bool, hasLogo, that will be set to true if there is a logo
A string for item type
An int for number of colors
An int for the number items ordered
A string for text to write on the item
Make sure each of these properties call the Calc() method from the set part of the property.
Include the following auto-properties:
An int for item ID
Include the following read-only auto-properties:
A read only decimal for the total price of all items with all options
Declare all fields as private!
Dont overcomplicate it, just follow the format learned in class.
Constructors
Add three constructors to your LogoOrderItem class.
A constructor that takes six parameters (one for each settable property in the class). In the body of this constructor set each parameter into the appropriate class property or field.
A constructor that takes 2 parameters: a string for text and a bool for has logo. Chain this constructor to the six parameter constructor.
A constructor that takes no parameters (a parameterless constructor). Chain this constructor to the six parameter constructor.
Default values for chaining should be the following:
itemID: -1
itemType: mug
numColors: 0
numItems: 0
hasLogo: false
Calculate Method
Write a private, void and parameterless Calculate method called Calc. This method will calculate the price of the logo item based on the type of item whether or not it is a graphic or text only logo, number of colors and number of items. Make sure to read the customers requirements above carefully and implement their business rules into the calculate method correctly.
GetOrderSummary() Method
Add a GetOrderSummary () method. Declare it as public string with no parameters. It should use class fields to return a nicely formatted string something like:
Order num 1: 20 mugs with 3 color logo with the following text: C# is a great language! Price: $74.80
 This is C# read the instructions carefully take your time and

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

Students Have Also Explored These Related Databases Questions!