Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 i nid help urgently...pliz
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MR OFFICE




PostPosted: 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
Sponsor
sponsor
Zren




PostPosted: Fri Apr 13, 2012 6:32 am   Post subject: RE:i nid help urgently...pliz

What have you tried so far?
Gadd




PostPosted: 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;
}



GL! also ask yuor teacher for help.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: