From acc211312080fd97aa474d111e323f4a3d1098ad Mon Sep 17 00:00:00 2001 From: niteesh2268 <43788862+niteesh2268@users.noreply.github.com> Date: Sat, 5 Sep 2020 15:41:47 +0530 Subject: [PATCH 1/2] Add files via upload Assignment 1 Done --- Screening-Assignment/mnkr4844.cpp | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Screening-Assignment/mnkr4844.cpp diff --git a/Screening-Assignment/mnkr4844.cpp b/Screening-Assignment/mnkr4844.cpp new file mode 100644 index 0000000..17cffaf --- /dev/null +++ b/Screening-Assignment/mnkr4844.cpp @@ -0,0 +1,40 @@ +//mnkr4844@gmail.com +#include +#include +#include +#include +#include +#include +using namespace std; +int main() +{ +string lines[2000] ; +ifstream myfile("shakespeare.txt"); +int x=0; +string messageVar; + +time_t begin, end; +time(&begin); +while(!myfile.eof()) +{ + getline(myfile, lines[x], '\n'); + x++; +} +int random; +double total_length = 0; +for(int i=0;i<5;i++){ +random = rand() % 10 + 1; +cout< Date: Sat, 5 Sep 2020 15:50:03 +0530 Subject: [PATCH 2/2] Update mnkr4844.cpp --- Screening-Assignment/mnkr4844.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Screening-Assignment/mnkr4844.cpp b/Screening-Assignment/mnkr4844.cpp index 17cffaf..4fef674 100644 --- a/Screening-Assignment/mnkr4844.cpp +++ b/Screening-Assignment/mnkr4844.cpp @@ -35,6 +35,6 @@ time_t elapsed = end - begin; double typespeed = total_length/elapsed; cout <<"Time Taken :"<