Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

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. ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

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 ...

  • 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