Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":29811,"date":"2016-05-01T23:37:51","date_gmt":"2016-05-02T04:37:51","guid":{"rendered":"http:\/\/andreatrejod.wordpress.com\/?p=305"},"modified":"2016-05-01T23:37:51","modified_gmt":"2016-05-02T04:37:51","slug":"wsq13-29","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2016\/wsq13-29\/","title":{"rendered":"#Wsq13"},"content":{"rendered":"

So here’s the exam with some (a lot of) corrections, it was easy, but man I get too nervous in the exams, it’s difficult to me to concentrate, but anyway here it is:<\/p>\n

1.-Escribe el funci\u00f3n distancia cual recibe 4 n\u00fameros (x1, y1, x2, y2) cuales representan dos puntos en espacio (x1,y1) y (x2,y2). El m\u00e9todo debe regresar la distancia entre los dos puntos. Recuerda que el valor cuadrada del hipotenusa del triangulo es igual que la suma de las cuadradas de los otro dos lados del triangulo (the hypotenuse squared is equal to the sum of the squares of the other two sides).<\/p>\n

This one was a very easy actually, so here’s the screenshot of the program<\/p>\n

\"#Wsq13\"<\/p>\n

2.-(5 puntos) Escribe un funci\u00f3n que se llama triangulo cual recibe un par\u00e1metro size y imprime un triangulo derecho como el siguiente. El rengl\u00f3n mas grande debe llevar size numero de \u201cT\u201d. SOLO imprime los \u201cT\u201ds y los endlines. Nota que no hay characteres (espacios) a la derecha de los T’s. Debe usar un ciclo \u201cfor\u201d para controlar el repetici\u00f3n. Ejemplo es si size era 6.<\/p>\n

Here’s number two:<\/p>\n

\"#Wsq13\"<\/p>\n

3.-Escribe un funci\u00f3n que se llama superpower(a,b) con dos parameters de (enteros \/ int). Debe regresar el valor del primer parametro al poder del segundo, o mejor decir a b . No puedes usar un funci\u00f3n de modulos de Python para hacerlo directo, pero con un ciclo usando multiplicaci\u00f3n. Ejemplos: superpower(4,2) es 16 superpower(3,4) es 81:<\/p>\n

\"#Wsq13\"<\/p>\n

(5 puntos) Escribe un funci\u00f3n que se llama fibonacci cual recibe como parametro un entero no negativo (int) \u201cn\u201d y regresa un entero cual representa el numero en la serie de fibonacci en posicion n. La definici\u00f3n (modificado) del serie de Fibonacci para hoy es: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 ……….. Entonces fibonacci(0) es 0, fibonacci(5) es 5, fibonacci(8) es 21, fibonacci(10) es 55.<\/p>\n

\"#Wsq13\"<\/p>\n

And all the codes in\u00a0GitHub<\/a><\/p>\n

 <\/p>\n

 <\/p>\n

\"\"<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"

So here’s the exam with some (a lot of) corrections, it was easy, but man I get too nervous in […]\"#Wsq13\"<\/p>\n","protected":false},"author":261,"featured_media":29806,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/29811"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/261"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=29811"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/29811\/revisions"}],"predecessor-version":[{"id":30353,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/29811\/revisions\/30353"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/29806"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=29811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=29811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=29811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}