Assignment 1
Assignment 1
I know you can find tons of implementations available on the internet; even at the end of the shared url.
I request you to try these problems yourself. Take a small step at a time and gradually build. If you are
stuck at any point/error; think yourself, take a small break, discuss it with someone (may be your
instructor) and then again get back to the problem independently to get pass the hurdle. Spend some
time and debug; I also know that you can do it and you will.
Sample Output:
Enter any number: 6329
Reverse of number 6329 is 9236
Implement using C++ functions for all options. The functions should have two parameters i.e., name of
the array and number of elements in the array. You must declare the functions in the header file and
defined in the source file. (Review of basic programming concepts: Functions, Arrays).
To understand the “insertion sort” you can google it or learn from the following URL:
https://www.geeksforgeeks.org/insertion-sort/
MENU
1. Accept elements of array
2. Display elements of array
3. Sort the array using insertion sort method
4. Exit
MENU
1. Accept elements of array
2. Display elements of array
3. Sort the array using insertion sort method
4. Exit
MENU
1. Accept elements of array
2. Display elements of array
3. Sort the array using insertion sort method
4. Exit
MENU
1. Accept elements of array
2. Display elements of array
3. Sort the array using insertion sort method
4. Exit
In your submitted code write comment at the end to indicate the difference in code as compared to what
you did in CSC141ICP using C programming.
For each programming question create a project with appropriate name (preferably having question
number) within the folder (If needed can create subfolder for each programming question.) and submit.
In the class, you will submit the hard copy with the cover page and URLs of all the programming
questions and also any handwritten work required for assignment completion (e.g., Question No. 3 and
4 of this assignment).
In MS Teams, before the beginning of the class on due date, upload the soft copy with the scanned
pages of the handwritten work, if any, included. And Don’t forget to submit the assignment in MS
Teams. Note the links should be clickable, so that I can directly access your code.