Quiz Week 14

Survey Time

Please fill out the survey to evaluate your professors. These are very important tools to give feedback to your professors and we do take it very seriously. For myself I really appreciate the comments that you provide to help improve my teaching going forward. Even after 22 years of teaching I still have much to learn and especially from you the students.

You can enter the survey by going to https://mitecbeta.itesm.mx and then search for ECOA.

Thanks for doing this, I appreciate it and look forward to 100% of my students doing this.

Self Evaluation Time

Please check which of the Mastery topics you have covered in your blog posts. I created a Google spreadsheet which you can copy in order to keep track of this. Feel free to use “File->Make a copy.” to do that for yourself.

You can find that spreadsheet here: http://url.kenbauer.me/tc1014mastery

Feature Photo Credit

<a title="Powerpoint Slide:   "Teachers should be activators"" href="https://flickr.com/photos/kenwhytock/8471566783">Powerpoint Slide:   "Teachers should be activators"</a> flickr photo by <a href="https://flickr.com/people/kenwhytock">Ken Whytock</a> shared under a <a href="https://creativecommons.org/licenses/by-nc/2.0/">Creative Commons (BY-NC) license</a> </small>
Powerpoint Slide: “Teachers should be activators” flickr photo by Ken Whytock shared under a Creative Commons (BY-NC) license

WSQ13 – Cars

What To Do

File input/output is our access to permanent stores of data that last beyond the run time of our application.

Write a program that opens and reads the file 93cars.dat.txt and produces the following data:

  • average gas mileage in city (City MPG)
  • average gas mileage on highway (Highway MPG)
  • average midrange price of the vehicles in the set.

You can find the data set at the following link from the Journal of Statistics Education.

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ13 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions in our Slack channel so we all see your question posted there.

Feature Image Credit

<a title="car" href="https://flickr.com/photos/inucara/8441125237">car</a> flickr photo by <a href="https://flickr.com/people/inucara">Kentaro Ohno</a> shared under a <a href="https://creativecommons.org/licenses/by/2.0/">Creative Commons (BY) license</a> </small>
car flickr photo by Kentaro Ohno shared under a Creative Commons (BY) license

WSQ12 – Estimating e

What To Do

In this assignment you will estimate the mathematical constant e. You should create a function called calculuate_e which receives one parameter called precision that should specify the number of decimal points of accuracy.

You will want to use the infinite series to calculate the value, stopping when the accuracy is reached (previous and current calculation are the same at the specified accuracy).

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ12 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions in our Slack channel so we all see your question posted there.

Feature Image Credit

<a title="e" href="https://flickr.com/photos/gailtang/2786292212">e</a> flickr photo by <a href="https://flickr.com/people/gailtang">gail m tang</a> shared under a <a href="https://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons (BY-NC-SA) license</a> </small>
e flickr photo by gail m tang shared under a Creative Commons (BY-NC-SA) license

 

WSQ11 – Go Bananas

What To Do

Write a function called find_bananas which receives a single parameter called filename (a string) and returns a positive integer which is the number of times the word (string) “banana”  (or “BANANA” ) is found in the file. The banana can be any case (‘BaNana’ or ‘BANANA’ or ‘banana’, etc) and they can be “stuck together” like “banAnaBANANA” (that counts as two). Create your own test file (plain text) to check your work.

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ11 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions in our Slack channel so we all see your question posted there.

Feature Image Credit

<a title="Colored Bananas" href="https://flickr.com/photos/cleberquadros/3834587963">Colored Bananas</a> flickr photo by <a href="https://flickr.com/people/cleberquadros">Cleber Quadros</a> shared under a <a href="https://creativecommons.org/licenses/by-nc/2.0/">Creative Commons (BY-NC) license</a> </small>
Colored Bananas flickr photo by Cleber Quadros shared under a Creative Commons (BY-NC) license