You are on page 1of 4

Muhammad Ali Qasim

32566

Programming Fundamentals Assignment 3

Refer to the lecture Linear and Binary Search using Arrays, modify the code mentioned in the lecture
and do the following
1. Randomly generate the two digit numbers as data before calling Linear Search function in the
current code

2. Randomly generate the four digit numbers as data in Binary Search and call bubble sort before
using Binary Search algorithm in the current code.
Refer to the lecture Bubble sort using pointers, modify the code mentioned in the lecture and do the
following
1. Modify the array to include 15 single digit numbers as data before you call Bubble sort function
in the current code. Make sure your 5 digits of Registration ID are part of the array at first during
declaration and rest 10 single digit numbers are randomly generated.
Refer to the lecture Relationship between Pointers and Arrays, modify the code mentioned in the
lecture and do the following
1. Modify the array to include 15 single digit numbers as data before you output array by using
array subscript notation and pointer/offset notation. Use all four cases as mentioned in the class. Make
sure your 5 digits of Registration ID are part of the array at first during declaration and rest 10 single
digit numbers are randomly generated.

You might also like