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
- Which of the following was not mentioned in the text as a valuable source of information for a project audit ?
- When the price of commodity C rises by 10 % , the quantity demanded falls by 18 % . This is an example of :
- How much must be invested now at 9 % interest to accumulate to $ 10,000 in five years ? Present and future value tables of 1 at 9 % are presented below .