Question: In this lab you will write 3 C + + programs, that we will tailor for specific run times, 1 ) 3 0 seconds runtime

In this lab you will write 3 C++ programs, that we will tailor for specific run times,
1)30 seconds runtime
2)75 second runtime
3)120 second runtime
Using the "time" command you will evaluate the difference between running these in the forground and the background, answering the questions int the lab.
You can use the below sample code as a template, this one is for running at roughly 30 seconds, for the remaining 2 times, copy this code and increase the n value to increase the computational time.(this might take some trial and error)
#include
#include "math.h"
#include
using namespace std;
int main()
{
int n=1300;
float total=0;
int i=0;
int * array;
for(i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!