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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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