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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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