PLEASE HELP IM STUCK

Write a C++ program that does the following:
- Allow the user to specify how many courses they are doing
- Allow the user to enter the name of the courses they are doing
- Allow the user to enter the marks obtained in each course
- Display the result for each of the course entered as well as the awards received based on the number of courses and their respective marks. The output is based on the table below:
Result for courses
50% Pass
51 % - 69% Credit
70-79% Distinction
80% - 100% High Distinction

Award Received:
Number of Courses Award Condition
2 Certificate At least 50% Pass rate
3 Advanced Certificate At least 50% Pass rate
4 Diploma At least 50% Pass rate

PLEASE I NEED GUIDE ON THIS any help will be appreciated
Last edited on
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
Thank so much im really confused about this question is that i only know how to solve all the asked questions individually but in this programe i need to put things together pls i need illustration i dont really want to do copy and paste code just illustration on h0w i will be able to go about it thanks
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101

#include <iostream>
using namespace std;
#include <string>
#include <iomanip>

int main()
{
	int courseNo;
    string courseName1,courseName2,courseName3,courseName4;
    int grade1,grade2,grade3,grade4;
    
    cout<<"How Many Courses are you offering ? "<<endl;
    cin>>courseNo;
    cout<<"You are offering "<<courseNo <<" couses"<<endl;
    if (courseNo ==4)
    {
        cout<<"Enter The name of your courses "<<endl;
        cin>>courseName1;
        cout<<"Enter the grade for the course "<<endl;
        cin>>grade1;
        
        
        cout<<"Enter The name of your courses  "<<endl;
        cin>>courseName2;
        cout<<"Enter the grade for the course "<<endl;
        cin>>grade2;
        
        
        cout<<"Enter the Name for the course "<<endl;
        cin>>courseName3;
        cout<<"Enter the grade for the course "<<endl;
        cin>>grade3;
        
        
        cout<<"Enter The name of your courses "<<endl;
        cin>>courseName4;
        cout<<"Enter the grade for the course "<<endl;
        cin>>grade4;
        
        //grade 1 grading

        if(grade1 >=80 && grade1 <= 100);
                    {
                        
                        cout<<"High Distinction" <<endl;
                
                    }
                    
            else if (grade1 >=70 && grade1 <= 79)
                
                    {
                        
                        cout<<"Distinction" <<endl;
                
                    }
            else if (grade1 >=51 && grade1 <=69)
                
                    {
                        
                        cout<<"Credit" <<endl;
                        
                    }
            else if (grade1 == 50);
            
                    {
                
                        cout<<"Pass" <<endl;
                
                    }
                    else{
                        cout"Retake";
                        }
                    //Facing problem when including else
                   
                  
            
        cout<<"Table of your scores are set Below"<<endl;
        cout<<setw(10)<<"Course Name" <<setw(15)<<"Grade"<<endl;
        cout<<setw(10)<<courseName1 <<setw(15)<<grade1<<endl;
        cout<<setw(10)<<courseName2 <<setw(15)<<grade2<<endl;
        cout<<setw(10)<<courseName3 <<setw(15)<<grade3<<endl;
        cout<<setw(10)<<courseName4 <<setw(15)<<grade4<<endl;
        
    }
    else if (courseNo ==3)
    {
        cout<<"";
    }
    else if (courseNo ==2)
    {
         cout<<"";
    }
    else{
          cout<<"'Error'  Specify in course Range between 4 to 2 course ";
        }
    
   
	return 0;
}
after i defined my first if statement to check if user enter 4 courses and again towards the of my code the remain remaining else if condition, inside my first if statement i defined another elsfe ladder but giving error whenever i try to end it with else. please help
Lline 43 and 64 - there shouldn't be semi-colons at the end of these lines for the the if and if else conditions.
Thanks soo much to Wildblue i finally figure it out
Topic archived. No new replies allowed.