Section 7.6 described an arrangement where each item had a pointer to the user whohad checked out the item. This makes it difficult to find out the items that a particularuser checked out. To solve this problem, have an array of strings user_names and aparallel array loaned_items. loaned_items[i] points to an array of char* pointers, each ofwhich is a name of an item that the ith user checked out. If the ith user didnt checkout any items, then loaned_items[i] is NULL. Draw a picture of this arrangement.
Day 5 fprintfThis function is used to format output anything written in single parentheses that becomes a string of text is a string value, or a numerical value see picture below to see the syntax). Example: >> y=input('Enter a number') Enter a number Or >> z = input('Enter Text:','s') Enter Text: Syntax:fprintf(format_string, variables) if you want to use special characters in the string, put ‘/’ In class exercises: Number 3: >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number x =  Y =  >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number[0 pi/8 pi/6 pi/4 pi/2] x = 0 0.3927 0.5236 0.7854 1.5708 Y = 1.0e+15 * 0.0000 0.0000 0.0000 4.5036 0.0000 2) f=@(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) t=input(‘Please input a vector of values’ ); y=f(x) display(x) display(y) the thing that makes a function file a function is the word ‘function’ at the start run button will not work for a function file. You have to put inputs Exercise: Open a new function from the drop down menu function [ y ] = Cube_root( x ) %UNTITLED7 Summary of this function goes here % Detailed explanation goes here y=x.^(1/3); Have to name the file Cube_root as well End (what you input is in black) In the command window: >> z=Cube_root([8 27 84]) z = 2.0000