top of page

Integers and Floats

This page features 3 levels of projects to teach you how to use integers and floats:
1. Basic arithmetic and user input
2. Using numeric formulas, rounding, and conversions
3. Real-world application of number operations

Level 1: Mini Calculator

Goal: Ask the user for 2 numbers, print the sum, difference, product, and quotient (rounded to 2 places)

Level 2: Converter Lab

Goal: Ask the user for a number, and convert it to different units (Celsius to Fahrenheit, km to mi, lbs to kg)

Level 3: Split the Bill

Goal: Ask the user for a bill total, tax rate, tip rate, and the number of people, and output how much each person has to pay in a neat multi-line receipt. Also, print whether anyone has to pay extra.

bottom of page