53
edits
Baiyao Lin (talk | contribs) No edit summary |
Baiyao Lin (talk | contribs) No edit summary |
||
Line 90: | Line 90: | ||
| [[File:antarctic.jpg|400px]] | | [[File:antarctic.jpg|400px]] | ||
| Open google map to search a bus stop(a) near you, then search a bus stop(b) near you, go to (b). Write down the time you arrive as (x)[xxh:xxm:xxs].<br><br>Choose a bus on the messageboard, write down the bus number, how many minutes(m) it will arrive, and wait for the bus.<br><br>Count the number of people in and out separately, get on the bus. Caculate a new number(n)=|Open google map to search a bus stop(a) near you, then search a bus stop(b) near you, go to (b). Write down the time you arrive as (x)[xxh:xxm:xxs].<br><br>Choose a bus on the messageboard, write down the bus number, how many minutes(m) it will arrive, and wait for the bus.<br><br>Count the number of people in and out separately, get on the bus. Caculate a new number(n)=|num[in]-num[out]|, get off the bus at the (n)th stop. Write down the time you get off as (y)[yyh:yym:yys].<br><br>Now check your compass on the phone, use the bus' leaving direction to record the compass direction as (z)[N, E, S, or W].<br><br>Turn the time (x), (y) into coordinate, eg. 24h:24m:24s ->24°24'24". Caculate a new coordinate(nx, 2my), nx as altitude, 2my as longitude. If the bus stop(b) is to the north of (a), set altitude as |nx|, and set as -|nx| if south. So you can check on northern or southern hemisphere; If the bus number is even, set longitude as |2my|, and set as -|2my| if it's odd, so you can check on the east or west to the 0° longitude line.<br><br>Look up the new coordinate on google map, if it is in a city, write down the city and country name, if it's not in a city, use the direction(z) to look for the nearest city on this direction, write down the names.<br><br>-thx Jonas | | Open google map to search a bus stop(a) near you, then search a bus stop(b) near you, go to (b). Write down the time you arrive as (x)[xxh:xxm:xxs].<br><br>Choose a bus on the messageboard, write down the bus number, how many minutes(m) it will arrive, and wait for the bus.<br><br>Count the number of people in and out separately, get on the bus. Caculate a new number(n)=|Open google map to search a bus stop(a) near you, then search a bus stop(b) near you, go to (b). Write down the time you arrive as (x)[xxh:xxm:xxs].<br><br>Choose a bus on the messageboard, write down the bus number, how many minutes(m) it will arrive, and wait for the bus.<br><br>Count the number of people in and out separately, get on the bus. Caculate a new number(n)=|num[in]-num[out]|, get off the bus at the (n)th stop. Write down the time you get off as (y)[yyh:yym:yys].<br><br>Now check your compass on the phone, use the bus' leaving direction to record the compass direction as (z)[N, E, S, or W].<br><br>Turn the time (x), (y) into coordinate, eg. 24h:24m:24s ->24°24'24". Caculate a new coordinate(nx, 2my), nx as altitude, 2my as longitude. If the bus stop(b) is to the north of (a), set altitude as |nx|, and set as -|nx| if south. So you can check on northern or southern hemisphere; If the bus number is even, set longitude as |2my|, and set as -|2my| if it's odd, so you can check on the east or west to the 0° longitude line.<br><br>Look up the new coordinate on google map, if it is in a city, write down the city and country name, if it's not in a city, use the direction(z) to look for the nearest city on this direction, write down the names.<br><br>-thx Jonas | ||
|- | |||
|} | |||
==Algorithm Practice — 07.12.18== | |||
{| border="1" | |||
|- | |||
! style="width: 70%" | Result | |||
! style="width: 30%" | Algorithm | |||
|- | |||
| [[File:class1.png|400px]][[File:class2.png|400px]] | |||
| Practice with class. <br><br> [[:File:classproj.pde]][[:File:conte.pde]] | |||
|- | |- | ||
|} | |} |
edits