Homework 8.1
Attached Files:
- Timer.h(613 B)
- hw_8_1_template.cpp (2.255 KB)
Download hw_8_1_template.cpp and save it ashw_8_1_lastname.cpp (replace lastname with yourlast name).
Download Timer.h and move the file to the same folder as the CPPfile.
#include “Timer.h”start() //will start a stopwatch timerstop() //will stop the stopwatch timerexecutionTime() //returns a double value for duration (in milliseconds)
Create a txt file contains all numbers from 1 – 100,000 inrandom order and name it numbers100k.txt and
move the file to the same folder as the CPP file.
Modify the CPP file:
- Header comments
- Hello message
- Goodbye message
- Linear search definition (see notes for example)
Compile and run the completed program. Note the number
OR
OR