Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M92075875
  • Price:- $45

Priced at Now at $45, Verified Solution

Have any Question?


Related Questions in Programming Language

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

  • 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