Question
Project Description

Redbox® is a nationwide network of kiosks where customers can rent DVDs, Blu-Ray discs, and video games. For this project, we will implement a program named "YellowBox" that emulates a Redbox® kiosk (to a very limited degree) using arrays, structures, and file I/O. We have given you a skeleton source code file named "yellowbox.c"; you may use this as a starting point for your project (for example, a fully-working main() function is already provided for you), or re-implement everything on your own.

Follow the steps below to complete the project assignment. Two sample data files have been provided on Blackboard for you to use while testing your code.

1. Start by defining some useful data types and global variables:

1. Define a struct to represent a particular movie. A movie struct contains a string that holds the movie's title, and an integer that tracks the number of copies that are currently in stock. For example, a variable of this type might record that the kiosk currently contains 3 copies of "Braveheart".

2. Create an array to hold your movie structures. You may assume that our kiosk will track no more than 50 distinct movie titles.

3. Create a global integer variable to track the total number of distinct movie titles that the kiosk knows about (i.e., has seen at some point through a transaction request). This variable's value also indicates the total number of occupied positions in your movie array. Initialize this variable to 0.

4. Create a global integer variable to track the total number of discs that are currently held in the kiosk. Initialize this variable to 0.

2. Complete the findMovie() helper function, which locates a particular movie title in your array:

int findMovie (char *title)

If the kiosk is currently empty, this function returns -1.


Otherwise, use a loop to examine each movie structure in your array of movies. If the current movie's title matches the title you are searching for (use the strcmp() function to compare two strings), return the index of the matching movie structure from your array. If you complete the loop without finding a match, return -1 to indicate that the title is not present.

3. Complete the printInventory() function, which does not take any arguments and does not return any value. If the movie array is empty or if the kiosk does not currently contain any discs, this function should print a message stating that the kiosk is currently empty. Otherwise, the function should print a neatly formatted list of movie titles and quantities, with appropriate column headers. This list should ONLY contain movie titles that currently have at least 1 copy in stock.

4. Complete the addMovie() function:

int addMovie (char *title)

If the kiosk is currently full (the total number of discs in stock is greater than or equal to the maximum disc capacity of the kiosk), this function should return 0 to indicate failure.

Otherwise:

1. Call findMovie() to see if the new title already exists in the movie array.

2. If the new movie already has a record in the movie array, increment both the number of copies of that movie and the total number of discs in stock.

3. Otherwise, create a new struct for the new movie. Use the strcpy() function to set the new movie record's title field, and set its number of copies to 1. Then add it to the next available position in your array of movies, and increment both the number of titles seen and the total number of discs in stock.

4. Finally, return 1 to indicate that the title has been successfully added to the kiosk's inventory.

5. Complete the rentMovie() function:

int rentMovie (char *title)

If the kiosk is empty, return 0 to indicate failure.

Otherwise, call findMovie() to determine whether the current movie is currently in stock. If the movie is not available (either it isn't present in the array or there are no copies in stock right now), return 0 to indicate failure.

If there is at least 1 copy of the movie in stock, subtract 1 from the number of copies of that title. Subtract 1 from the total number of discs in stock, and return 1 to indicate a successful

rental.

6. Complete the addStock() function. This function reads a text file to initialize the array of movies. It has the following header:

int addStock (char *filename)

1. Create a FILE pointer and call fopen() to open the specified file for reading. If fopen() fails, and the FILE pointer is NULL, print an appropriate error message and return 0 to indicate failure.

2. Otherwise, set up a loop to read and process the contents of the data file. Your loop should execute while ALL three of the following conditions are true:

1. There are still available slots in the movie array

2. The kiosk is not completely full (the current number of discs in stock is still below the kiosk's maximum capacity)

3. You have not yet reached the end of the data file (meaning fscanf() has not returned the value EOF).

The data file for the initial kiosk inventory contains multiple lines in the following format: the movie title, followed by a single space, followed by a positive integer indicating the initial quantity of that title. Note that a movie title may contain multiple words, so the complete line may have multiple spaces in it. Your best bet is to use the "special string" format specifier to read the title as any sequence of characters that excludes digits and the newline character.

3. Inside your loop:

1. Due to the special string format specifier above, your movie title string probably contains an extra trailing space. Use the trim() function that we provided in the skeleton code to remove this trailing space from your title; otherwise, other functions may not work properly or as expected.

2. Use findMovie() to see if this title already exists in your array. If it does, add new copies of this title to the existing record (and increment the total number of discs in stock) until you reach the capacity of the kiosk or all of the new copies have been added.

If the title is new, create a new struct for this movie. Use strcpy() to set its title, and initialize its quantity to 0. Update the quantity of this title (and increment the total number of discs in stock) until you reach the capacity of the kiosk or all of the new copies have been added. Then add your new movie struct to your array and increment the number of titles seen.

4. Finally, use fclose() to close your file pointer. Then return 1 to indicate success.


7. Finally, complete the processTransactions() function:

int processTransactions (char *transactionFile)

This function will attempt to perform a series of disc rental and return operations. It will return the number of successful operations, or -1 if a serious error occurred in the process.

1. Start by creating a FILE pointer and using fopen() to open the transaction file for reading. If you are unable to open the file for reading (i.e., the FILE pointer is NULL), print an appropriate error message and return -1 to signal failure.

2. Otherwise, create an integer variable to track the number of successful operations, initialized to 0.

3. Set up a loop to read the transaction file, one line at a time, until you reach the end of the file. Each line of the file begins with the word "rent" or "return" (in lowercase), followed by a single space, followed by a movie title. Use fscanf() to read the operation and the movie title into two separate string variables ("special strings" may be helpful here as well).

If the operation is "rent", call your rentMovie() function. Otherwise, if it is "return", call addMovie(). Otherwise, print an error message of the form "Unrecognized command".

If the operation is successful, print an appropriate message and update the number of successful operations. Otherwise, print an appropriate error message.

4. When the loop ends, use fclose() to close the file pointer. Then return the number of successful operations.

8. If you did not use the starting program skeleton that we provided, implement your own
main() function to call the functions that you defined previously. At a minimum, you must:

1. Print the initial kiosk inventory

2. Get the name of a stock file from the user, and call addStock() to fill the kiosk

3. If addStock() is successful:

1. Print the kiosk's new (starting) inventory

2. Get the name of a transaction file from the user, and call processTransactions(). If processTransactions() is successful, print the number of successful transactions and then print the kiosk's final inventory. Otherwise, print an appropriate error message.

Sample Program Output

Program output is shown in italics; user input is shown in boldface.

Welcome to YellowBox!

This kiosk is currently empty.

Enter the name of the initial stock file: stock1.txt

Current kiosk inventory:

Movie Title Copies
----------- ------
Logan 1
Star Wars: Rogue One 5
Monster Trucks 6
Power Rangers 5
The Fate of the Furious 6
Transformers 4
Thor 2
The Smurfs 1

Enter the name of the transaction file: transactions1.txt

Sorry! Dr. Strange cannot be rented at this time! Sorry! Avengers cannot be rented at this time!
Thank you! The Fate of the Furious has been added to our inventory. Thank you! Beauty and the Beast has been added to our inventory.
Successfully rented The Smurfs. Enjoy your movie!
Thank you! Star Wars: Rogue One has been added to our inventory. Successfully rented Power Rangers. Enjoy your movie!
Sorry! Sing cannot be rented at this time!
Sorry! Jack Reacher cannot be rented at this time!
Thank you! Star Wars: Rogue One has been added to our inventory. Thank you! The Fate of the Furious has been added to our inventory. Thank you! Sing has been added to our inventory.
Successfully rented Sing. Enjoy your movie! Performed 9 successful transaction(s).
Current kiosk inventory:

Movie Title Copies
----------- ------
Logan 1
Star Wars: Rogue One 5
Monster Trucks 6
Power Rangers 4
The Fate of the Furious 6
Transformers 4
Thor 2
Beauty and the Beast 1
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

#include <stdio.h>
#include <string.h>

/* The following constant definitions may be helpful */
#define MAX_MOVIE_TITLES 50 /* Max # of unique titles this kiosk can hold */
#define MAX_TITLE_LENGTH 50 /* Max chars in a movie title, not counting \0 */
#define MAX_DISC_CAPACITY 50 /* How many DVDs can this machine hold in all? */

struct movie{
    char name[100];
    int numCopies;
};

int numTitlesSeen = 0;
int numOfDiscs = 0;

struct movie movies[MAX_MOVIE_TITLES];


void trim(char * string)
{
    /* Remove any trailing spaces from a string */
    char * temp = string;
   
    /* move to last character of string */
    while (*temp != '\0')
    {
       temp++;
    }
   
    temp--; /* move to very last non-NULL character */
   
    while (*temp == ' ' && temp != string)
    {
       *temp = '\0'; /* replace trailing spaces with terminator */
       temp--;
    }
   
}

/* Add your code to complete the following functions */

int findMovie (char * title)
{
    int index = -1;
    if(numOfDiscs <= 0){
       return -1;
    }else{
       for(int i=0; i<numTitlesSeen; i++){
            if(strcmp(movies[i].name, title) == 0){
                index = i;
                break;
            }
       }
    }
    return index; /* CHANGE OR MODIFY THIS LINE */
}
This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
Solution.c
Purchase Solution
$38.00
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Computer Science Tutors 529 tutors matched
Ionut
(ionut)
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (5,654+ sessions)
2 hours avg response
Leo
(Leo)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (5,652+ sessions)
2 hours avg response
Pranay
(math1983)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (5,512+ sessions)
1 hour avg response

Similar Homework Solutions

8.1.0PHP Version356msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (191ms)time
    • Application (165ms)time
    • 1 x Booting (53.63%)
      191ms
      1 x Application (46.37%)
      165ms
      • Illuminate\Routing\Events\Routing (960μs)
      • Illuminate\Routing\Events\RouteMatched (433μs)
      • Illuminate\Foundation\Events\LocaleUpdated (3.87ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (177μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (166μs)
      • Illuminate\Database\Events\ConnectionEstablished (1.07ms)
      • Illuminate\Database\Events\StatementPrepared (10.45ms)
      • Illuminate\Database\Events\QueryExecuted (1.71ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (122μs)
      • eloquent.booting: App\Models\Subject (73μs)
      • eloquent.booted: App\Models\Subject (53μs)
      • Illuminate\Database\Events\StatementPrepared (1.36ms)
      • Illuminate\Database\Events\QueryExecuted (1.27ms)
      • eloquent.retrieved: App\Models\Subject (98μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (85μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (38μs)
      • Illuminate\Database\Events\StatementPrepared (745μs)
      • Illuminate\Database\Events\QueryExecuted (3.08ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (102μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (16μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.booting: App\Models\SubjectCat (946μs)
      • eloquent.booted: App\Models\SubjectCat (48μs)
      • Illuminate\Database\Events\StatementPrepared (681μs)
      • Illuminate\Database\Events\QueryExecuted (929μs)
      • eloquent.retrieved: App\Models\SubjectCat (98μs)
      • Illuminate\Cache\Events\CacheHit (11.86ms)
      • Illuminate\Cache\Events\CacheMissed (216μs)
      • Illuminate\Database\Events\StatementPrepared (887μs)
      • Illuminate\Database\Events\QueryExecuted (32.53ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (86μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (16μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • Illuminate\Database\Events\StatementPrepared (778μs)
      • Illuminate\Database\Events\QueryExecuted (1.39ms)
      • eloquent.retrieved: App\Models\Subject (78μs)
      • Illuminate\Cache\Events\KeyWritten (823μs)
      • Illuminate\Database\Events\StatementPrepared (1.71ms)
      • Illuminate\Database\Events\QueryExecuted (1.1ms)
      • Illuminate\Database\Events\StatementPrepared (667μs)
      • Illuminate\Database\Events\QueryExecuted (944μs)
      • Illuminate\Database\Events\StatementPrepared (683μs)
      • Illuminate\Database\Events\QueryExecuted (1.03ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (55μs)
      • Illuminate\Cache\Events\CacheHit (469μs)
      • creating: homework.show (252μs)
      • composing: homework.show (85μs)
      • creating: components.breadcrumbs (212μs)
      • composing: components.breadcrumbs (94μs)
      • Illuminate\Database\Events\StatementPrepared (1.4ms)
      • Illuminate\Database\Events\QueryExecuted (1.17ms)
      • eloquent.retrieved: App\Models\SubjectCat (88μs)
      • Illuminate\Cache\Events\CacheHit (4.37ms)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (239μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (260μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (227μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (224μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (253μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (250μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (227μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (265μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (909μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (292μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (245μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (1.11ms)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (267μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (247μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (374μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • creating: site.layouts.app (537μs)
      • composing: site.layouts.app (25μs)
      • creating: components.canonical (472μs)
      • composing: components.canonical (104μs)
      • creating: components.open-graph (203μs)
      • composing: components.open-graph (75μs)
      • creating: site.headers.header (308μs)
      • composing: site.headers.header (76μs)
      • Illuminate\Cache\Events\CacheHit (1.86ms)
      • creating: components.footer (90μs)
      • composing: components.footer (100μs)
      • Illuminate\Cache\Events\CacheHit (992μs)
      • Illuminate\Cache\Events\CacheHit (311μs)
      • Illuminate\Cache\Events\CacheHit (267μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (307μs)
      • Illuminate\Cache\Events\CacheHit (340μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (247μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • creating: components.forms.contact-us (301μs)
      • composing: components.forms.contact-us (168μs)
      • creating: components.forms.get-started (203μs)
      • composing: components.forms.get-started (82μs)
      • creating: components.forms.free-tool-download (132μs)
      • composing: components.forms.free-tool-download (66μs)
      • creating: components.forms.claim-free-worksheet (126μs)
      • composing: components.forms.claim-free-worksheet (67μs)
      • creating: components.forms.tutor-subscription-waitlist (128μs)
      • composing: components.forms.tutor-subscription-waitlist (66μs)
      • creating: components.forms.tutor-subscription-join (125μs)
      • composing: components.forms.tutor-subscription-join (64μs)
      • creating: components.forms.tutor-support (122μs)
      • composing: components.forms.tutor-support (66μs)
      • 321 x Illuminate\Cache\Events\CacheHit (22.74%)
        80.91ms
        10 x Illuminate\Database\Events\QueryExecuted (12.69%)
        45.15ms
        10 x Illuminate\Database\Events\StatementPrepared (5.45%)
        19.37ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (1.09%)
        3.87ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.3%)
        1.07ms
        1 x Illuminate\Routing\Events\Routing (0.27%)
        960μs
        1 x eloquent.booting: App\Models\SubjectCat (0.27%)
        946μs
        1 x Illuminate\Cache\Events\KeyWritten (0.23%)
        823μs
        1 x creating: site.layouts.app (0.15%)
        537μs
        1 x creating: components.canonical (0.13%)
        472μs
        1 x Illuminate\Routing\Events\RouteMatched (0.12%)
        433μs
        1 x creating: site.headers.header (0.09%)
        308μs
        1 x creating: components.forms.contact-us (0.08%)
        301μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.07%)
        252μs
        1 x creating: homework.show (0.07%)
        252μs
        1 x Illuminate\Cache\Events\CacheMissed (0.06%)
        216μs
        1 x creating: components.breadcrumbs (0.06%)
        212μs
        8 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.06%)
        203μs
        1 x creating: components.open-graph (0.06%)
        203μs
        1 x creating: components.forms.get-started (0.06%)
        203μs
        2 x eloquent.retrieved: App\Models\SubjectCat (0.05%)
        186μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        177μs
        2 x eloquent.retrieved: App\Models\Subject (0.05%)
        176μs
        1 x composing: components.forms.contact-us (0.05%)
        168μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        166μs
        1 x creating: components.forms.free-tool-download (0.04%)
        132μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.04%)
        128μs
        1 x creating: components.forms.claim-free-worksheet (0.04%)
        126μs
        1 x creating: components.forms.tutor-subscription-join (0.04%)
        125μs
        1 x creating: components.forms.tutor-support (0.03%)
        122μs
        1 x composing: components.canonical (0.03%)
        104μs
        1 x composing: components.footer (0.03%)
        100μs
        1 x composing: components.breadcrumbs (0.03%)
        94μs
        1 x creating: components.footer (0.03%)
        90μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.02%)
        85μs
        1 x composing: homework.show (0.02%)
        85μs
        1 x composing: components.forms.get-started (0.02%)
        82μs
        1 x composing: site.headers.header (0.02%)
        76μs
        1 x composing: components.open-graph (0.02%)
        75μs
        1 x eloquent.booting: App\Models\Subject (0.02%)
        73μs
        1 x composing: components.forms.claim-free-worksheet (0.02%)
        67μs
        1 x composing: components.forms.free-tool-download (0.02%)
        66μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.02%)
        66μs
        1 x composing: components.forms.tutor-support (0.02%)
        66μs
        1 x composing: components.forms.tutor-subscription-join (0.02%)
        64μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        53μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        48μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        38μs
        1 x composing: site.layouts.app (0.01%)
        25μs
      14 templates were rendered
      • 1x homework.showshow.blade.phpblade
      • 1x components.breadcrumbsbreadcrumbs.blade.phpblade
      • 1x site.layouts.appapp.blade.phpblade
      • 1x components.canonicalcanonical.blade.phpblade
      • 1x components.open-graphopen-graph.blade.phpblade
      • 1x site.headers.headerheader.blade.phpblade
      • 1x components.footerfooter.blade.phpblade
      • 1x components.forms.contact-uscontact-us.blade.phpblade
      • 1x components.forms.get-startedget-started.blade.phpblade
      • 1x components.forms.free-tool-downloadfree-tool-download.blade.phpblade
      • 1x components.forms.claim-free-worksheetclaim-free-worksheet.blade.phpblade
      • 1x components.forms.tutor-subscription-waitlisttutor-subscription-waitlist.blade.phpblade
      • 1x components.forms.tutor-subscription-jointutor-subscription-join.blade.phpblade
      • 1x components.forms.tutor-supporttutor-support.blade.phpblade
      uri
      GET college-homework-library/{category}/{subject}/{id}
      middleware
      web, utm.parameters
      controller
      App\Http\Controllers\HomeworkLibraryController@show
      namespace
      where
      as
      homework.show
      file
      app/Http/Controllers/HomeworkLibraryController.php:79-176
      10 statements were executed, 4 of which were duplicates, 6 unique. Show only duplicated55.89ms
      • Connection Establishedtwenty4_siteHomeworkLibraryController.php#91
        Backtrace
        • 13. app/Http/Controllers/HomeworkLibraryController.php:91
        • 14. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 15. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 16. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary` where `status` = 'published' and `price` > 0 and `solutionslibrary`.`id` = '40799' limit 1
        11.36mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 40799
        Backtrace
        • 16. app/Http/Controllers/HomeworkLibraryController.php:97
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 18. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 19. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 20. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subjects` where `subjects`.`id` in (16)
        1.41mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` in (40799)
        3.3mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        990μstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 26. app/Http/Controllers/HomeworkLibraryController.php:105
        • 27. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 28. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 29. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • select * from `solutionslibrary` where `id` <> 40799 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        32.65mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 40799
        • 1: 16
        • 2: published
        • 3: 0
        Backtrace
        • 14. app/Repositories/HomeworkLibraryRepository.php:30
        • 15. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 16. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 18. app/Repositories/HomeworkLibraryRepository.php:39
        • 19. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `subjects` where `subjects`.`id` in (16)
        1.51mstwenty4_siteHomeworkLibraryRepository.php#30
        Backtrace
        • 19. app/Repositories/HomeworkLibraryRepository.php:30
        • 20. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 21. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 23. app/Repositories/HomeworkLibraryRepository.php:39
        • 24. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 40799 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.21mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 40799
        • 1: question
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:58
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 40799 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.07mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 40799
        • 1: teaser
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:69
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 40799 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.09mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 40799
        • 1: solution
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:80
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        1.3mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 32. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • 33. vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • 34. vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69
        • 35. vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      8HomeworkLibraryFile.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\Subject
      2Subject.php
      App\Models\SubjectCat
      2SubjectCat.php
          _token
          ZiiD2xNdgT0MnM8t2gwtqDSEzJdH4tLZ1ZDplalp
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/40799
          _previous
          array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Scienc...
          _flash
          array:2 [ "old" => [] "new" => [] ]
          PHPDEBUGBAR_STACK_DATA
          []
          path_info
          /college-homework-library/Computer-Science/C-Family-Programming/40799
          status_code
          200
          
          status_text
          OK
          format
          html
          content_type
          text/html; charset=UTF-8
          request_query
          []
          
          request_request
          []
          
          request_headers
          0 of 0
          array:21 [ "priority" => array:1 [ 0 => "u=0, i" ] "accept-encoding" => array:1 [ 0 => "gzip, deflate, br, zstd" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "cache-control" => array:1 [ 0 => "no-cache" ] "pragma" => array:1 [ 0 => "no-cache" ] "x-amzn-trace-id" => array:1 [ 0 => "Root=1-680dee73-0bc9edd330a51a9017a689bf" ] "host" => array:1 [ 0 => "staging.dev.24houranswers.com" ] "x-forwarded-port" => array:1 [ 0 => "443" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "x-forwarded-for" => array:1 [ 0 => "18.218.209.109" ] "content-length" => array:1 [ 0 => "" ] "content-type" => array:1 [ 0 => "" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Sun, 27 Apr 2025 08:44:35 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImdTYUJnUHdGVks3MmNhNVRwNzl0ZEE9PSIsInZhbHVlIjoiNWZoa24vYmdTOEk4Qk1HenVYYldmWkZlZDZSTkFvc1lsd3h2ZTVzS1lGOW56bUI1TFQ1OGZkL3oxQUZUekRBWUk0Y0lBaUZoa2Z3Qm5hTGlpeEVXY1dCeGUxWUJIZDcrNGFhMDZPNklERGlaQkQ0SWZ6VmRYSW1GTGhRbDE1VEIiLCJtYWMiOiI2NmY1NjY2MGU2NmMyNWE2YjBmZWExY2FhN2E2NGRjNjMxM2E0MzNlNzU4M2RlOGVlZDI4YmY4MDg0MGFkYzljIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:44:35 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6ImdTYUJnUHdGVks3MmNhNVRwNzl0ZEE9PSIsInZhbHVlIjoiNWZoa24vYmdTOEk4Qk1HenVYYldmWkZlZDZSTkFvc1lsd3h2ZTVzS1lGOW56bUI1TFQ1OGZkL3oxQUZUekRBWUk0Y0lBa" 1 => "24houranswers_session=eyJpdiI6IlF0c0VEcTI1WjRZUkxEZzIxQkFPNXc9PSIsInZhbHVlIjoidFdyanFxWHFkc3BsS0o2QmU1eE5CQVA4Zy9WeFhhWDU1c0ZDeGhMWnlkWGhQMDhaUG9SWk8va01vd2F0TklNL2N2MGdCQnA2MnQrNFczaUFBenVaTi9OL3EwY2FxZnl5NEp2ZFk2dC9iakRncWUrdG5yYVROdi9vVkNnY2VQU20iLCJtYWMiOiI0MjZhMWZiNzM4NGRmODQzZDM3ODg3MWU3ZjY4MzA5MmRmNTlkNmU5ZTc3NGJlMTViMjM1OTg3NzJlOGJiNjA4IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:44:35 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IlF0c0VEcTI1WjRZUkxEZzIxQkFPNXc9PSIsInZhbHVlIjoidFdyanFxWHFkc3BsS0o2QmU1eE5CQVA4Zy9WeFhhWDU1c0ZDeGhMWnlkWGhQMDhaUG9SWk8va01vd2F0Tk" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImdTYUJnUHdGVks3MmNhNVRwNzl0ZEE9PSIsInZhbHVlIjoiNWZoa24vYmdTOEk4Qk1HenVYYldmWkZlZDZSTkFvc1lsd3h2ZTVzS1lGOW56bUI1TFQ1OGZkL3oxQUZUekRBWUk0Y0lBaUZoa2Z3Qm5hTGlpeEVXY1dCeGUxWUJIZDcrNGFhMDZPNklERGlaQkQ0SWZ6VmRYSW1GTGhRbDE1VEIiLCJtYWMiOiI2NmY1NjY2MGU2NmMyNWE2YjBmZWExY2FhN2E2NGRjNjMxM2E0MzNlNzU4M2RlOGVlZDI4YmY4MDg0MGFkYzljIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:44:35 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6ImdTYUJnUHdGVks3MmNhNVRwNzl0ZEE9PSIsInZhbHVlIjoiNWZoa24vYmdTOEk4Qk1HenVYYldmWkZlZDZSTkFvc1lsd3h2ZTVzS1lGOW56bUI1TFQ1OGZkL3oxQUZUekRBWUk0Y0lBa" 1 => "24houranswers_session=eyJpdiI6IlF0c0VEcTI1WjRZUkxEZzIxQkFPNXc9PSIsInZhbHVlIjoidFdyanFxWHFkc3BsS0o2QmU1eE5CQVA4Zy9WeFhhWDU1c0ZDeGhMWnlkWGhQMDhaUG9SWk8va01vd2F0TklNL2N2MGdCQnA2MnQrNFczaUFBenVaTi9OL3EwY2FxZnl5NEp2ZFk2dC9iakRncWUrdG5yYVROdi9vVkNnY2VQU20iLCJtYWMiOiI0MjZhMWZiNzM4NGRmODQzZDM3ODg3MWU3ZjY4MzA5MmRmNTlkNmU5ZTc3NGJlMTViMjM1OTg3NzJlOGJiNjA4IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:44:35 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IlF0c0VEcTI1WjRZUkxEZzIxQkFPNXc9PSIsInZhbHVlIjoidFdyanFxWHFkc3BsS0o2QmU1eE5CQVA4Zy9WeFhhWDU1c0ZDeGhMWnlkWGhQMDhaUG9SWk8va01vd2F0Tk" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "ZiiD2xNdgT0MnM8t2gwtqDSEzJdH4tLZ1ZDplalp" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/40799" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/40799" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]