Posted: Fri Apr 13, 2012 5:06 am Post subject: i nid help urgently...pliz
i have been asked to write a c++ program that will summarise the results of 10 students,next to each name is written a 1 if the student passed or 2 of the student failed.
the program must analyze the results as follows:-
1.input each test result
2.count the number of each input
3.display a summary of the test results
4.if more than 8 students passed the exam print the message" Raise Tuition Fee".
Sponsor Sponsor
Zren
Posted: Fri Apr 13, 2012 6:32 am Post subject: RE:i nid help urgently...pliz
What have you tried so far?
Gadd
Posted: Sat Apr 14, 2012 1:56 pm Post subject: RE:i nid help urgently...pliz
remember
code:
#include <iostream>
//include your basic input output
using namespace std;
//last time I recall this is the namespace u should
// be using
int main ()
{
cout << "IM TEXT!"" << endl;
// or even
cout << "IM TEXT TOO!";
// endl; just helps push your text down and "end the line"
return 0; // this is important
}
This should help .. also to get information you can do something like this
code:
#include <iostream>
using namespace std;
int main ()
{
int x;
//remember if you don't give x a value
//it will be randomly generated!!
//the reason we dont give it a value here is
//because we are using CIN to set it.
cout << "enter the x value" << endl;
cin >> x;
}