Sedang Disiapkan

Simple Data structure assignment

Homework Definition: Merging two arrays which are given in files using queues and a stack. User will enter three files names to run the program from terminal. First two parameters will represent input file’s names and last parameter will be the file name which will include merged struct’s content. (First two input files are attached.) .

./odev [url removed, login to view] [url removed, login to view] [url removed, login to view]

First two files include sorted numbers. These numbers are ordered decreasingly. The purpose is to merge these numbers increasingly. The numbers in “[url removed, login to view]” will be read and these numbers will be pushed in a queue called

Q1. Then similarly, numbers in “[url removed, login to view]” will be read and these numbers will be pushed in a queue called Q2. After this, these queues will be popped and merged into a stack in a sorted way. At the end of merging, the bottom of the stack must include the number with the highest value, and the top of the stack must include the smallest one. If you read equal values from queues, you should push one of them to the stack. At the end of the program,

you will pop from the stack and write these values to the “[url removed, login to view]”. Also, you should print out your queues’ and the stack’s content to the screen as follows;

Q1={555555, 444, 33}

Q2={5000, 1344, 130, 123, 56, 33, 22, 11}

S={11, 22, 33, 56, 123, 130, 444, 1344, 5000, 555555}

Note that number 33 is included once in the stack.

Kemahiran: Pengaturcaraan C++

Lihat lebih lanjut: top data, struct programming, stack programming, stack definition data structure, stack data structure, stack queue data structure, sorted data, simple data structure, queues data structure, queue program data structure, queue definition data structure, programming data, programming structure, programming definition, programming data structure, definition stack data structure, definition programming, definition data structure, data structure stack, data structure note, data structure definition, data structure arrays, data structure programming, using data structure, programming arrays

Tentang Majikan:
( 6 ulasan ) new york, Turkey

ID Projek: #1556021

Dianugerahkan kepada:

msabouri

I am ready to do the job

$35 USD dalam 3 hari
(30 Ulasan)
5.2

4 pekerja bebas membida secara purata $54 untuk pekerjaan ini

chamanklalwani

Dear naafg i have already done simple assignments for a [url removed, login to view] can check my reviews and completion rate it is 100%.Kindly Check PM

$50 USD dalam sehari
(2 Ulasan)
2.2
hrishabhg1

Hi, I am ready.

$30 USD dalam sehari
(2 Ulasan)
1.6
RNandagopal

I am well knowledge in c,c++ [url removed, login to view] type of programming was already done in my colleges.I easily do this program within the period of time which I was specified.

$100 USD dalam 4 hari
(0 Ulasan)
0.0