Plan the logic for an insurance company''s premium

Assignment Help Basic Computer Science
Reference no: EM131096368

a. Plan the logic for an insurance company's premium determining program. The program calls a method that prompts the user for the type of policy needed-health or auto. Pass the user's response to a second method, where the premium is set-$250 for a health policy or $175 for an auto policy. Pass the premium amount to a third method for display.

b. Modify Exercise 7a. so that the second method calls one of two additional methods-one that determines the health premium or one that determines the auto premium. The health insurance method asks users whether they smoke; the premium is $250 for smokers and $190 for nonsmokers.

Th e auto insurance method asks users to enter the number of traffic tickets they have received in the last three years. Th e premium is $175 for those with three or more tickets, $140 for those with one or two tickets, and $95 for those with no tickets. Each of these two methods returns the premium amount to the second method, which sends the premium amount to the display method.

Reference no: EM131096368

Questions Cloud

Determining the corporate culture : Research, analyze and defend why it is essential for an organization to have a positive corporate culture. In addition, discuss ways that an organization can improve a negative culture.
Determining the alternate work arrangements : Various alternative work arrangements exist for use in businesses and other types of organizations; included among the options are compressed work weeks, flexible work schedules, telecommuting, and job sharing. This case focuses on alternative wor..
Find the current conversion rate for u.s. dollars : Display the answer. Each conversion should take place in its own method.
What are sales promotions : What are sales promotions? b) Describe the difference between trade orientated and consumer orientated sales promotions activities. Provide examples for these different types of promotion and c) discuss the major decisions that marketers must make..
Plan the logic for an insurance company''s premium : Modify Exercise 7a. so that the second method calls one of two additional methods-one that determines the health premium or one that determines the auto premium. The health insurance method asks users whether they smoke; the premium is $250 for sm..
Record the adjusting entry : When supplies are purchased they are recorded as an asset. An end of period stock-take (count) revealed a closing balance of $12,000. There was no opening balance and during the period $22,000 of supplies were purchased. Record the adjusting en..
Elements of the external and internal environment : 1. What elements of the external and internal environment do you think contributed to Facebook's success? 2. Which elements of the external and internal environment are beginning to create challenges for Facebook?
Compare the price level and level of output : Suppose that inverse demand is given by p(Q) = a-bQ, where Q is total quantity supplied in the market. There are two firms in the market, each with a cost function of c(q) = cq, now assume that the first firm moves before the second firm. Compare the..
How can this one trip to the market affect brian self-image : How can this one trip to the market affect Brian's self-image? What statements (truths) is Brian internalizing about himself?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Implementation and sustainability of the change initiative

Engaging employees in the change process can help assure successful implementation and sustainability of the change initiative. What is the best way for leaders to engage employees or other stakeholders in the change process in an organization? Wh..

  Does the diagram above represent a function f: x ? y

Does the diagram above represent a function f: X → Y? Explain why or why not

  Write program mips assembly calculate fibonacci series

I want to write program in MIPS Assembly Language to calculate first 100 terms in Fibonacci series.

  Differences and similarities between ieee 802-11 frame

What are the differences and similarities between an IEEE 802.11 frame and an Ethernet frame?

  Different types of switching used in data transmission

Compare or contrast the different types of switching used in data transmission. How many are there? What factors separate one from the other? Please elaborate.

  Access control system

What access control system is most valuable for protecting enterprise systems? Why? What are two specific strengths and two specific drawbacks for your chosen access control system?

  Identify an incident in cybercrime or cyberwarfare

Identify an incident in cybercrime or cyberwarfare related to this entity. Fully discuss the specifics of the cyber incident (and related incidents) and analyze the motivation of the actors/attackers. Also suggest methods for organizations to d..

  What is the effect of having a smaller number of join

What is the effect of having a smaller number of join conditions?

  Math in a cylem j kjbnkjadjbv ojcojvpj vipjvjpvjpv

in a cylem j? kjbnkjadjbv ojcojvpj vipjvjpvjpv pvjpvjpvjpvj povjovjvojv pvjvjlvjnvpjvp. movjojv novjoivjo

  Generations of computer programming languages

Briefly describe the four generations of computer programming languages, concentrating on the major differences among the generations. How does object-oriented programming fit into these generations? How does HTML fit into these generations?

  Snmp acceptance short paper

SNMP initially appeared in 1988, but it did not receive widespread adoption. What have been the issues with SNMP, and have they been addressed? How widely used is SNMP now? Find some examples of tools that use SNMP.

  Explaining kind of malicious software

What kind of malicious software is this? if username and password are valid return ALLOW_LOGIN else return DENY_LOGIN.

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