/*here we use java program to ffind the values plz follow the images also for understanding */
import java.util.*;
import java.lang.*;
import java.io.*;
class student
{
int studentmark;
String grade;
void readgrade(int mak)
{
// Scanner sc=new Scanner(System.in);
// System.out.println("enter the mark of the student");
// int mak=sc.nextInt();
studentmark=mak;
}
String findgrade()
{
if(studentmark<60)
grade="F";
else if(studentmark<70)
grade="D";
else if(studentmark<80)
grade="C";
else if(studentmark<90)
grade="B";
else
grade="A";
return grade;
}
}
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
student s1[]=new student[10];
int flag=0;
int A1=0,B1=0,C1=0,D1=0,f1=0;
int total=0;
Scanner sc1=new Scanner(System.in);
do{
s1[total]=new student();
int mak=sc1.nextInt();
s1[total].readgrade(mak);
String xs=s1[total].findgrade();
System.out.println(xs);
if(xs=="A")
{ A1++;
System.out.println(A1);}
else if(xs=="B")
B1++;
else if(xs=="C")
C1++;
else if(xs=="D")
D1++;
else
f1++;
total=total+1;
System.out.println("Do want enter the another stuent data 0 forno.. 1 foryes");
flag=sc1.nextInt();
}while(flag==1);
double x1,x2,x3,x4,x5;
System.out.println(total +" "+C1);
System.out.println("percentage of student having grade A");
x1=(double)A1/total;
x1=x1*100;
System.out.println(x1);
System.out.println("percentage of student having grade B");
x2=(double)B1/total;
x2=x2*100;
System.out.println(x2);
System.out.println("percentage of student having grade c");
x3=(double)C1/total;
x3=x3*100;
System.out.println(x3);
System.out.println("percentage of student having grade D");
x4=(double)D1/total;
x4=x4*100;
System.out.println(x4);
System.out.println("percentage of student having grade fail");
x5=(double)f1/total;
x5=x5*100;
System.out.println(x5);
}
}
![return grade; Class Main public static void main (String[] args) throws java.lang. Exception student s1[]=new student[10]; in](http://img.homeworklib.com/questions/7fad2680-d068-11ea-a6f4-cf054c7d3c8a.png?x-oss-process=image/resize,w_560)
![48 class Main 50 public static void main (String[] args) throws java.lang. Exception 58 do{ 60 64 student s1||=new student[10](http://img.homeworklib.com/questions/804bd2b0-d068-11ea-822f-235f6e41a06e.png?x-oss-process=image/resize,w_560)


Question-3: Example: Implement an algorithm that reads in a set of student grads in an exam....
C++ Write a program that reads the number of students in the class, then reads each student's name and his/her test score. Print out each student name, test score and grade, and the average score of the whole class. The program must use vectors and loops for the implementation. The grades are determined as follows: A >= 90; 80 <= B < 90; 70 <= C < 80; 60 <= D < 70; F < 60.
Write a c++ program to compute and print the grade for one student. The grade is based on three mid-term exams (worth a possible 25 points each) of which the best two are only considered in the computation, two quizzes (5 points each), and a 40 points final exam. Your output should include all scores (2 best midterms, 2 quizzes and the final exam), the percentage grade, and the letter grade. Solve it using nested if. The grading scale is:...
Write a program in Java according to the following specifications: The program reads a text file with student records (first name, last name and grade on each line). Then it prompts the user to enter a command, executes the command and loops. The commands are the following: "print" - prints the student records (first name, last name, grade). "sortfirst" - sorts the student records by first name. "sortlast" - sorts the student records by last name. "sortgrade" - sorts the...
Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might be worth 40% of your final grade. To calculate the grade for the Assignments category, the teacher takes the percentage earned on the assignments and multiplies it by the weight. So if the student earned a 90% total on the Assignments, the teacher would take 90% x 40, which means the student earned a 36 percent on the Assignments section. The teacher then calculates...
3. Exam grades across all students across all sections of an introductory statistics class are approximately normally distributed with a mean of 72 and a standard deviation of 11. Use the normal distribution to find answer the following questions. a. What percent of students scored above a 90%? b. What percent scored below 60%? c. If the lowest 5% of students will be required to attend an extra study session, what grade is the cutoff for being required to attend...
C++ program that reads students' names followed by their test scores (5 scores) from the given input file, students.txt. The program should output to a file, output.txt, each student's first name, last name, followed by the test scores and the relevant grade. All data should be separated by a single space. Student data should be stored in a struct variable of type StudentType, which has four components: studentFName and studentLName of type string, an array of testScores of type int...
Write python code on computer, No handwritten
code
You will implement a program which asks the user to enter scores of different courses in different semesters. The program should read the input and output some simple statistics 1. An example input string by the user is given below. Fal12016-coursel:82, course2:80,course3:85;Spring2018- course4:82;Fall2018-course5:85, course6:50, course7:78 Info from different semesters are separated by a ";", courses in each semester are separated by a,and score and corresponding course is separated by a, information of...
SOLVE IN PYTHON:Exercise #1: Design and implement a program (name it AssignGrades) that stores and processes numeric scores for a class. The program prompts the users to enter the class size (number of students) to create a single-dimensional array of that size to store the scores. The program prompts the user to enter a valid integer score (between 0 and 100) for each student. The program validates entered scores, rejects invalid scores, and stores only valid scores in the array....
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...
Python 3.7 Students Grade This project will have you using error handling and file handling to display mid semester report with percentage of student work and their grade. The ‘Students.csv’ file contains students name, exam1 score, exam 2 score, assignment 1 and assignment 2 scores as well. All tasks are out of 100 each. The ‘Students’ are .csv, you may find using the csv module easier to use. However, you can always read in a line and use. split. Requirements...