Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

b. Why were these values considered important?

Answered: 1 week ago