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

  Tas diagram-afm diagram-spider diagram-haker diagram

What are the characteristics of toleiitic rocks on tas diagram, afm diagram,spider diagram,haker diagram and isotopic compositions diagrams.

  Entity in different rows of database table

Different accounting names exist for an entity in different rows of a database table.

  What are carbohydrates and simple and complex carbohydrates

What are carbohydrates? What is the difference between simple and complex carbohydrates? How are sugars are broken down and used in the body? What are the benefits that carbohydrates provide to the body?

  Counseling-related qualitative research article

Select a counseling-related qualitative research article that contains a description of data analysis procedures and clear recommendations for practice and give a brief summary of the article you selected and provide full APA citation.

  Substantial stability coefficients

The substantial stability coefficients shown by most Rorschach variables could not have been achieved without good agreement among the persons who coded the protocols used in the retest studies.

  Application to humanitarian intervention

Analyze Just War Theory and its application to humanitarian intervention. Was the U.S. use of force in Somalia in 1993 justified morally? Why or why not? Just a simple write up,

  Foundations of american education

Write a response to Journal Entry #2 on p. 461 in Ch. 13 of Introduction to the Foundations of American Education. In 200 to 300 words, outline your list and assess the 10 steps by explaining how they benefit the ELL students.

  Most accurately characterizes the relationship

Which of the following statements most accurately characterizes the relationship between church and state in post-revolutionary America?

  Fire testing of material

What are the issues and problems with the fire testing of material today verses when the testing process was first started in 1918?

  Discuss reuptake also enzymatic degradation

Describe how a cell fires an action potential also be sure to address which structures are involved in neurotransmission. Discuss reuptake also enzymatic degradation (breakdown) in context of appropriate neurotransmitters.

  Music and radio shaped american culture

In what ways have music and radio shaped American culture and its values?

  Star called alpha nittany is moving away from earth

A star called Alpha Nittany is moving away from the Earth with a velocity of 200 km/sec.

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