Create a data structure to store the details for each student: typedef struct student_t { char name[30]; unsigned age; unsigned mark; } student; Establish an array to store the student data: size_t max = 100; // replace 100 with the actual number of students student students[max]; Use a loop to enter the data: for (size_t i=0; i<max; ++i) { printf ("Student name: "); scanf ("%s", students[i].name); printf ("Student age: "); scanf ("%u", students[i].age); printf ("Student mark: "); scanf ("%u", students[i].mark); } Calculate and display the average mark: unsigned sum = 0; for (size_t i=0; i<max; ++i) sum += student[i].mark; printf ("Average mark: %d\n", sum / max_students);
secondary storage
Yes, this is possible.
#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i
Program Store Enable: The read strobe to external program memory.
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,
You would have to pay a computer programmer to write an application program for your store.
Database ***** Microsoft Access is the database program.
It shouldn't make significant difference, only if the matrix is huge -- in that case you shouldn't store it in memory.
A work study program is a program which helps college students pay for the cost of their education. Students work at various jobs, such as at the college book store, to earn money to help them get through school.
happy birthday...
Write a program to accept name and store the name in its short form (e.g. Sikkim Manipal University should be stored as SMU)
Aquarius Records - store - was created in 1970.
Records are stored in tables.
If you are speaking of a store that belongs to pets, then you would write: pet's store
yes, it is correct
Create a data structure to store the details for each student: typedef struct student_t { char name[30]; unsigned age; unsigned mark; } student; Establish an array to store the student data: size_t max = 100; // replace 100 with the actual number of students student students[max]; Use a loop to enter the data: for (size_t i=0; i<max; ++i) { printf ("Student name: "); scanf ("%s", students[i].name); printf ("Student age: "); scanf ("%u", students[i].age); printf ("Student mark: "); scanf ("%u", students[i].mark); } Calculate and display the average mark: unsigned sum = 0; for (size_t i=0; i<max; ++i) sum += student[i].mark; printf ("Average mark: %d\n", sum / max_students);