Question: I. Section 1 : SSP 0 3 ( 2 0 Points ) 1 . Notes: 1 . Use the following code to get the current
I. Section : SSP Points
Notes:
Use the following code to get the current day: $currentday dateN;
For the purpose of this assignment, the numbers associated with the day of the week
will be
The school apollo server, and likely your local server, have the timezone set to UCT
which is hours USA Central Time zone I do not want you losing time resetting this
so just be aware of this setting when doing your assignment.
Functions:
Folder: create a folder entitled functions in your root PHP directory.
File: create a file called functionssspphp in that folder.
fntableOpen: Create a function entitled fntableOpen This function will have one
paramater for the tables caption. It will contain static code to open a table, apply your
CSS formatting classes and create the header columns. Your header columns will be
the same as what you did in SSP which were Day, Details, and Time. Note, when
populating the day column with the functions below you will use the string eg
"Monday" instead of the number eg
fntableClose: Create a function entitled fntableClose THis function will not have
any paramaters. It will contain static code for a table closing tag followed by twoline
breaks eg
fntableRowCurrent: Create a function entitled fntableRowCurrent This function
will have three paramaters for the three different columns. You will have the
CS Week Assignment
approrpriate code to display these parameters in a new row. Also, it will have CSS
coding to highlight the row. By that I mean change this rows background color to yellow
eg #FFFF Sorry in advance if that does not align with your pages color scheme. I
need something standard for grading purposes.
fntableRow: Create a function entitled fntableRow This will be the same as
fntableRowCurrent except you will NOT have the special highlighting.
fndayOfWeek: Create a function entitled fndayOfWeek This will have one
parameter for the numerical day of the week. You will return the actual string day of the
week. For example, if you get a it will be "Monday", it will be "Tuesday", etc.
Reference the table above! I expect you to use an if staement with a else if for this.
fndayDetails: Create a function entitled fndayDetails Use a switch statement,
create details about your CS study goals for eadh day of the week. The function will
take one parameter which is the numerical day of the week. For this assignment, you
must dedicate at least four days to the course with a certain amount of study time for
each day.
fndayTime: Create a function entitled fndayTime Using an if elseif statement,
write code to give the amount of time you will study on CS for days of the week.
For two of your four days, the study time will be the same. The other two must be
unique. For the ones with the same day, you must use an OR the logical operator.
Loops:
Folder: Create folder in your root directly entitled SSP
File: Create a copy of your SSPphp file and name it SSP Save it in the SSP
folder.
Navigation: Update your navigation to include the SSP page on your SSPphp
Content: Remove the include dymanic content from your body. Where it was in your
SSPphp file you will be entering PHP information for the following loops.
For Loop: Create a table with a for loop for each day of the week. Your table should
start on Monday and go to Sunday. Your caption should be CS: Weekly Planner"
where will be your actual name. The tables content and syntax should be done with the
functions minus the loop syntax If the rows day is the current day than use
fntableRowCurrent for the day rows. Otherwise, you would use fntableRow
While Loop: Create a table with a while loop for the weekdays only. A weekday is
Monday to Friday. Your caption should be CS: Weekday Planner" where will be
your actual name. The tables content and syntax should be done with the functions
minus the loop syntax If the rows day is the current day than use
fntableRowCurrent for the day rows. Otherwise, you would use fntableRow
DoWhile Loop: Create a table with a dowhile loop that starts from today and ends
on Sunday. Your caption should be CS: ToDo Planner" where will be your actual
name.
Note: this table will end up being dynamic in that the number of rows will differ from day to
day. If it's Sunday you should still see a row for Sunday.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
