Browsed by
Category: Programming

C Application: Simulating a Perfect Shuffle

C Application: Simulating a Perfect Shuffle

People learning to program often struggle with how to decompose a problem into the steps necessary to write a program to solve that problem. This is one of a series of posts in which I take a problem and go through my decision-making process that leads to a program. Background: I once attended a presentation by an amateur magician in which he stated that performing 8 perfect shuffles in a row on a deck of 52 cards returned the deck…

Read More Read More

Python Programming: Producing a Multiplication Table

Python Programming: Producing a Multiplication Table

People learning to program often struggle with how to decompose a problem into the steps necessary to write a program to solve that problem. This is one of a series of posts in which I take a problem and go through my decision-making process that leads to a program. The problem: produce a multiplication table. I assume that at this point you know about statements, conditionals, loops, and functions. You can find a video with more details at https://youtu.be/QJqfYn_4pmw. Design…

Read More Read More