Loading
Home › Computer Science Help › array log file
Status: Completed

array log file

Date Posted: 24/11/2020
Category: Computer Science
Due Date: 24/11/2020
Instruction
For this project, read each line of the web log file as one string using the string class' getline function. Because this program needs to return any line requested by the user, you should put each line of the file into an array. It is much more efficient to read data from temporary memory than to read from the hard drive, so the objective is to only read from the file once. Once the data is loaded into the array, you can access the data in the array stored in memory as many times as the user needs it, without the significant overhead of reading from the file on the hard drive. Minimum Requirements: Create a function that performs these tasks: Read each line of the web log file into the array. This function must do error checking to ensure that the file is opened successfully. Otherwise it must provide a message like "file not available" to the user. Each line should then be pulled from the file using getline and stored in a container such that the first element of the container is the first line of the web log file. Because each element will hold an entire line from the file, the container should be declared with a string data type. For your array, use size 2990. Ask the user for a line number, and display that line from the array. Remember, the array indexes begin with 0, so if the user requests the first line, display the string in array position 0 (not position 1). You will need to do a little arithmetic to get the correct line to display. Put this in a loop so the user can request another line or quit.
Bidders
surrogatewriter 5 years, 10 months ago
Rated 9.31 earned 75264.37 around 2854 assignments.
Hello Dear, I have checked your instructions and I can deliver. Thanks
$150.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
drjim 5 years, 10 months ago
Rated 9.55 earned 24203.41 around 648 assignments.
Hello! I can work on this task asap. I can also help you with the whole class at a discount!
$150.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
HavardGraduateWriter 5 years, 10 months ago
Rated 9.42 earned 51369.88 around 1959 assignments.
Hello, I am well conversant with this subject and at a position of delivering the best results on time. Kindly consider my bid.
$50.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
committedwriter 5 years, 10 months ago
Rated 9.14 earned 89563.32 around 3017 assignments.
I am an expert in this subject with enormous experience kindly consider my bid as I will timely deliver quality work. Thank you.
$50.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
aggrey 5 years, 10 months ago
Rated 9.47 earned 33434.92 around 816 assignments.
Hello my friend
$100.00
  • Thank you. Please reupload the file.
    aggrey | Nov 24, 2020, 07:49 AM
  • is that good?
    User_30863 | Nov 24, 2020, 07:50 AM
  • Seen the file. Thanks
    aggrey | Nov 24, 2020, 07:52 AM
  • which language should I use here?
    aggrey | Nov 24, 2020, 07:58 AM
  • c++
    User_30863 | Nov 24, 2020, 07:58 AM
  • Hello friend. I'm done and uploaded it. Kindly check and release the funds. Thank you
    aggrey | Nov 25, 2020, 01:11 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}