The time it takes Professor Jones to grade a midterm exam is exponentially distr
ID: 3068809 • Letter: T
Question
The time it takes Professor Jones to grade a midterm exam is exponentially distributed with average of 4 minutes per exam. It is now 9AM and Professor Jones plans to grade 30 exams by ITAM (a) Compute the probability Professor Jones executes his plan (b) If we know that Professor Jones graded 18 exams by 10AM, what is the expected time until he finishes grading the other 12 exams? (c) The probability that a grade of an exam is lower than B is 0.2. Compute the probability that by 10AM there is at least one exam graded lower than B.Explanation / Answer
#include<iostream>
using namespace std;
int main() {
string studentName, courseNumber;
double midtermExam, finalExam;
cout << "Enter Student Name: ";
cin >> studentName;
cout << "Enter course exam: ";
cin >> courseNumber;
cout << "Enter mid term grade ";
cin >> midtermExam;
cout << "Enter Final Grade ";
cin >> finalExam;
if (midtermExam < 0 || midtermExam > 100) {
cout << "Midterm exam must be between 0 and 100 ";
return 1;
}
if (finalExam < 0 || finalExam > 100) {
cout << "Final exam must be between 0 and 100 ";
return 1;
}
double avg = (midtermExam + finalExam)/2.0;
char letterGrade;
if (avg > 90)
letterGrade = 'A';
else if (avg > 80)
letterGrade = 'B';
else if (avg > 70)
letterGrade = 'C';
else if (avg > 60)
letterGrade = 'D';
else
letterGrade = 'F';
cout << "Grade obtained by us is: " << letterGrade << endl;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.