Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Assignment Design a class OrderedSet to manipulate ordered sets. The elements of an Orderedset object are distinct and in ascending order. Note that the

image text in transcribed

The Assignment Design a class OrderedSet to manipulate ordered sets. The elements of an Orderedset object are distinct and in ascending order. Note that the insert method must output an appropriate message if the element to be inserted is already in the list Use the OrderedSet class to write a GUI application to keep track of a hardware store's inventory. The store sells various items. For each item in the store, the following information is kept: item ID, item name, number of pieces in the store, and the selling price. The store manager wants to see the following reports * all records in ascending or descending order of item ID, based on a user selection (you may use a radio button) * maximum price and a list of items with that price o the total selling value for all items in the store Your program should read an input text file containing the items (Hint: use JFileChooser class to get the name of the input file). The format of the input file is as follows noofItems itemID itemID itemName qantity temName quantity sellingPrice sellingPrice The first line indicates the number of items. The items' data is given thereafter. A sample input file follows 1111 Circular Saw 2222 Cooking Range 125.99 1129.99 12 The Assignment Design a class OrderedSet to manipulate ordered sets. The elements of an Orderedset object are distinct and in ascending order. Note that the insert method must output an appropriate message if the element to be inserted is already in the list Use the OrderedSet class to write a GUI application to keep track of a hardware store's inventory. The store sells various items. For each item in the store, the following information is kept: item ID, item name, number of pieces in the store, and the selling price. The store manager wants to see the following reports * all records in ascending or descending order of item ID, based on a user selection (you may use a radio button) * maximum price and a list of items with that price o the total selling value for all items in the store Your program should read an input text file containing the items (Hint: use JFileChooser class to get the name of the input file). The format of the input file is as follows noofItems itemID itemID itemName qantity temName quantity sellingPrice sellingPrice The first line indicates the number of items. The items' data is given thereafter. A sample input file follows 1111 Circular Saw 2222 Cooking Range 125.99 1129.99 12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+5. What reader benefits are included?

Answered: 1 week ago