Answer to Question #13350 in Complex Analysis for Naren

Question #13350
A(4,8,12) B(2,4,6) C(3,5,4) D(5,8,5) are four points: show that the lines AB and CD intersect???and also point of intersection
1
Expert's answer
2012-10-01T09:57:51-0400
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main () {
vector < int > answer;
srand(time(0));
for (int i = 0 ; i < 25 ; i++)
{
& answer.push_back(rand()%4);
}
cout<< "Please, give your answer for these questions(1,2,3 or 4 answer): \n";
int ok = 0;
for (int i = 0 ; i < 25 ; i++){
& int mark;
& cout<< "Quest number: "<< i + 1 << ':';
& cin>>mark;
& if (answer[i] == mark - 1) ok++;
}

if (ok < 15) cout<<"You failed your exam!\n The amount of right answers is: "<< ok <<endl;
else cout<<"YOU've done ok!\n The amount of right answers is: "<< ok <<endl;
cout<<"The right answers:\n";
for (int i = 0 ; i < 25 ; i++){
& cout<< "Answer "<<i+1 <<" : "<< answer[i] + 1<<endl;
}


system("pause");
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS