Showing posts from April, 2021Show all

4)Write a C program that generate a data file containing a list of customers using structure also File store the names, city and phone numbers of each customer.

Write a program that will generate a data file containing a list of customers  and their   phone numbers. Use structure variables to store the names, city and phone numbers of each customer. source file name: FileStruct.C #include<stdio.h> struct customer { char name[20]; char city[10]; long phone; } ; int  ma…

Read more

7)Write a program that reads information of Student using Student Structure with BOD structure and print a Rank wise student list with marks.

Design a structure students to contain name, BOD   and total marks obtained. Use the date structure (day.month, year) to read data for 5 students in class and display list of students in  rank-wise. struct date { int d,m,y; }; struct student { int     rollno; char name[10]; char studclass[10]; int result; struct date …

Read more

6) Write a program that store information of 10 Cricket players using Cricket Structure and print a team wise list containing names of players with their batting rating.

Define a structure called cricket that will describe the following information player name,team name, batting rating. Using cricket , declare an array player with 10 elements and write a program  to read the information about all the 10 players and print a team wise list containing names of players with their batting …

Read more

5) Write a program to generate list of students using structure.The program should also display the number of students coming from a particular city .

Write a program that generates a list of students. Use structure variables to store the names ,roll-no, class and city of each student. The program should also display the number of students coming from a particular city (say:’Chiplun’). source file name: StudentList.C  #include<string.h> struct student { int…

Read more

4) Write a program that accept two time structures intervals and display the duration time between the two times also program test valid time interval using function.

Write a program, which contents a structure to represent time in hours(0-23), minutes(0-59) and second (0-59). The program should accept two times from user and display the duration time between the two times. source file name: timediff.C #include<stdio.h> struct time { int h,m,s; }; int  main() { int valid…

Read more