B
B
Ben_r0072020-04-30 20:59:59
C++ / C#
Ben_r007, 2020-04-30 20:59:59

ASD task. Accounting systems for warehouse products. How to implement?

Hello.
I got into a not very good situation.
Let's start with the fact that I am a 1st year student of a technical university.
Next, I'm blind.
If you have questions about how I write, program, etc., read here:
https://habr.com/en/post/260463/
https://habr.com/en/post/336600/
Best of all I know Python and C#, and here I am. At 1 semester C. Moreover, no basics. At the first lecture, we considered data types, conditions, cycles. It hit me.
Algorithms and data structures. It's all very sad here. The teacher turned out to be inadequate, he drew everything on the blackboard.
I asked to explain, to advise something to read, 0 reaction.
Now there was a quarantine, and here today they send me assignments. Like, it should be done before the end of the semester. And the end of the semester, so you understand, May 22.
5 tasks for ASD. I open the first one, and just...
Here's the task.
Software is being developed for the inventory accounting system. Data for stored in the warehouse are given by:
- ​​name (no more than 5 characters)
- cost;
- amount.
Applications must be temporarily stored in a linear data structure created for this purpose until a request is received for their issuance for processing. The type of linear data structure used is specified in a specific job.

It is necessary to develop a program that simulates the operation of the described fragment of the goods accounting system. The program must provide at any time at the request of the user:
1. Entering an application with data on a new product with the inclusion of these data in the appropriate data structure;
2. selection from the data structure of the application with the display of data on the product on the screen.
3. Viewing the list of applications.
4. Completion of the program.

When starting the program for execution, provide - if the corresponding binary file is available - the introduction of the data stored in it from the file.
At the end of the program:
 save the data in a binary file;
 reflect the generated data in the text file of the protocol.

task number 1
As a data structure used to store applications, a stack is used, the organization option for which is a static array for various teams.

task No. 2
As a data structure used to store requests, a queue is used, the organization variant of which for various teams is circular in a dynamic array.

task №3
Dec is used as a data structure used to store applications, the organization variant of which for various teams is a dynamic array.

Static array, array has 100 elements.
Dynamic array, the number of array elements is set by the user after starting the program.

From all this, I only understood that the program should have a structure, static and dynamic arrays. And that's it!
Stacks etc, it's all too complicated...

Cry for help guys! Tell me how to solve this? Help, direct.
It’s not only the teacher’s fault, I’m too, I could read the ASD on my own, find at least something, but I didn’t expect that I would be urgently asked to do the assignment. And I need to pull out at least three.

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question