GetDecision() receives no parameters. However, it determines a warranty repair worthiness score using this formula:
Score= AmountPaid * YearsOwned/Life
If 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() method
C. Create the pseudo code for the button_click event
Recently Asked Questions
- Please refer to the attachment to answer this question. This question was created from CH 20 HW.
- I am working on this program and keep getting an error syntax error c2059. The course is GSP125 Lab 3
- Computerized Operating Systems (OS) are almost everywhere. We encounter them when we use out laptop or desktop computer. We use them when we use our phone or