Closed

Order Array Function with C Programming

You will need to implement several functions and use one makefile to generate an execution file called OrderArray, which orders numbers in an array.

The process for the algorithm is as follows:

1. Pick a random element from the array as a reference.

2. Splitting: rearrange the array so that all values greater than the reference will be placed after that and those less than the reference will come before it.

3. The above steps should be recursively and separately applied to both sub-arrays (greater values and smaller values

than the reference). Stop whenever the array size is one or less.

List of Functions

- RandomGeneration.c - This function generates a random number in the range of the array size, and print the random element (reference) from the array then return the index of such element. The input is an array and it returns the random index.

Note: the array index starts from 0.

For example, for an array with size 5, if the generated random number is 3, the function

should return 3 and print the fourth element as reference.

- PrintArrays.c - This function print an array.

- Split.c This function gets the reference and performs the splitting step mentioned above (step 2). The inputs include an array, starting index and ending index.

- Recursive.c: This function recursively applies the splitting on both subarrays as explained in step 3. The inputs include an array, starting index and ending index.

- Main.c: The entry point of the entire program, which takes in an array of integers (it can be hard-coded in the main function), order them (using the above functions) and print the array.

Please see attached for the exact output.

Skills: C Programming

See more: c program for sorting numbers in ascending and descending order, c program to sort an array in descending order, ascending order program in c using if-else, c program to sort an array in ascending and descending order, c program to arrange numbers in ascending order without using array, c program to sort n numbers in ascending order, c program to sort an array in ascending order using function, c++ program to sort an array in ascending order, \ Order what you want, eat what you get, write an expository article in which you explain the main sources of people's anxiety to words food safety, what is c programming used for, learn c programming online for free, how to download c++ programming language for free tis web, download c++ programming software for windows 7, download c++ programming language for windows 7

About the Employer:
( 1 review ) Miami, United States

Project ID: #15394619

25 freelancers are bidding on average $37 for this job

Yknox

Hello I'm interesting your project very well I'm a Good Linux, C++, c#, Math, Java, Algorithm expert. Relevant Skills and Experience I m quite well experienced in these jobs. Let's go ahead with me I want to service f More

$103 USD in 2 days
(337 Reviews)
8.1
it2051229

Hi went through the requirements. I can build the algorithm in C if given the opportunity. Let me know if you are interested. Thanks. Relevant Skills and Experience C Programming Proposed Milestones $30 USD - Complet More

$30 USD in 1 day
(434 Reviews)
6.7
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side, using c++ under windows envir More

$70 USD in 1 day
(87 Reviews)
6.6
freelancerLatino

Nice project...it is a quick sort... I can do it as you described it. Take a pivot, split the array in 2 subarrays, and call quick sort again on each sub array. Let me do it.! Habilidades y experiencia relevante c, c+ More

$30 USD in 2 days
(64 Reviews)
6.7
harshdaga

Hi, I've got quite some experience with C and I'm sure I can help you out with your project. May I get more details over the chat? Relevant Skills and Experience C, Algorithms Proposed Milestones $35 USD - Completio More

$35 USD in 1 day
(54 Reviews)
5.0
$50 USD in 1 day
(39 Reviews)
5.0
gold2star

Hi, Dear Employer! How are you? I have enough experience on C/C++, java programming . I am really interested in your project. I am 100% sure i can satisfy your requirements perfectly. User-Friendly Interface And More

$25 USD in 1 day
(7 Reviews)
4.5
athukoralakasun

Hi! I am a Computer Engineering Masters student. I am an expert on C/C++ and algorithm designing. I can do your project. Please message me further details. Kind regards. Relevant Skills and Experience I have done lot More

$66 USD in 1 day
(18 Reviews)
4.4
MrtDolphin

Hi. I am programming king. I can finish your job within today. Relevant Skills and Experience c/c++, linux Proposed Milestones $50 USD - result

$50 USD in 1 day
(2 Reviews)
4.0
raulbehl

Hello! Please check my reviews and profile to know a bit about me and my work. Thank you!

$37 USD in 2 days
(19 Reviews)
4.1
$45 USD in 1 day
(8 Reviews)
3.7
bitibe

Hi, I have read and understood you requirement completely. In short you were askimg to implement quicksort. Also, if you will award project to me you will get plagiarism free code. Regards, Sneha

$35 USD in 1 day
(3 Reviews)
3.1
shobhacodeguru

Hahve more than 10+ years of C application programming experience in some of the worlds topmost software companies. Stay tuned, I'm still working on this proposal.

$10 USD in 1 day
(7 Reviews)
3.3
ayesha29

price is negotiabe Relevant Skills and Experience i have done many projects in c++ and c as i am computer science graduate and a coder now a days Proposed Milestones $35 USD - 1

$35 USD in 1 day
(2 Reviews)
2.1
Bhawandtu

I have 5+ years of working experience in c and C++. I read the task description and I can do this task easily.

$15 USD in 1 day
(2 Reviews)
1.1
mnagy1312

I will do it as soon as possible, and with the best quality, I've already made a lot of project with C

$25 USD in 1 day
(1 Review)
0.8
$55 USD in 2 days
(0 Reviews)
0.0
ankittiwari06

A proposal has not yet been provided

$25 USD in 2 days
(0 Reviews)
0.0
gkr09

I have been coding in C and C++ for years now and let me tell you that this really is a basic program for me. I can give you a perfect working executable in almost a day !

$25 USD in 1 day
(0 Reviews)
0.0
akouaouchissam1

I'm so excited to work with you and I have a big experience with c programming and I'm sure that you gonna be so happy in the last so let's work together

$35 USD in 1 day
(0 Reviews)
0.0