Chat with us, powered by LiveChat c++ coding – Wridemy

c++ coding

Question Description
Write a c++ program that contains the following function

a) A functions that takes in two arrays ( both can be of any size), and fills up the first array with input from a file and the second with input from the user.

b) A function that takes in two integer variables and swaps the content of the variables

c) A function that takes in an unsorted array of any size and an integer key, and returns true or false if the key is in the array using Binary Search. (You can use code to make any adjustment needed to use binary search)

d) A function that takes in an unsorted array of any size and uses bubble sort to arrange in descending order (from largest to smallest).

e) A function that takes in an array of any size and prints the content of the array in one line.

f) A function that takes in an array of any size and an integer key. The function should find every occurrence of the key and replace it with 9999 and shift to the end of the list.

ex. 34 11 92 78 62 6 55. With 11 as the key, the new list should look like 34, 92, 78, 62, 6, 55, 999. (Note: This is not a swap, but a left shift for elements after the key, use the idea of bubble sort or insertion sort)

2) Write a C++ program that contains the following functions

a) A function to fill up an array of any size with inputs from the user.

b) A function to give the user the choice to choose between the 3 search algorithms covered in class. Their choice selects any of the 3 algorithms to sort the numbers in the array in ascending order. A slight modification needs to be made to the code given in class. It should print the list at each iteration and the value that was swapped into it’s correct position, as we do in class.

E.x for sorting 27 98 13 45 72 88 4 51 43 90 using selection sort,

the first list should look like

4 98 13 45 72 88 27 51 43 90 – Swapped number 4

Optional

A function that performs a version of bubble sort, that bubbles the largest numbers down the list on the odd passes and the smallest numbers up the list on the even passes

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order

Related Tags

Academic APA Writing College Course Discussion Management English Finance General Graduate History Information Justify Literature MLA