Lab 1: Best Buy Inventory Program

Due Date and Submission Requirements


The goal of this lab is:


Background and Directions

Earlier this month, it was announced that Bozeman will be getting a Best Buy later this year. This is great news for people that need to shop for electronics and appliances. In this lab, we've been tasked with writing a program that will keep track of items that may be sold at a Best Buy store.

Using Lab1Demo.Java, as a starting point, you will supply the necessary classes and methods to get the correct output. You can download this file, or copy and paste it into your own Lab1Demo.java.
You first need to define the instance fields and constructor for the Item class. This represents an item that may be sold at a Best Buy. Each item will have:

Once you have the class defined, you will need to write the necessary methods. From looking at the Demo class, you should be able to see which ones you need. In the Item class, you will need to define the following methods:
Next, you will define the Customer class. This represents a customer that may be purchasing items from a Best Buy. Each customer will have: Once you have the class and constructor defined, you will need to implement the following methods: The cart total may have three decimal places, which is fine. In Java, there are ways to only allow two decimal places, but that is not a requirement in this assignment.

Rules

You are NOT allowed to modify Lab1Demo.java. If you modify Lab1Demo.Java in any way, then you will lose significant points!

Starting Code

Required Output

When your program is run, your output should look exactlythe same as seen in this screenshot .

Grading (10 points)