Expansion and closed for modification

Assignment Help Basic Computer Science
Reference no: EM131113143

A car manufacturer wants to allow his customers to customize their car order as they wish. They come to you asking to help them design their software solution. A basic car model would be costing$1000. Here is the list of items you can add, along with their respective price:

-Air condition: $500

-Power windows: $200

-Sunroof: $250

-GPS: $200

The most important fact is that your design/code needs to be opened for expansion and closed for modification; i.e. we want to be able to expand the functionality by plugging in additional features, like enabling to add more items (Bluetooth, Internet, ...) without changing any existing code, but adding some.

Your program needs to display a menu of the items to add to the basic model. You are free to use a basic command line menu or a Java Swing one or even a JavaFX if you want. Once you get the set of selections the user wants to add to the basic model (zero or more), your code would produce the new model, listing all the additional items, along with each item's cost and the total cost of the newly ordered car model. Again, part of the marking is that your code needs to handlethe expansion factor by simply allowing me adding a new class to your code, without touching any of yours, and my class should work smoothly.

Of course, I would be implementing or extending what is needed from your code. Following one of the design pattern covered in class, I should be able to do so. Your code should have all the try/catch necessary to accept any type of input and to recover from any wrongly entered type (ex: if you expect an int, I should be able to enter a letter and your code should be able to recover from it properly). Once a car model has been successfully ordered with zero or more added items to thebasic one, your code would end by stating that the new car will be ready to be picked up, two weeks from current date at respective local car dealer (i.e. get currentdate and add two weeks to it); just use "at local car dealer" in your message.

Reference no: EM131113143

Questions Cloud

Question regarding the automated checkout program : A local department store hires you to write an automated checkout program to expedite customers in a hurry. The checkout line can only accept five items for any one purchase. Design a program that asks for the price of each item, and then displays..
Question regarding the hacker subculture : Describe what is meant by the "hacker subculture" and identify at least one value that drives the hacker subculture. Do you think this hacker value system can ultimately be used to disrupt and deter hackers in the future?
What changes will you make in future quarters : What was your marketing strategy for each of the decisions entered into the simulation game in Quarter #1? What were the results of your decisions? Analyze the results in terms of success or failure.
Determine the percentage reduction in the applied voltage : The full-load slip is 4%. Determine the percentage reduction in the applied voltage (i.e., the percentage tap on the autotransformer).
Expansion and closed for modification : The most important fact is that your design/code needs to be opened for expansion and closed for modification; i.e. we want to be able to expand the functionality by plugging in additional features, like enabling to add more items (Bluetooth, Inte..
Draw the budget constraint for this family : Assume that housing and food are the only goods available. A family's budget is $800 a month. Assume the price of food is equal to $4 and the price of housing is equal to $5. Draw the budget constraint for this family
Important aspect of formatting : 1. Which rules does an expert have to follow to prepare and submit a report? 2. What is destroying a report before the final resolution of a case called? 3. When writing a report what is the most important aspect of formatting?
Calculate the efficiency of the induction generator : The constant losses from a no-load run as a motor are given to be 220 W, of which 70 W represents friction and wind age losses. Calculate the efficiency of the induction generator.
Why derived demand important for companies selling products : Why is the concept of derived demand so important for companies selling products and services to other organizations? What is an example where an industrial company has benefited from changes in end-consumer demand?

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