Design a decisionmaker class

Assignment Help Other Subject
Reference no: EM13226274

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/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

Reference no: EM13226274

Questions Cloud

What is the relative permittivity of the dielectric material : Two rectangular waveguides, one air filled with internal dimensions 2cm x 1cm and the other dielectric filled with internal dimensions 1cm x 0.5cm, have the same cut-off frequency for the dominant mode. what is The relative permittivity of the die..
What is central advantage or problem in terms of regulation : Would this be a good market for a U.S. business? Why or why not? What is the central advantage or problem in terms of regulation?
Reimbursement and allowanc that companies make for employees : Of the many reimbursements and allowances that U.S. companies make for employees who take foreign assignments, which one is the most essential? Discuss your reasons.
Explain how many of the tablets represent a proper dose : The analysis was completed by titrating the excess acid with 11.37 mL of 0.1080 M NaOH. How many of these tablets represent a proper dose for patients whose weight is 100 lb (assume that 1 pound, lb, is 0.45 kg).
Design a decisionmaker class : 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.
What is the difference between line personnel and staff : What is the difference between line personnel and staff personnel? Why are the two groups so often in conflict? Do you think this would also be true in a virtual organization? How would you minimize the conflict problem? Would you rather hav..
Define what is the ph of the solution : A 7.8g sample of C6H5NH3Cl is dissolved in water to make 450.mL of solution. What is the pH of the solution? pKb(C6H5NH2) = 9.37.
Analyze the various approaches to reviewing software : Analyze the various approaches to reviewing software and hardware standards and make at least three recommendations for improvement. Provide specific examples to support your response.
Which of the following represents the acceptable standards : Which of the following represents the acceptable standards of behavior within a group that are shared by the group's members?

Reviews

Write a Review

Other Subject Questions & Answers

  How large firms and small firms use change management

Write down response suggestions analysis of 200 to 300 words of how large firms and small firms might use change management concepts to meet growing technology demands.

  Factors affecting the achievement of project objectives

Assess factors affecting the achievement of project objectives.

  Explain the risks associated with leveling resources

Explain the risks associated with leveling resources, compressing or crashing projects and imposed durations or “catch-up” as the project is being implemented

  Angers of technologies

In "Why the Future Doesn't Need Us" (pp. 285-301), Bill Joy expresses a powerful pessimism about the dangers of technologies that may be developed later in our century. Joy also a muted optimism about humans' ability to use ethical principles to avoi..

  Personal contributions-executive leadership and governance

How would you rate their leadership? What are the implications for new presidents as they consider entering the rapidly changing landscape of leadership?

  South left blacks economically dependent on hostile whites

In the final analysis, the Reconstruction governments of the South left blacks economically dependent on hostile whites

  A trimmed mean drops the highest and lowest extreme values

A "trimmed mean" drops the highest and lowest extreme values and averages the rest. By trimming the data, we are able to reduce the impact of very large or very small values on the mean, and thus get a more reliable measure of the central value of th..

  Obesity-health issue in the unites states

Obesity is a major health issue in the Unites States. What environmental factors do you believe have contributed to obesity?

  Prediction trap is one of the phycological

Prediction trap is one of the phycological...we often are overconfident in our expectataions about future events. Have you fallen for this trap? How can we avoid it?

  Career management program

What contributions can a career management program make to an organization that is forced to downsize its operations?

  Philosophies-classical or positivist

Which of the two philosophies (classical or positivist) do you believe explains criminal behavior in a much more complete manner?

  Impact on the british parliament

Explain the impact on the British parliament due to the The Powder Treason. List the key periods when milling production reflected the needs of warfare between 1700 and 1900.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd