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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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