Plan logic for a company program to determine policy premium

Assignment Help Computer Engineering
Reference no: EM131853145

Problem

a. Plan the logic for an insurance company program to determine policy premiums. The program continuously prompts the user for an insurance policy number. When the user enters an appropriate sentinel value, end the program. Call a method that prompts each user for the type of policy needed-health or auto. While the user's response does not indicate health or auto, continue to prompt the user. When the value is valid, return it from the method. Pass the user's response to a new method where the premium is set and returned-$250 for a health policy or $175 for an auto policy. Display the results for each policy.

b. Modify Exercise 9a so that the premium-setting 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. The auto insurance method asks users to enter the number of traffic tickets they have received in the last three years. The premium is $175 for drivers 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 calling method, which returns the amount to be displayed.

Reference no: EM131853145

Questions Cloud

Large number of women entered the workforce : What would happen if a large number of women entered the workforce, and hired others to cook, clean, and care for their children? is this change reflective
Create the logic for a program that computes weekly salary : Create the logic for a program that computes weekly salary. Include two overloaded methods named compute Weekly Salary().
What is the effect on total checkable deposits : Suppose the reserve requirement is 5%. What is the effect on total checkable deposits in the economy if bank reserves increase by $40 ?billion?
Discuss the strategic planning process : You are Chief Operating Officer (COO) of an international bicycle manufacturer. The relationship between the organization and externals.
Plan logic for a company program to determine policy premium : Plan the logic for an insurance company program to determine policy premiums. The program continuously prompts the user for an insurance policy number.
Average ticket prices have been on a steady decline : Airline ticket prices seem to be impossible to predict or explain. Yet, in the last year, average ticket prices have been on a steady decline.
Discuss the high viscosity levels : In addition to the six tanks with high viscosity levels four different tanks contain material with high impurities.
Provide a brief written description : Provide a brief written description/explanation of the effect of this news on the equilibrium price and quantity of milk.
Prepare the logic for a program that continuously prompts : Prepare the logic for a program that continuously prompts the user for two numeric values that represent the sides of a rectangle.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Compare the isochronous to other connections

How does the isochronous connection compare to the asynchronous and synchronous connections? Compare the applications and efficiencies of all three.

  Define ebusiness applications to build profiles of customers

Companies are using eBusiness applications to build profiles of customers. privacy advocates consider this practice to be dangerous

  What is meant cisc machines versus risc machines

Discuss what is meant CISC machines versus RISC machines.

  Calculate the equilibrium temperature of the glass bulb

An incandescent light bulb is an inexpensive but highly inefficient device that converts electrical energy into light.

  Define firewalls in information technology security

Discuss the need, the use and the essence firewalls in information technology security.

  Define the spirit of the recursion theorem of a program

define the spirit of the recursion theorem of a program.

  Question construct the huffman code for the java keyword

question construct the huffman code for the java keyword and weights given in the following

  Write function that reduces red in the top third of picture

Using nested loops, write a function that reduces red in the top third of a picture and clears blue in the bottom third.

  Modify a module named getnumber

Design a module named getNumber that uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.

  Show the result of each pseudocode program

Show the result of each pseudocode program. Also rewrite pseudocode statements using Assignment statements. Given a simple business program that requires iteration, create a solution algorithm that employs loops.

  Make a program find that searches all files

Write a program Find out that searches all files specified on the command line and prints out all lines containing a reserved word.

  Desktop pc and a computer suitable as a web server

This solution provides the learner with an understanding of two and 3 tierd architectures and explains the role of each architecture. Futher this solution explain the main differences between a desktop PC and a computer suitable as a web server.

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