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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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