Declare a structure for a student record consisting of four fields. Student ID, First Name, last Name and the total score.
Write a program to accept the value of all data members from the user.
Calculate the percentage os stuedent assuming that total score can here maximum value 500.
Answers
Answered by
0
Answer:
In this C programming example, you will learn to store the information of 5 students by using an array of structures.
Answered by
1
Answer:
In this program, a structure student is created. The structure has three members: name (string), roll (integer) and marks (float).
Then, we created an array of structures s having 5 elements to store information of 5 students.
Using a for loop, the program takes the information of 5 students from the user and stores it in the array of structure. Then using another for loop, the information entered by the user is displayed on the screen.
Similar questions
Math,
3 hours ago
Social Sciences,
3 hours ago
History,
5 hours ago
English,
5 hours ago
Science,
8 months ago
Business Studies,
8 months ago