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: merging arrays given files using queues stack, user will enter files names run program, top data, struct c programming, stack programming, stack program in data structure using c, stack of data structure, stack in data structure, stack definition in data structure, stack data structure, stack and queue in data structure, sorted data, simple data structure, queues in data structure, queue program in data structure, queue in data structure, queue definition in data structure, queue data structure in c, queue data structure, programming with data, programming structure, programming in data structure, programming definition, programming data structure, programming and data structure

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 freelancers are bidding on average $54 for this job

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