JAVA. Write a class representing a line item in a shopping cart:
The characteristics of this class are the name of the product, the cost per unit, and the number of items. This class is named LineItem.Provide a constructor that takes 3 arguments, and initializes the corresponding instance variables. Provide the assessors to the 3 instance variables.
Write a class representing a shopping cart: a shopping cart contains a list of line item objects. This class is named ShoppingCart: provide a constructor for this class, a method to add a line item object to it, and a method printing out its content, with the total cost adding up the cost of all line items.
Write a test program that creates 2 shopping carts, and asks the user to input the content of each shopping cart. Once the user is done inputting the content of the shopping carts, the program displays their contents with their cost.
The programs should compile and run without errors.
Test the program and provide a list of comprehensive test cases used to validate the application and include these test cases in a word document containing all UML diagrams and descriptions. The test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.© BrainMass Inc. brainmass.com October 25, 2018, 6:24 am ad1c9bdddf
This posting contains the solution to the given problem regarding a program in Java.
Managment Information Systems for a Grocery Store
1. You have been hired to create a new checkout system for a grocery chain. It wants to put scanners into the shopping carts and have shoppers scan their own products. The system will track the basic purchases by customers so that it can offer discounts and recommend related products based on current and past purchases. You need to find a way for people to pay for their purchases. You want to minimize theft, but one of the goals is to reduce costs by fewer checkout clerks. Create an initial design for this system.
2. For each of the following information system projects, identify the method (system development methodologies: SDLC, prototyping, RAD, JAD, open source, objects, end user) that would be the best approach for most companies:
a. A new system to track customer requests and comments for the marketing department at a large ski manufacturer.
b. A system to help managers evaluate regional sales data, from the existing sales system running on an Oracle database.
c. A system to track current location and maintenance status of thousands of baggage carts at an airport.
d. A web site to sell "homemade" dog treats over the Internet for a small business.
e. A scientific system to help astronomers collect data from colleagues, track specific items (e.g. comets), and send announcements and questions over the Internet to a group of registered users.
f. A system to help a group of financial managers monitor client transactions and observe them for potentially illegal patterns such as insider trading.
g. A system running on one PC that connects to a truck scale and records incoming shipments of recyclable materials.
h. A system for a manager that pulls data on cell phone usage from all of his workers. It groups the calls and costs so that he can see if workers are making too many personal phone calls.
3. Assume that you are on a project to build a new Web site for a midsize company. The firm sells materials to home builders- usually contractors, but some individual sales as well. The company wants to take orders over the web and enable customers to track the status of current orders. Contractors also want the ability to look at old orders when placing new ones. For example, if they build the same style house twice, they will need approximately the same materials. The manufacturer is not completely certain on many of the details yet, and you will have to interview customers to get additional details and feedback. Setup a schedule for developing this system using the SDLC approach. Then identify ways that RAD might be used to reduce the overall development time.
4. Make a list of symptoms you expect to see in a company that has centralized databases and MIS personnel, but has just decentralized its departments and users have just bought hundreds of new personal computers in the last three years.
5. Make a list of symptoms you expect to see in a company that is too decentralized. That is, the company users are free to choose any hardware and software, and databases are maintained by each department. Data is shared through reports that are printed in each department and forwarded to other departments on paper. There is no central MIS staff and no CIO. Treat it as a company that started small using personal computers and grew but did not come up with centralized information system approach.
6. Write a plan for moving a midsize service company to an intranet and mobile-commerce-based information system, where as many applications as possible will run through browsers and data will be accessible from anywhere in the company. What technologies will you use? What functions will you centralize of decentralize? How will you provide adequate security?
Identify on a high level, the major systems involved; specify the aspects of the systems that can be decentralized or will need to be centralized; identify ways to handle them.View Full Posting Details