Adding on to what we've already learned, we wrote a program that would base its output on various conditions. To learn (during the demonstration), we wrote a program that would translate the user's emotion (happy, mad, sad, or crazy) into the corresponding emoticon. Useful? Not really. But fun! For the assignment, the students either: 1) wrote a program that calculates the price of shoes depending on if you're paying with cash or card, 2) wrote a program that would tell you how much you would weigh on several other planets based on your Earth weight, or 3) wrote a program that plays "rock, paper, scissor" against the user. The students now have all the skills required to score a "4" on the assessment if they choose.
We're ending the semester with a short unit on programming. In the past, we've used Codecademy to walk us through some basics in JavaScript or HTML, but it was always a bit unsatisfactory since we were severely limited in what we could actual do. So introducing Online Python! We are going to learn enough Python commands to actually write working programs that solve particular problems. By the end of this first day, your student will have written a program that acts as a short Mad Libs generator, a program that converts Fahrenheit to Celsius, and then either a 1) donut price calculator, a 2) wagon wheel odometer, or a 2) future value calculator. All the programs take input from the user, make conversions of variable types, make calculations, and then output the results. Fun! |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2024
Categories |