Create application with a main menu containing given options

Assignment Help Programming Languages
Reference no: EM131321274

Assignment

Scenario:

You are working for an Art Gallery. The gallery sells paintings for office rooms. An application is needed to manage all of the paintings available in inventory. The gallery has limited space and can only hold 58 paintings at any given time. Each painting has a unique, application generated bar code (represented as an integer starting at 200, and increasing by 100 for each new painting), painting name (e.g. "VSE Building at Night"), artist name, whether or not it was painted by a student, and total area of the painting (in feet). Paintings may not exceed an area of 36 feet. The cost for each painting is calculated at $26 plus the total area of the painting, unless the painting was painted by a student, in which case the cost is reduced to $16 plus the total area of the painting. For example, a painting that is 20 feet and not painted by a student would cost $46.

Create an application with a main menu containing the following options:

Show All Paintings

This option must allow the user to see a list of all painting names with their artist name. If there are no paintings available, the user must see an error message.

Add New Painting

This option must allow the user to enter all information about a painting, other than the unique, application generated bar code. The painting will then be added to the inventory. If the maximum number of paintings has already been entered, the user must see an error message.

Delete Painting

This option must allow the user to see a list of all painting names with their artist name and then choose which painting he/she would like to delete. If the user selects an invalid painting, the user must see an error message. If there are no paintings available to delete, the user must see an error message.

Sell Painting

This option must allow the user to see a list of all painting names with their artist name and then choose which painting he/she would like to sell. Upon selecting a painting, the user should see the unique, application generated bar code, all user entered information about the painting, and the painting's cost. Then, the painting must be deleted from inventory. If the user selects an invalid painting, the user must see an error message. If there are no paintings available to sell, the user must see an error message.

Quit Application

This option must display a summary report including the total number of paintings currently in inventory, number of paintings sold, and total profit earned across all paintings sold.

Note: Once a user selects any option other than "Quit Application", and the option is finished executing, he/she should be returned back to the main menu and re-prompted to enter another option.

Other Requirements:

· Your solution must use object-oriented techniques rather than procedural.

· Your solution must include appropriate constants, constructors, accessors (including a toString() method), mutators, and special purpose methods

· Your solution must demonstrate use of arrays. You may not use ArrayLists.

· You may not use Scanner or System classes for input/output. You must use JOptionPane.

· You may not use System.exit, or any variant that exits the program in the middle of the program. The program should only exit once the algorithm has finished completing.

Reference no: EM131321274

Questions Cloud

Three concepts or laws to support : Explain how flight is achieved.  Please provide an example and use three concepts or laws to support your explanation and example.
Contrast different types of probability sampling techniques : Compare a sample and a population. Under what circumstances can a sample be used to draw conclusions about a population?
Evaluate the internal control procedures : Evaluate the internal control procedures that have been implemented in the business - In theory, you should be able to expect these things. In practice, however, you must establish an internal control framework to make sure your business objectives..
What are the pros and cons : Several governments have subsequently signaled their intention to go to the Moon to mine helium-3 as a fuel supply. Is this a potential and viable solution to our energy problems? What are the pros and cons?
Create application with a main menu containing given options : Create an application with a main menu containing the following options: This option must allow the user to see a list of all painting names with their artist name. If there are no paintings available, the user must see an error message.
Construct a frequency distribution of the observed data : Check whether the observed frequency distribution appears to match the expected frequency distribution shown in the binomial distribution in Figure 8.2.
What is the peak current density and peak voltage : What is the peak current density and peak voltage for a abrupt p+/n+ tunnel diode in a direct material? What is the valley current if NTT traps are in the space-charge and quasi-neutral layers?
Immune system organized to fulfill : What three functions is the immune system organized to fulfill? What are the two subdivisions of the immune system, and what is the difference between them?
Develop a program in cpp that encrypts a text file : In this assignment, you will develop a program in C++ that encrypts a text file and decrypts a text file using a double tranposition ciphering algorithm.

Reviews

Write a Review

Programming Languages Questions & Answers

  Design main driver class to instantiate-compute sum-objects

Design a main driver class to instantiate and calculate sum of several MonetaryCoin objects. Demonstrate that monetary coin inherits its parent's ability to be flipped.

  Write a program to automate the scoring of dives

The state diving commission wants to computerize the scoring at its diving competitions.

  In java why is the = operator not used for string comparison

In java why is the = operator not used for string comparison?

  Write an abstract superclass encapsulating a vacation

Write an abstract superclass encapsulating a vacation: A vacation has two attributes: a budget and a destination. It has an abstract method returning by how much the vacation is over or under budget.

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Create default constructor which invokes superclass

Create a (default) constructor which invokes superclass constructor with value 3 (law school is typically a three year program).

  Program to calculate monthly gross pay for super supermarket

Owners of Super Supermarket would like to have program which calculates monthly gross pay of their employees. Input for this program is employee ID number, hourly rate of pay.

  Develop a company logo application

Copying the template to your working directory. Copy the directory C: Exampl esTutori al 26Exerci sesCompanyLogo to your C: Si mpl yVB2008 directory.

  Wilkerson-irwin algorithm to minimize mean tardiness

Write a program to implement the Wilkerson-Irwin algorithm to minimize mean tardiness.

  Write the standard sql query to retrieve names

write the standard SQL query to retrieve the Name and Phone Number of customers whose name begins with 'S'.

  Create a program named bookexceptiondemo

Create a program named BookExceptionDemo for the Peterman Publishing Company. The company has decided that no published book should cost more than 10 cents per page. Create a BookException class whose constructor re-quires three arguments: a..

  Problem 1 where on the implied uncertainty spectrum do the

problem 1 where on the implied uncertainty spectrum do the following products fall? fill the letters a b or c in three

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