Ask Java Expert


Home >> Java

NetBeans Programming Assignment

Read the assignment before you start. The order in which aspects are described does not necessarily indicate the order in which you should write the code. It is up to you to use the concepts we have covered to design the classes and methods that will go into your program; your grade will be based on how well you do this.

Most of the credit for the programming part of this assignment will be given for making good use of the programming ideas we've covered. A program that runs with nice output but does not make use of these ideas will get minimal credit.

Feel free to reuse code you have already written or example code that has been given, but be sure to remove portions unrelated to the current assignment, and to update variable names, method names, etc. Readability matters.

Use comments to clarify what your code is trying to do. If code does not work; partial credit will only be given if comments explain what it was trying to do.

NetBeans Programming Assignment Description:

We will have an online store with media items, and customers that can buy, own, and use these items.

The store will have various types of media -- books, movies, and programs. Each of these has a name, a price, and a size (how many MB of storage space it takes up) and books, movies, etc, should have other appropriate information specific to them. Users can "use" their media items; when a book is used, it is read and we should tell the user the title and how many pages, when a movie is used, the video plays, and we should tell the user how many minutes long it is, when programs are used they run, and we should tell the user the version. (You only need to display messages to say that these things are happening; you do not need to worry about any actual media.).

The store has a list of media items being sold (at least 20, including some from each type). This list can be shown to the user. Items from the list can be chosen (by their number in the list) to buy (note that when a customer buys from the store, that doesn't remove the store's copy).

The store also should have a list of at least three customers.

Each customer has a name, a balance (how much money is in their account), a certain amount of total storage space (e.g. 1GB), and a list of the media they have bought (you can assume they never buy more than 100 items).

Customers can browse their own media, in which case they are shown all the items they own, and can choose from the list an item to use.
Customers can shop the store and buy a new item, in which case we need to check that there is enough storage space left, and they have enough money, and if so, buy the item and add it to the list (and remove that much money). (Note that the amount of space left is their total storage space minus the total storage space of all the media they currently own).

EC+10 If they don't have enough storage space, ask if they want to buy more, at $25 per 1GB (if they can afford it), and if so, let them increase their space and charge them accordingly.

At the beginning of the program, a customer can log in by typing in their name. (Put a comment at the top of your main class with the customer names, so that I can test your program without having to search!)

A customer who is logged in can add money to their balance, browse the media they already own, shop for more, or log out.

If they browse, they can choose to use any of their media.

If they log out, allow a new customer to log in. Within one run of the program, a customer should be able to log in, buy new media, log out, then log back in again later and see their new media when they browse.

Java, Programming

  • Category:- Java
  • Reference No.:- M92387703
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As