Expansion and closed for modification

Assignment Help Basic Computer Science
Reference no: EM131114974

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 wouldbe 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 o

f 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: EM131114974

Questions Cloud

Question regarding the hackers in the future : 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?
Develop a profitable e marketing campaign : BabyRun.ie have commissioned you as an e Marketing specialist to develop a profitable e Marketing campaign with the emphasis on the website and social media which will reach, have impact and ultimately convert their target audience to buy the bugg..
Determine the slip at which maximum torque is developed : Calculate the parameters of the equivalent circuit shown in Figure 13.2.5(c).
Connections between business-law-politics and ethics : Please discuss Credit, Mortgages, and Debtor’s Rights emphasizing the connections between business, law, politics and ethics. What rights do Debtors and Creditors have under the law?
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..
Describe general function of performance management systems : Describe the general function of performance management systems. If the company you choose does not use a performance management system, would you recommend it use one? Why or why not?
Determine a pattern of liver-specific amino acid residues : Determine a pattern of liver-specific amino acid residues, ie those amino acids conserved in all liver forms but not in the brain forms. Provide your pattern.
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?
How do european nations deal with ex-cons : From the perspective of social labeling theory, why is it so difficult to successfully reintegrate ex-convicts into mainstream economy and society? How Do European Nations Deal with Ex-Cons?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Function creates and returns 1d list of final prices

Write a functon def final_price_list(inventory, row, col) that has 3 parameters - 2D list described above, number of rows and number of columns. Function creates and returns 1D list of final prices for all items after discount is applied. Assume t..

  Create an array to hold the hours and the hourly rate

Create an array to hold the hours and the hourly rate. Then print out the wages for each entry. The program should use a multi-dimensional array, a loop, and a jsr to calculate and print the values. this is in Jasmin language

  Discuss the role of the project manager or team

Summarize how the project manager or team exhibited exceptional and ethical project management practices. 2.Discuss the role of the project manager or team

  Detection software automatically analyzes network traffic

What detection software automatically analyzes all network traffic. Assesses system vulnerabilities, recognizess any unauthorized access (intrusions).

  The ldap authentication types

If you look at the LDAP Authentication Types, you will find that LDAP specifies three authentication types: (1) No Authentication (2) Basic Authentication (3) Simple Authentication and Security Layer (SASL) When/why would anyone use a "No Authenticat..

  How does a job analysis relate to job descriptions

How does a job analysis help managers do their jobs better? How does a job analysis relate to job descriptions and job specifications? Why is it beneficial to have someone from outside the organization conduct the job analysis?

  Describe the fields and options associated with user account

Workgroup networks are small. Domain networks are larger. List at least three other distinctions found in a comparison of workgroups and domains.

  What is the running time of your method

should handle at least one of the following common misspelling types: swapping two adjacent characters, inserting an extra character, deleting a single character, and replacing a character for another. What is the running time of your method?

  Frequency for types of clients and reasons for returning

Based on the scenario and data above, explain and analyze the relative frequency for types of clients and reasons for returning.

  Critical success factor of enterprise systems implementation

Critical success factors of enterprise systems implementations. You are free to choose the specific questions, analytical approach, inferences, and conclusions. The body of the paper should include headings and subheadings as are appropriate t..

  Are certain baseball parks better for hitting home runs

Are certain baseball parks better for hitting home runs?

  Write a statement that''s reads an integer value

Write a statement That's reads An integer value from Standard imput Val. Assume val Has already been declared as int variable. Assume Also stdin is a variable That reference A scanner object Associated with standard imput.

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