• Home
  • Readings
  • Github
  • MIES
  • TmVal
  • About
Gene Dan's Blog

Monthly Archives: October 2010

You are browsing the site archives by month.

No 30: Math Problem(s) of the Day & First Program

1 October, 2010 3:28 AM / 1 Comment / Gene Dan

Hey everyone,

Today’s problem actually consists of a potentially infinite number of problems! I’ve been learning some programming in my spare time, so I’ve written my first program using Python, a powerful high-level scripting language that can do several things. My first program is called “Gene’s Multiplication Tutor.” It simply picks random numbers for the user to multiply, lets the user pick the number of problems the user wants to do, and tells the user how many problems the user answered correctly. To download the program, click the following link:

Gene’s Multiplication Tutor

The link will take you to a page that hosts the file. Click “Click here to start download..” and save it to the desired directory. After you have the file, you will need to open up a command prompt or terminal window, cd to the directory at which the file is located, and type in:

python mult3.py

at the prompt to start the program. Of course, you will need a python interpreter in order to run the program. The program will first ask you if you wish to proceed, and if you wish to proceed, it will ask you how many problems you wish to do. After inputing the number of problems you wish to do, the program will ask you the questions, and will tell you whether or not you got them right after each answer. After all the questions have been answered, the program will tell you how many you answered correctly, and then will return to the menu.

Here are some screenshots:

Access the program through the terminal window.

It looks like I missed one. Bummer!

Enjoy!

Posted in: Logs

Archives

  • September 2023
  • February 2023
  • January 2023
  • October 2022
  • March 2022
  • February 2022
  • December 2021
  • July 2020
  • June 2020
  • May 2020
  • May 2019
  • April 2019
  • November 2018
  • September 2018
  • August 2018
  • December 2017
  • July 2017
  • March 2017
  • November 2016
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • July 2014
  • June 2014
  • February 2014
  • December 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • March 2013
  • January 2013
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • January 2011
  • December 2010
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • September 2009
  • August 2009
  • May 2009
  • December 2008

Categories

  • Actuarial
  • Cycling
  • Logs
  • Mathematics
  • MIES
  • Music
  • Uncategorized

Links

Cyclingnews
Jason Lee
Knitted Together
Megan Turley
Shama Cycles
Shama Cycles Blog
South Central Collegiate Cycling Conference
Texas Bicycle Racing Association
Texbiker.net
Tiffany Chan
USA Cycling
VeloNews

Texas Cycling

Cameron Lindsay
Jacob Dodson
Ken Day
Texas Cycling
Texas Cycling Blog
Whitney Schultz
© Copyright 2025 - Gene Dan's Blog
Infinity Theme by DesignCoral / WordPress