answersLogoWhite

0


Best Answer

write a c program to display marks,total,average,grade using union

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program to generate student mark details using union and find total and average and grade?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you write a program in C that will captures details The details to be captured are student name mark and age The program should calculate and display the average marks for all the students?

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);


What is the C plus plus program to illustrate multiple inheritance for read and display student details with 3 test marks and average?

You can show multiple inheritance by inheriting student details like name ,Admission number ,Parents name, address and other information from a school class and then also inherit his marks detail from the his Class's class like Grade 3rd . You will get his marks information from there. Then go forward and make functions to calculate the average marks and display the details.


Write a program in c to sort the details of 10 students using the structure?

for(i = 0; i < num_students; i ++){ sort(student[i]); } That's what you get when you're that specific!


Create a HTML page to display the information of student details?

student details example by html


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.

Related questions

How do you write a program in C that will captures details The details to be captured are student name mark and age The program should calculate and display the average marks for all the students?

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);


What is the C plus plus program to illustrate multiple inheritance for read and display student details with 3 test marks and average?

You can show multiple inheritance by inheriting student details like name ,Admission number ,Parents name, address and other information from a school class and then also inherit his marks detail from the his Class's class like Grade 3rd . You will get his marks information from there. Then go forward and make functions to calculate the average marks and display the details.


Write a program in c to sort the details of 10 students using the structure?

for(i = 0; i < num_students; i ++){ sort(student[i]); } That's what you get when you're that specific!


Create a HTML page to display the information of student details?

student details example by html


What is a matriculated student?

It is a student who has declared and been accepted into a specific program of study.It is a student who has declared and been accepted into a specific program of study.It is a student who has declared and been accepted into a specific program of study.It is a student who has declared and been accepted into a specific program of study.It is a student who has declared and been accepted into a specific program of study.It is a student who has declared and been accepted into a specific program of study.


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


I am international student from colombia, I want to get a scholarship to get into a grad program in the area of D.C. or Marylan?

You can find the details about scholarships eligibilites in D.C and Marylan in this url www.uga.edu/oie/ISSIS/form/Student/Scholarship/Scholarships_for_International_Students.doc


What is the average debt of a student loan?

Not sure of average individual student loan, but the average student with student loans has $28,000.


Where can one get information on eligibility for a Pell grant?

You can visit ed.gov which is the US Department of Education website for details on the Pell Grant Program. You may also visit the federal student aid website with addition details on how to qualify and the amounts you can qualify for.


What scholarship programs are available to B students in Florida?

Florida Students Carrying a B Average Grade Can Apply to the Bright Futures Scholarship Program, the Florida Student Assistance Grant Program, and the Mckay Scholarship Program.


What is a Data?

Data is everything, the quesiton you asked consisted of data. data is the entity on which programs written or work. like library systems it is student details, book details on which program works.


Can a d making student become a nurse?

Nursing program today are competitive. Thus, you really need to raise that grade point average.