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

  Create a gantt chart for the project

Create a Gantt chart for the project. Take a screenshot of the Gantt chart which can later be inserted into your written paper

  Write a scheme funtion that takes a list

Write a Scheme funtion that takes a list and an atom as parameters and returns a list identical to its parameter list except with all top level instances of the given atom deleted

  Write a c program that will generate every third integer

Write a C program that will generate every third integer

  The shipping charge on a purchase

The shipping charge on a purchase of $234.65 is $5.00.

  Swimlane-hypothesis space

Assignment need to be done. It is about swimlane. I am attaching document and example of how it suppose to be done.

  Lan device

Your wireless LAN device has just sent a request to send (RTS). What happens next?

  Explain what type of architecture the new payroll applicatio

Explain what type of architecture the new payroll application should use and why.Identify what types of technology will be involved in the architecture and explain the purpose of each technology.

  Identify the types of documents that your organization

Suppose the same large organization mentioned above consisted of several large sites and many smaller sites connected with WAN links (versus the often faster LAN option).

  Modify the simplex-talk socket program

Finally, see what happens when two such UDP clients simultaneously connect to the same UDP server, and compare this to the TCP behavior.

  Question regarding the checked on all phones

You have been given a suspect's phone and need to determine what was accessed and from where. What are some areas that should be checked on all phones?

  Total processing speed of microprocessors

Task Part A : 1. The total processing speed of microprocessors (based on clock rate and number of circuits) is doubling roughly every year. Today, a symmetric session key needs to be 100 bits long to be considered strong. How long will a symmetric..

  Signal that includes creating lpf

The next step is processing the signal that includes creating LPF, removing silent regions and scaling the signal in the time domain. Can someone help with the matlab code for this part of my project and the next 2 parts which include feature extract..

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