Homework 81 Attached Files Timerh 613 B Hw81templatecpp 2255 Kb Download Hw81templatecpp S Q37233785

Homework 8.1

Attached Files:

  • File Timer.h(613 B)
  • Filehw_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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.