From Computer Science Wiki
|
|
Line 19: |
Line 19: |
| ** code the following PHP constructions: | | ** code the following PHP constructions: |
| *** condition, loop, array | | *** condition, loop, array |
| | *** Write this application, It will essentially issue a fake parking ticket: |
| | <syntaxhighlight lang="html"> |
| | A car park has two barriers. One barrier is at the entrance, where tickets are issued, and one barrier is at the exit, where paid tickets are checked when cars leave. A display at the entrance, showing the current availability of spaces in the car park, is updated as tickets are issued and checked. |
| | The actions of issuing, paying and checking a ticket operate on the collection of objects, TICKETS, that is organized as a linked list. Each object holds the following information: |
| | |
| | Nr: ticket number (a progressive unique identifer) |
| | Date: date of issue |
| | Arrival: time of issue (in 24-hour format) |
| | PaidOn: date of payment |
| | PaidAt: time of payment (in 24-hour format). |
| | </syntaxhighlight> |
|
| |
|
| </td> | | </td> |
Revision as of 15:24, 23 August 2017
What are we going to learn today?[edit]
Hello Class!
- review introductions
- setup many different tools:
- sublime (confirm you have it, put it in your dock)
- iterm (confirm you have it, put it in your dock)
- your monitors / video cables / setting up monitor arrangement
- jetbrains IDE (click here for download link for phpstorm)
- google classroom (click here, click the plus button, and then enter code: c7ghy8)
- bookmark class wiki
- register for class wiki
- connect to linux server, 85.90.244.131
- code the following PHP constructions:
- condition, loop, array
- Write this application, It will essentially issue a fake parking ticket:
A car park has two barriers. One barrier is at the entrance, where tickets are issued, and one barrier is at the exit, where paid tickets are checked when cars leave. A display at the entrance, showing the current availability of spaces in the car park, is updated as tickets are issued and checked.
The actions of issuing, paying and checking a ticket operate on the collection of objects, TICKETS, that is organized as a linked list. Each object holds the following information:
Nr: ticket number (a progressive unique identifer)
Date: date of issue
Arrival: time of issue (in 24-hour format)
PaidOn: date of payment
PaidAt: time of payment (in 24-hour format).
|
What is our homework?[edit]
It might be helpful if you reviewed our getting started guide.
|
How am I being assessed today?[edit]
- none today
|
Standards we are covering today[edit]
These standards are commonly used from the IB Computer Science Subject Guide[1]
|
As a computer scientist, you have:[edit]
- Confidence in dealing with complexity
- Persistence in working with difficult problems
- Tolerance for ambiguity
- The ability to deal with open-ended problems
- The ability to communicate and work with others to achieve a common goal or solution
|
Credits[edit]
|
- ↑ IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.