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

  Create a program that has an object type of contact

Create a program that has an object type of Contact. This contact will need to have the following attributes: Name, Birth Date, Phone Number, Address and Eye Color

  Design a schema for the below question

Is it possible to design a scheme that provides confidentiality for sending the message from Alice to Bob? If so, show how with a block diagram for Alice and Bob.

  Write program which instantiates objects of classes

Private data of Quadrilateral must be the x-y coordinate pairs for four end-points of the Quadrilateral. Write a program which instantiates objects of your classes and outputs each objects area (except Quadrilateral.

  Write a program that calculates a cars gas mileage

Write a program that calculates a car's gas mileage - The program should ask the user to enter the number of gallons of gas the car hold and the number of miles it can be driven on a full tank.

  1 microsoft is developing a new program and they want to

1. microsoft is developing a new program and they want to identify the break-even point.their fixed cost is 72000 while

  Program that prompts user to enter five test scores

Write the algorithm for a program that prompts the user to enter five test scores.

  Discuss when scripting should be taught to individuals

Discuss when scripting should be taught to individuals who are learning software programming and discuss the advantages and disadvantages of doing so at specific times in their learning process.

  Write a query to confirm that the changes have taken effect

write the SQL command to add a new redo log group with two members

  Create a program to store assignment grades for student

The elementary school for which you are doing development work has asked you to create a program to store assignment grades for one student.

  Different types of program documentation

List at least three different types of program documentation and the pros and cons of each. When should you use each and can you use only one of them?

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

  Define and initialize tmp mains activation record

Define & initialize tmp main's activation record. When we write the contents of the stack, we write the contents of the whole stack, including previous activation records.

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