Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need soon as possible You chose a type of product to sell (food, apparel, electronics, cosmetics, housewares, etc.). You were to load at least 4

Need soon as possible image text in transcribed
You chose a type of product to sell (food, apparel, electronics, cosmetics, housewares, etc.). You were to load at least 4 parallel arrays with 20 items each, using an array for a category of some type, including 4 categories. Here are the suggested parallel arrays to declare and populate data using initializer lists. String [3 productName double [1 productPrice 'char [ productCategory Modify your Lab #9 program, and make a new version in which you create the same parallel arrays with the initial data, storing it to an ArrayList (use the parallel array data and load it into the ArrayList). Add methods for displayReport), deleteRecord), addRecord), displayRecord), readDataSet), writeDataSet), displayRawData) Use a similar menu and functions you used in Lab #9. The menu will allow you to do the following 1. Display Report of all records 2. Delete a record 3. Add a record 4. Display a single record 5. Read New Data Set from File 6. Write Updated Data Set to File 7. Display on screen Serialized List (raw CSV data) 8. Quit Note: You can just add the last 3 menu items to a copy of your Lab #9 if you prefer (i.e. keep your Lab #9 program intact, but make a copy and modify it). Output Notes: The menu items for #5-6 will prompt the user to enter a filename. * For #5, when you read the data set, replace what's in the ArrayList with the new data . For #6, output the ArrayList contents into a .csv (comma separated Values) file on disk after adding a couple of new records. For #7, display on-screen, the comma delimited file Submission (In a Word document, and in 3 data files) The original data stored to a file called Original ssy (you can have several copies of the data in files, but just post one of them). 'At least two new versions of the data (for example DataSet2.sy,DataSet3.ssv, etc. The output of the program showing the report generation for #1 and #7, as well as the searching to find/display/add/delete records with #2 & 3

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 Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions