Question: Create a text file in notepad and save it somewhere that you will be able to find later. In the textfile, put the following numbers,

Create a text file in notepad and save it somewhere that you will be able to find later. In the textfile, put the following numbers,one on each line

98 100 58 70 75 80 85 90 60 65

Type in the following program and compile it. Add comments to the top, including your names and the date.

Important: Change the file path in your program to match your text file. Remember that you have to put double backslashes ( \"\\\\\" ) in your file path.

#include

#include

#include // includes ifstream and ofstream

using namespace std;

int main()

{

int total = 0;

int temp = 0;

// declare a handle

ifstream infile; // open only

//Open the file

infile.open(f:\\\\Towson Fall 2019\\\\testFile1.txt); //CHANGE THIS!

//outFile is associated with stuff

//prime read

infile >> temp;

while (infile)

{

total = total + temp;

infile >> temp;

}

cout the>

return 0;

}

  1. Why did you have to put double slashes in your file path?
  2. What kind of runtime error would you get if/when you mess up the file path?
  3. Submit your code and a screenshot of the run on the next page.
  • Remember: Submit code, not a picture of code
  • Remember: Submit only the window where the run occurs, not the whole screen.

Q24;

Digital Forensics Lab Design Document a lab configuration and a recommended set of tools.

1. To provide evidence of completion of the task, document the step by step (within reason) process followed to complete the task in a report including a set of screenshots.

I have autopsy, ftk imager lite, prodiscover just need a direction of how

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 Programming Questions!