Explain the purpose of the program

Assignment Help Basic Computer Science
Reference no: EM13828326

A car insurance company rates cars for insurability on two criteria-

1. Model of car. This company only insures Ford, Chevy and Toyota cars.

2. Year of car. Anything older than 1990 is not insured.

Write a Java program to enter the make and year of a car and tell the user if the car can be insured.

Follow this hierarchy chart to design the program:

1. The Initialize module is the welcome module. The module should also explain the purpose of the program before execution is passed on to the insureProcess module.

2. The InsureProcess module asks for the model of the car. That car model is then passed to the CheckModel module. If the car model is a Chevy, Ford, or a Toyota it returns a value of true to the insurable variable.

3. If the return value of insurable in the InsureProcess module is true, the program asks for the year of the car. That year is passed to the checkYear module and returns a value of true to the insurable variable, if the car is new enough.

4. The InsureProcess calls the printResults module passing it the insurable value (true or false) telling the user whether the car can be insured.

5. The cleanUp module thanks the user for using the program and at that time the program exits.

Reference no: EM13828326

Questions Cloud

Importance of bank relationship management : There is a growing importance of bank relationship management. Imagine you work in the corporate finance or treasury department of a medium-sized firm that often struggles with cash flow and liquidity.
Incorporate into your mass manufacturing business : Below is a list of items that you will need to incorporate into your mass manufacturing business. You are to create a manufacturing plant with 2 separate divisions. Each division will make one type of product (i.e. Textbooks and Pens or Shoes and Pur..
Report on porters five force : Report on Porters Five Force
Developing a personal investment strategy : First analyse your own situation and risk profile (character, life-style, time horizon, objectives, etc.), then reflect this is a portfolio of funds or ETF using the examples and providers chosen from David Costa's book (you can also use any ETF a..
Explain the purpose of the program : If the return value of insurable in the InsureProcess module is true, the program asks for the year of the car. That year is passed to the checkYear module and returns a value of true to the insurable variable, if the car is new enough.
Recommendations for howard schultz to sustain in the years : Recommendations for Howard Schultz to sustain in the years to come
Full responsibility for any unsold shares : Question 1    Your friend from Germany has decided to come and visit you in the United States. You estimate the cost of her trip at $2,805. What is the cost to her in euros if the U.S. dollar equivalent of the euro is 1.3112? Question 2    Which one ..
Identify a minimum of two neuropsychological tests : Identify a minimum of two neuropsychological tests Dr. Binet is likely to administer and explain why the tests were chosen. Justify the tests based on their validity and reliability
Financial objective of company in maximization : The primary financial objective of a company is the maximization of the wealth of shareholders ...per corporate finance theory.    However, this objective is usually replaced by the surrogate objective of maximization of the company's share price...

Reviews

Write a Review

Basic Computer Science Questions & Answers

  A positive integer and a subprogram

The factorial of a positive integer N, denoted by N!, is defined by the following: N! = 1 * 2 * ..... * N (Note: 0! = 1) Using module and/or functions, create a recursive program to compute N!. The user should input a positive integer and a subprogra..

  Odd-length cycle in directed graph by linear-time algorithm

Give a linear-time algorithm to find an odd-length cycle in a directed graph. You may NOT assume that the graph is strongly connected.

  Case problem- c & m veterinary clinic

Case Problem: C & M Veterinary Clinic, C & M Veterinary Clinic has been treating small and medium-sized animals in the Marlow, Oklahoma, and area for more than 10 years. The staff veterinarians perform all checkups and surgeries, and the staff te..

  Explain about how device works

Write down what first comes to mind as to what is good and bad about the way the device works. The range of tasks a typical user would want to do using it.

  How you would convince a coworker to better manage

Describe how you would convince a coworker to better manage a personal copmuter by performing regular backups and keep the system patches current?

  Compare and contrast five design pattern activity

Design Pattern Activity: Prepare a 2-3 page paper comparing and contrasting five of the design patterns . Choose any five from the list. Adapter - helps to reuse an object or method by adapting its interface to a more common one

  Explain roles and influences of computers

Topic is "The Global Economy" . You will be writing the term paper replying to the following questions? Explain the roles and influences of computers and communications technology in increase of trans-border economic activity.

  Demonstrates your thought process and steps used to analyze

Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input?

  Analyse information security vulnerabilities and threats and

Analyse information security vulnerabilities and threats and determine appropriate controls that can be applied to mitigate the potential risks

  Values for the items in the risk register

Recommend reasonable values for items in risk register for this asset and threat, and give justifications for your choices.

  Local telephone calls and long distance telephone calls

Will the distinction between local telephone calls and long distance telephone calls ever disappear? What may cause this to happen?

  Analyze the consequences of experiment done on mice

Group that had been fed had retained this ability, but other group had not. Probable reason that scientists used only mice from same pure-bred strain is so that?

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