Write a C++ program to keep records and perform statistical analysis for a class of 20 students. The information of each student contains ID, Name, Sex, quizzes Scores (2 quizzes per semester), mid-term score, final score, and total score.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile
and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
typedef struct student
{
string stnumber;
string sname;
char sex;
float quiz1;
float quiz2;
float assignment;
float midterm;
float final;
float total;
};
int main()
{
student st[20];
for(int i=0;i<20;i++)
{
cout<<"Enter "<<(i+1)<<" student id: ";
cin>>st[i].stnumber;
cout<<"Enter "<<(i+1)<<" student name: ";
getline(cin,st[i].sname);
cout<<"Enter "<<(i+1)<<" student sex (M/F):
";
cin>>st[i].sex;
cout<<"Enter "<<(i+1)<<" student quiz1 score:
";
cin>>st[i].quiz1;
cout<<"Enter "<<(i+1)<<" student quiz2 score:
";
cin>>st[i].quiz2;
cout<<"Enter "<<(i+1)<<" student mid-term score:
";
cin>>st[i].midterm;
cout<<"Enter "<<(i+1)<<" student end-sem score:
";
cin>>st[i].final;
st[i].total=st[i].quiz1+st[i].quiz2+st[i].midterm+st[i].final;
}
cout<<"Data o students are\n\n";
for(int i=0;i<20;i++)
{
cout<<"Student id: "<<st[i].stnumber<<endl;
cout<<"Student name: "<<st[i].sname<<endl;
cout<<"Student sex: "<<st[i].sex<<endl;
cout<<"Student quiz1: "<<st[i].quiz1<<endl;
cout<<"Student quiz2: "<<st[i].quiz2<<endl;
cout<<"Student midterm:
"<<st[i].midterm<<endl;
cout<<"Student final: "<<st[i].final<<endl;
cout<<"Student total: "<<st[i].total<<endl;
}
return 0;
}
Kindly revert for any queries
Thanks.
Write a C++ program to keep records and perform statistical analysis for a class of 20...
Write a C++ program to keep records and perform statistical analysis for a class of 20 students. The information of each student contains ID, Name, Sex, quizzes Scores (2 quizzes per semester), mid-term score, final score, and total score. The program will prompt the user to choose the operation of records from a menu as shown below: ============================================== MENU =============================================== 1. Add student records 2. Delete student records 3. Update student records 4. View all student records 5. Calculate...
Language: C++ Write a program that will allow the instructor to enter the student's names, student ID, and their scores on the various exams and projects. A class has a number of students during a semester. Those students take 4 quizzes, one midterm, and one final project. All quizzes weights add up to 40% of the overall grade. The midterm exam is 25% while the final project 35%. The program will issue a report. The report will show individual grades...
This is a java homework for my java class. Write a program to perform statistical analysis of scores for a class of students.The class may have up to 40 students.There are five quizzes during the term. Each student is identified by a four-digit student ID number. The program is to print the student scores and calculate and print the statistics for each quiz. The output is in the same order as the input; no sorting is needed. The input is...
please use the c language
Assignment 12 The program to write in this assignment is a program that calculates score statistics and manages the grades of the students. First, the student list and are given in a file named "student.dat" as in the following: 이성우 77 홍길동 88 scores 201 1710086 2012700091 This program reads the input file "student.dat" and keeps this data in a linear linked list. Each node must be a struct which contains the following: student id...
c++
implement a student class
Determine the final scores, letter grades, and rankings of all
students in a course.
All records of the course will be stored in an input file, and a
record of each student will include the first name, id, five quiz
scores, two exam scores, and one final exam score.
For this project, you will develop a program named cpp to determine the final scores, letter grades, and rankings of all students in a course. All...
in C porgraming . use #include〈stdio.h〉
#include〈stdlib.h〉
Assignment 12 The program to write in this assignment is a program that calculates score statistics and manages the grades of the students. First, the student list and scores are given in a file named "student.dat" as in the following: 이성우 77 홍길동 88 2011710086 2012700091 This program reads the input file "student.dat" and keeps this data in a linear linked list. Each node must be a struct which contains the following: student_id,...
Create an abstract Student class for Parker University. The
class contains fields for student ID number, last name, and annual
tuition. Include a constructor that requires parameters for the ID
number and name. Include get and set methods for each field; the
setTuition() method is abstract.
Create three Student subclasses named UndergraduateStudent,
GraduateStudent, and StudentAtLarge, each with a unique
setTuition() method. Tuition for an UndergraduateStudent is
$4,000 per semester, tuition for a GraduateStudent
is $6,000 per semester, and tuition for...
Write a c++ program which uses a structure having the indicated member names to store the following data: Name (student name) IDnum (student ID number) Tests (an array of three test scores) Average (average test score) Grade (course grade) The program will keep a list of three test scores for one student. The program may prompt the user for the name, ID number, and test scores, or these may be assigned within the program. The average test score will be...
Write a grading program in Java for a class with the following grading policies: There are three quizzes, each graded on the basis of 10 points. There is one midterm exam, graded on the basis of 100 points. There is one final exam, graded on the basis of 100 points. The final exam counts for 40% of the grade. The midterm counts for 35% of the grade. The three quizzes together count for a total of 25% of the grade....
C++ Write a program to calculate final grade in this class, for the scores given below . Remember to exclude one lowest quiz score out of the 4 while initializing the array. Display final numeric score and letter grade. Use standard include <iostream> Implementation: Use arrays for quizzes, labs, projects and exams. Follow Sample Output for formatting. May use initialization lists for arrays. Weight distribution is as follows: Labs: 15% Projects: 20% Quizzes: 20% Exams: 25% Final Project: 20% Display...