You are on page 1of 2

Lab Work # 6

Program # 1: Write a program that reads an array of 10 integers and then print that array. Program # 2: Write a program to find average marks obtained by a class of 20 students in a test. Program # 3: Write a program that reads in 15 integers and then print the smallest and largest element in the array. Program # 4: Write a program that reads in 15 integers and arrange them in ascending order using bubble sort. Program # 5: Write a program that reads in 15 integers and arrange them in descending order using bubble sort. Program # 6: Write a program that adds, subtract, and multiply two arrays of size 5. Program # 7: Twenty five numbers are entered from the keyboard into an array. The number to be searched is entered through the keyboard by the user. Write a program to find if the number to be searched is present in the array and if it is present, display the number of times it appears in the array. Program # 8: Write a program to copy one string to another string. Input the string into the first string variable and then copy this string to the second string variable by copying characters one by one. Program # 9: Write a program to input value into an array. Find out the total number of odd and even values in the array. Program # 10:

Write a program to input values into a table and find out the maximum value entered in the table. Print out the maximum value and its location in the table.

You might also like