62 533
Assignments Done
98,8%
Successfully Done
In June 2018

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
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions