Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSD201 - Assignment 1 Product Management System using a linked list data structure INTRODUCTION Your first assignment will be using a linked list data structure

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

CSD201 - Assignment 1 Product Management System using a linked list data structure INTRODUCTION Your first assignment will be using a linked list data structure for implementing a small Product Management System application in Java. About a product: 1. pcode (string): the code of the product (this should be unique for the product). 2. pro_name (string): the name of the product. 3. quantity (integer): the number of products with the same code in a shop at beginning of a day. 4. sold (integer): the number of products with the same code, which is sold in the day. Condition: sold s quantity. 5. price (double): The price of the product. YOUR TASKS You should use a linked list to store data for products. You should create the linked list from scratch, do not use fist structures available in java like ArrayList, Vector, or LinkedList classes. Your program will read in a list of tasks from the file "tasks.txt". An example of the content of that file is: 1 product.txt 3 2 P09 Bread 1055 5 P01 5 P09 6 PO2 3 4 newproduct.txt Each line in the file is a task. The following are the list of tasks and explanation. Tasks: Product list: 1 Load data from file 2 Input & add to the end 3 Display data 4 Save product list to file 5 Search by pcode CO 6 Delete by pcode

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

More Books

Students also viewed these Databases questions

Question

What are the logistics implications of internationalisation?

Answered: 1 week ago