Second part of program not running no errors.

When I run this program it allows me to input the values but stops after that. I cant figure out why it does not run the output to show the results. I do not get any errors while debuging.

this is the program I am trying to do.
a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (Don’t forget to normalize the quiz scores. They should be converted to a percentage before they are averaged in.)
Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F. The program will read in two exam scores as well as the student’s average numeric score for the entire course and final letter grade. Define and use a structure for the student record.
Data for the test run: 1 7 10 90 95 2 9 8 90 80 3 7 8 70 80 4 5 8 50 70 5 4 0 40 35

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
  #include <iostream>

using namespace std;

int stNumber;
double quiz1;
double quiz2;
double midExam;
double finalExam;
double courseAverage;

struct StudentRecord{
int quiz1, quiz2, midExam, finalExam, courseAverage, letterGrade, stNumber;
};

void instructions();
void output  (StudentRecord & record);
void computeAverage (StudentRecord& record);

int main(){
  cout << "Enter the student number:";
  cin >> stNumber;
  cout << "Enter two 10 point quizes.";
  cin >> quiz1 >> quiz2;
  cout << "Enter the midterm and final exam grades. These are 100 point test.";
  cin >> midExam >> finalExam;

  return 0;
}

char letterGrade (double numericGrade)
{


  char letter;

  if (numericGrade < 60)
    letter = 'F';
  else if (numericGrade < 70)
    letter = 'D';
  else if (numericGrade < 80)
    letter = 'C';
  else if (numericGrade < 90)
    letter = 'B';
  else
    letter = 'A';

  return letter;
}


void output  (StudentRecord & record)
{
  cout << "The record for student number:" << stNumber << endl;
  cout << "Quiz grades are: " << record.quiz1 << "  " << record.quiz2 << endl;
  cout << "The midterm and exam grades are: " << record.midExam << record.finalExam << endl;
  cout << "The numeric average is: " << record.courseAverage << endl;
  cout << "and the letter grade assigned is: " << record.letterGrade << endl;

}


void computeAverage (StudentRecord& record)
{
  const double EXAM_WT = 0.5;
  const double MIDTERM_WT = 0.25;
  const double QUIZ_WT = 0.25;
  double quiz1Percent, quiz2Percent;

  //
  // Convert the 10 point quizzes to a percent, then find the average
  //
  quiz1Percent = 100 * record.quiz1 / 10.0;
  quiz2Percent = 100 * record.quiz2 / 10.0;
  double quizAvg = (quiz1Percent + quiz2Percent) / 2;

  //
  // Compute the weighted average to get the numeric course grade
  //
  record.courseAverage = quizAvg * QUIZ_WT + record.midExam * MIDTERM_WT +
  record.finalExam * EXAM_WT;

  //
  // Call the letterGrade function to find the corresponding letter grade
  record.letterGrade = letterGrade (record.courseAverage);

}.
You never call any of your functions from main. You have user input the data and then you do nothing so the program ends.
Topic archived. No new replies allowed.