answersLogoWhite

0

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

User Avatar

Wiki User

12y ago

What else can I help you with?

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!


How can you write a c plus plus menu driven program of a class student having data members name and rollno and course to perform the task search and update?

To create a menu-driven program in C++ for a Student class with data members name, rollNo, and course, you can define the class with appropriate methods for searching and updating student details. Use a vector to store multiple Student objects. The main function can present a menu to the user, allowing them to choose between searching for a student by roll number and updating their details. Implement the search functionality to iterate through the vector and display the student’s information, while the update function can modify the selected student's details based on user input.


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

student details example by html

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.


If you know a student's average grade can you tell what the student's individual test scores were?

No, knowing a student's average grade does not provide specific information about their individual test scores. The average grade is a summary measure that represents the student's overall performance across multiple tests or assignments and does not reveal details about each individual score.


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.


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!


How can you write a c plus plus menu driven program of a class student having data members name and rollno and course to perform the task search and update?

To create a menu-driven program in C++ for a Student class with data members name, rollNo, and course, you can define the class with appropriate methods for searching and updating student details. Use a vector to store multiple Student objects. The main function can present a menu to the user, allowing them to choose between searching for a student by roll number and updating their details. Implement the search functionality to iterate through the vector and display the student’s information, while the update function can modify the selected student's details based on user input.


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.


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.


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.


Can you provide details about your student teaching experience that you included on your resume"?

Yes, I can provide details about my student teaching experience, which I included on my resume.