You've successfully subscribed to Antoinette Stevens
Great! Next, complete checkout for full access to Antoinette Stevens
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Mini Coding Series: The Calculator

The goal for the Mini Coding Series is to break a coding project into manageable chunks that allow you to learn and understand the basic parts of a programming language and writing code without overwhelming you. These mini lessons should take you 20-30 minutes or less to complete.

Antoinette Stevens
Antoinette Stevens

Welcome to my Mini Coding Series. The Mini Coding Series is made up of a few projects that will focus on teaching you to write code in a programming language called Python. I've chosen to use Python because, in my opinion, it's one of the easier languages to learn and understand. As you get better at writing code, you'll learn that the language you use depends on the problem you're trying to solve. Since we'll be writing pretty simple programs and you're (presumably) new to this, it's best to choose a language with a milder learning curve. I will be utilizing the Python Crash Course book from No Starch Press to help me as I write the lessons.

The goal for the Mini Coding Series is to break a coding project into manageable chunks that allow you to learn and understand the basic parts of a programming language and writing code without overwhelming you. These mini lessons should take you 20-30 minutes or less to complete. If you find that it takes you a little longer, feel free to reach out to me! I've never tried to break down my coding lessons into such small chunks before so your feedback is welcome!

Objectives

Each project in the Mini Coding Series will have objectives, information you're expected to know when the project is complete. Make sure you really grasp the objectives because we'll be building on them as we progress through the different projects.

The first project in the Mini Coding Series is The Calculator! We'll be writing a simple calculator program to help you learn how to:

  • Accept input (values) from users
  • Show outputs (results) to users (print statements)
  • Store, use, and manipulate values (variables, string manipulation, and casting)
  • Perform operations on values
  • Make decisions based on values (if statements and logical operations)

The Requirements

Every coding project comes with a set of requirements. Your requirements outline what the program is expected to do and what the outputs from that project should look like. It also outlines how users are expected to interact with your program. Each of the Mini Coding Series projects will have a set of requirements that we follow.

Your calculator will...

  • Have the ability to perform the following operations:
    • Addition
    • Subtraction
    • Multiplication
    • Division
  • Allow the user to select which operation they want to perform.
  • Verify that the user-selected operation is valid.
  • Allow the user should be able to input 2 integers (numbers) to perform the operation on
  • Show the result of the operation to the user
CodeMini Coding Series