Write a function called switch_data that takes as a paramete…

Write a function called switch_data that takes as a parameter a pointer to a file containing a label followed by a sequence of integers and that prints to the console the same information with each successive pair of integers switched in order. For example, suppose that a FILE* called data contains the following tokens: Jan 1 2 3 4 5 6 Here the label is Jan. The label will always be a single word less than 15 characters long that appears at the beginning. After the label, we have a series of six integers. If we make the following call: switch_data(data); the function should produce the following output: Jan 2 1 4 3 6 5 Notice that the first pair of integers (1, 2) has been switched (2, 1), and the second pair of integers (3, 4) has been switched (4, 3), and so on. This first example involved sequential integers to make the switching more obvious, but this won’t always be the case. You also shouldn’t assume that you have an even number of integers. If there is an odd number of integers, then the final value should not be moved. For example, if the FILE* had instead contained these tokens: Feb 38 14 79 4 -3 then the function would have produced the following output: Feb 14 38 4 79 -3 There will always be a one-word label, but the list of integers might be empty, in which case the function simply prints the label on a line by itself. Your function should produce a complete line of output. In other words, if it is called n times, it will produce n lines of output. You may assume that the input is legal (a one-word label followed by 0 or more integer values). You may not construct any arrays to help you solve this problem. 

Define a new type called Rectangle that can be used for stor…

Define a new type called Rectangle that can be used for storing all the information necessary to be able to draw a rectangle at a particular x, y location of a particular width and height (all whole numbers). The x, y refer to the position of the upper left corner of the rectangle. Assume that x is 0 at the top and grows as it goes down. Assume that y is 0 on the left and grows as as it goes right. The user should be able to construct a Rectangle located at an x of 10, a y of 17, 100 wide and 50 tall by writing: Rectangle rect = {10, 17, 100, 50}. Write a function called contains that takes two pointers to Rectangles as parameters and returns true if the second rectangle is entirely contained inside the first and false otherwise. You can assume both passed in Rectangles will be valid. That means they will have x, y coordinates of 0 or greater and widths and heights of 0 or greater. Rectangle big = {10, 25, 100, 100}; Rectangle small = {30, 25, 50, 10}; bool fits = contains(&big, &small); After the above call fits would store true because the small’s left side starts after big’s (30 vs 10), small’s right side ends before big’s (80 vs 110), small’s top starts the same place as big’s (25 vs 25) and small’s bottom edge ends before big’s (35 vs 125) Rectangle bigish {10, 25, 50, 50}; Rectangle smallish {30, 25, 50, 10}; bool fits2 = contains(&bigish, &smallish); After the above call fits2 would store false because the left side of bigish occurs before the left side of smallish but the right side of bigish also occurs before the right side of smallish.

Despite the many impressive components of our immune system,…

Despite the many impressive components of our immune system, pathogens have evolved mechanisms that allow them to avoid, survive, or otherwise “get around” our immune response. Identify an example of how pathogens evade our immune response. Although you do not need to name the specific pathogen(s), do briefly discuss what the pathogen does that helps it in establishing an infection. Please identify and describe in a short paragraph.