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

  Encountering death

______________echo a them that is surprisingly familiar: Death comes from outside: it cuts short an existence that would otherwise be immortal.

  Advantages and disadvantages of soils

Knowing a typical water retention curve for sand, fine sand, and a silt loam- Based on the behavior of these soils in terms of moisture content versus negative (suction) pore pressure, discuss briefly in a paragraph or two the advantages and disad..

  Positive psychology article

Provide a brief overview of the article you selected, summarizing the main points, such as research questions, population, findings, limitations, and any recommendations for future study.

  How students get equal opportunity in education today

How did students come to get the opportunities, like Title 1, they presently have in public education? What present issues are influencing equal opportunity in education today?

  Creating project schedule for trade show project

What tools do you think would be the most helpful for creating the project schedule for your trade show project?

  Describing dimensions of health

Define and explain each of the six dimensions of health: a. Physical Health b. Psychological Health c. Spiritual Health d. Social Health e. Intellectual Health f. Environmental Health

  Phd proposal dissertation topic

The premise of the study is to get recognize if personnel professionalism prevent clients from seeking follow-up for their health needs because of attitudes and treatment from workers.

  Home production of electricity from solar energy

Home production of electricity from solar energy requires the use of:.

  Concept of a coherence approach to truth

Explain the concept of a coherence approach to truth and the role of this approach in the biblical counselling model and the way this view influences BCM's perspective on the relationship between psychology and counselling.

  Public health model for targeted intervention

How do you choose an appropriate public health model for a targeted intervention? What is the importance of conducting a needs assessment?

  Example of conditioanl

Provide example of conditioanl where, the antecedent is false and the consequent is true, and conditional is true. Also where the conditional is false.

  Case stusy of alcoholism

Client brought into the detoxification unit of a local county hospital by the police after an incident at a crowded city park. He was arrested because of his assaultive behavior toward others.

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