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

  Do software companies-application lifecycle management tools

Write a 3 to 5 paragraph response to the question "Do software companies need Application Lifecycle Management tools?"

  Design an application that uses three identical arrays

Design an application that uses three identical arrays of at least 20 integers. It should call each module on a different array, and display the number of swaps made by each algorithm.

  The number of occurrences of each status using the count

Write a SQL expression to display each Status and the number of occurrences of each status using the Count(*) function; display the result of the Count(*) function as CountStatus. Group by Status and display the results in descending order of CountSt..

  Why is remote access security important in software security

Why is Remote Access Security important in software security? Please provide at least one website used as source.

  Difference between mass surveillance and targeted surveillan

What is the difference between mass surveillance and targeted surveillance?

  When the jmpc field in the microinstruction is enabled

Assume that when the JMPC field in the microinstruction is enabled (set), MBR is ORed with NEXT_ADDRESS to determine the address of the next microinstruction to be executed

  What is the default file extension for a file saved in word

Alan wants to find an image of a car he can use in a presentation. What button should he click in the Images group to run a search. What is the default file extension for a file saved in Word 365

  Few techniques to incorporate to site

Did you know that you do not have to start from scratch if your site is not accessible? There are a few techniques you may incorporate to your site.

  Proposals coming from contractors who have unique skills

Proposals coming from contractors who have unique skills in providing goods and services are called:    a. best and final offers (BAFOs)    b. negotiated proposals

  What are php auto-global variables

What are PHP auto-global variables?

  Securing owa

In order to effectively implement Outlook Web Access (OWA) and allow employees to have seamless access to email, you must provide external access to users. This, of course, creates a security weakness in your network because of open ports. Your senio..

  Find an explicit formula for the sequence

Find an explicit formula for the sequence

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