Exercises for Programmers
These exercises provided me with a solid foundation in fundamental programming concepts such as input/output, and processing strings and numbers
-
Saying Hello
Greets user with a message by prompting them to enter their name in this program.
-
Counting the Number of Characters
Input a string, and this program will count the number of characters in the string, giving you an accurate character count.
-
Mad Lib
Input a noun, verb, adverb, and adjective to insert into a story and create a hilarious mad lib.
-
Simple Math
Prompt the user to input two numbers and this program will display various operation with the two numbers.
-
Retirement Calculator
Find out how long you have until retirement with this program. Based on your age and retirement age input, it will calculate the year you can retire.
-
Area of a Rectangular Room
This program allows you to calculate the area of a rectangular room by inputting the length and width in feet, and it will provide you with the area in both square feet and square meters.
-
Pizza Party
Calculate the number of slices of pizza each person at a party can have, based on the number of people, pizzas, and slices per pizza.
-
Paint Calculator
Input the length and width of a room, as well as the number of coats you plan to apply, and this program will calculate the amount of paint you need to purchase.
-
Self-Checkout
A program that calculates the subtotal, tax, and total of a shopping cart for multiple items, with each item having its own price and quantity input.
-
Currency Conversion
This program allows you to convert an amount of money from one currency to another.
-
Computing Simple Interest
Input the amount of principal, the rate of interest, and the number of years, and this program will calculate the simple interest, total amount, and total interest.