PLZ need help with my homework ....:(

i need to do this program and i am stuck .....so if someone who knows how to do it plz take 5 minutes and help me , i would be really grateful for u help .


PROGRAM:
Write a program that will allow the evaluation of students. The program requires the user enter the number of students that we want to evaluate. For each student the user enters the effectiveness of student assignments, homework assignments, progress tests and three mid-term exams (for each) in the subject Programming I. Based on the obtained performance program calculates whether the student passed the exam with the help of ongoing work. If the exam is completed, the program displays student performance and assessment by the student reached.
Last edited on
The program requires the user enter the number of students that we want to evaluate.


Can you do this bit?
yes
Why don't you show us your code and we'll progress further in your homework after that?
#include <iostream>
using namespace std;


int main()
{
int stevilo;





cout<<"vnesi število doseženih točk pri vajah:"<<endl;
cin >> stevilo;

cout<<"vnesi število doseženih točk pri domačih nalogah"<<endl;
cin >> stevilo;

cout<<"Vnesi število doseženih točk pri izpitih"<<endl;
cin >> stevilo;


cout<<"Vnesi število doseženih točk pri prvem vmesnem izpitu"<<endl;
cin >> stevilo;

cout<<"Vnesi število doseženih točk pri drugem vmesnem izpitu"<<endl;
cin >> stevilo;

cout<<"Vnesi število doseženih točk pri tretjem vmesnem izpitu"<<endl;
cin >> stevilo;

if (stevilo < 50)
cout<<"5 ni opravil izpita"<<endl;
if (stevilo >= 50 && stevilo < 60)
cout<<"6 izpit je opravil"<<endl;

if (stevilo >= 60 && stevilo < 70)
cout<<"7 izpit je opravil"<<endl;
if (stevilo >= 70 && stevilo < 80)
cout<<"8 izpit je pravil"<<endl;
if (stevilo >= 80 && stevilo < 90)
cout<<"9 izpit je opravil"<<endl;
if (stevilo >= 90 && stevilo < 100)
cout<<"10 izpit je opravil"<<endl;






return 0;
}
dont judge i am a beginner at this kind of stuff
You are repeatedly assigning the input to the variable stevilo, so this variable will only have the answer to the last question.

You need a data structure to hold all this info for each student.

Please edit your post so that it uses code tags - the <> button on the right

If you move this thread to the beginners page, you will get more replies. I guess not many people lok at the Unix page.......
Last edited on
ty
Topic archived. No new replies allowed.