Lab Sheet 1
 
Review exercises in C programming 

1.   Write a program to find the average expenditure of a company for each month of each year, each year and average over the range of years specified. Use arrays to construct a table, display the table of expenditure and find the sum and average.

2.   Write a program to find the position of the character 'C' in the sentence "idea without execution is worthless" using pointer and string.

3.   Store and retrieve the name of the students and obtained marks in c programming in 1st semester using structure.

4.   Write a program to read name, rollno, address, and phone number of each student in your class using structure. Store the information in file so that you can recover the information later. While recovering the information from the file sort the information alphabetically according to the name.

 

 

 

Comments