Write a c program to search a list of integers for a


Problem a: Sorting a list of integers

Write a C program to sort a list of integers both in ascending or descending order. The user should be prompted to enter the integers to be sorted and the type of sorting desired (ascending or descending). Your program will then print out the list of integers sorted according to the choice made by the user.

Algorithm

For each problem, write an algorithm and include it as a "preamble" comment in your program.

Code

Create a new project called sortlist. Create a C source file named sortlist.c

Submission

Submit the following file: sortlist.c.

Problem b: Searching a list of integers

Write a C program to search a list of integers for a particular value. The user should be prompted to enter the value to be searched for. Your program will then print out whether the value was found or not.

Algorithm

For each problem, write an algorithm and include it as a "preamble" comment in your program.

Code

Create a new project called searchlist. Create a C source file named searchlist.c

Submission

Submit the following file: searchlist.c.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program to search a list of integers for a
Reference No:- TGS0665846

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)