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

  Software developments is for developers to analyze

The goal of real world software developments is for developers to analyze, design, program, and test complete applications that solve the needs of the customer. The iLab exercises you have been given will give you practice with the specific programmi..

  Make the table in the format

Make the table in the format : table_name

  The dom with javascript and traversing the dom with jquery

The DOM with JavaScript and traversing the DOM with jQuery

  Using sequential logic, counters and shift registers propose

using sequential logic, counters and shift registers propose a more complex system utilizing some of the more complex sub systems. example a motion acitavated light. Needs to be somthing other then a light example like motors or somthing

  Describe steps improving or maintaining relations with other

Describe the steps necessary for improving and maintaining relations with other business units

  Short paper on security plan

Submit a security plan to secure the organization's database. The security plan will be submitted to the CIO. The organization has many concerns about unauthorized access, since there have been reports that some confidential information has been a..

  Justify five reasons not consider smartphone to computer

justify at least five reasons why you would or would not consider a smartphone and other cell phones to be computer systems

  Work breakdown structure for emr implementation

Need help with work breakdown structure for EMR implementation

  Write a gui-based program that analyzes a round of golf

Write a GUI-based program that analyzes a round of golf. You will retrieve the data for 18 holes from a text file. On each line in the file will be the par for that hole (3, 4, or 5) and your core for that hole should be displayed in a label. Prov..

  You have been asked by a retail company to install a network

You have been asked by a retail company to install a network in its management remote office. It currently has ten computers running Windows 7, XP, and Linux. The owners are concerned about security because the network will share important data among..

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  Security of the facilities

Write 2 pages of the physical security policy section for Home Depot regarding their security incident. Include the follow:Security of the facilities:  -Physical entry controls

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