Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Assume you want to design a DecisionMaker class which decides if a product should be repaired under warranty.

Assume you want to design a DecisionMaker class which decides if a product should be repaired under warranty. The class has properties for NumYears the person has owned the item, the life of the warranty, and amount paid for the warranty. The class also has a GetDecision( ) method whether the item is a warranty repair item.GetDecision() receives no parameters. However, it determines a warranty repair worthiness score using this formula:Score= AmountPaid * YearsOwned/LifeIf the score is less than 100, GetDecision assigns a value of false to a Boolean. If the score is greater than or equal to 100, GetDecision assigns a value of true to a Boolean. Then GetDecision sends the Boolean back to the calling program.Assume you also have a form with 3 textboxes for receiving the numyears, life and amount paid, a button and a label.A. Create the class diagram for the DecisionMaker Class (you can type it into the textbox)B. Create the pseudo code for the GetDecision() methodC. Create the pseudo code for the button_click event

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question