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;
}
- Why did you have to put double slashes in your file path?
- What kind of runtime error would you get if/when you mess up the file path?
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started