top of page

PROGRAMMING CHALLENGES 

Number of challenges

182

Age Next Year

Create a program that asks the user for their age and then prints what their age will be next year.

1 Inputs and Outputs

Rectangle Area Calculator

Write a program that asks for the width and height of a rectangle and then calculates and prints the area.

1 Inputs and Outputs

Dice Roll Display Challenge

Write a program that will output the number 4 on a dice using ASCII art.

1 Inputs and Outputs

Movie Duration in Hours

Write a program that converts a movie duration from minutes to hours and minutes.

1 Inputs and Outputs

Greeting Message

Develop a program that asks the user's name and age and then greets them with a nice message

1 Inputs and Outputs

Friendly Welcome Message

Write a program that displays a friendly welcome message and today�s date to the user.

1 Inputs and Outputs

Sum of Two Numbers

Create a program that takes two numbers as input and prints their sum and product.

1 Inputs and Outputs

Inspirational Quote Output

Write a program that outputs an inspirational quote of your choice.

1 Inputs and Outputs

Name in Art Challenge

Write a program that outputs your name in stylized ASCII Art.

1 Inputs and Outputs

Price with Tax Calculator

Develop a program that calculates the total price of an item after adding a sales tax percentage.

1 Inputs and Outputs

Personalised Welcome

Write a program that asks the user to enter their name and then outputs a welcome message with their name in it.

1 Inputs and Outputs

Favourite Colour Display

Ask the user for their favourite colour and then output a sentence including that colour.

1 Inputs and Outputs

Circle Circumference Calculator

Create a program that asks for the radius of a circle and calculates and prints the circumference.

1 Inputs and Outputs

Temperature Converter

Write a program that converts temperature from Celsius to Fahrenheit.

1 Inputs and Outputs

Digital Clock Display

Write a program that outputs the current time in a digital clock format using ASCII art.

1 Inputs and Outputs

Dice Roller

Write a program that simulates rolling a dice. The program should ask the user to input the number of sides the dice has (e.g., 6 for a standard dice, 20 for a D20 in RPGs), and then generate a random number within that range.

1.1 Random Numbers

Coin Flip Simulation

Write a program that simulates flipping a coin a specified number of times. The program should ask the user to enter the number of coin flips, and then simulate the coin flips using random numbers. The program should output the number of heads and tails obtained.

1.1 Random Numbers

Personalised Adder

Write a program that asks the user for two numbers, adds them together, and then prints a personalised message with the result.

1.1 Strings and Integers

Simple Sum Calculator

Write a program that asks the user for two numbers, adds them together, and outputs the result.

1.2 Arithmetic Operations

Average Score Calculator

Write a program that asks the user to enter three scores, calculates the average, and displays it with a message.

1.2 Arithmetic Operations

Temperature Converter

Write a program that converts a temperature from Fahrenheit to Celsius and displays the result in a formatted string.

1.2 Arithmetic Operations

Exponent Calculator

Write a program that calculates the result of raising a base number to a power. The program should prompt the user to enter the base number and the exponent.

1.2 Arithmetic Operations

Cardboard Box Volume Challenge

Write a program that calculates the volume of a cardboard box and displays it in liters and cubic meters.

1.2 Arithmetic Operations

Circle Area Calculator

Write a program that asks the user for the radius of a circle and calculates the area. Output the area with a message.

1.2 Arithmetic Operations

Average Score Calculator

Write a program that will ask the user to enter three test scores out of 100 and output the average.

1.2 Arithmetic Operations

Teddy Bear Factory Wages

Write a program that calculates a worker's wages based on hours worked and teddy bears made.

1.2 Arithmetic Operations

Height & Weight Converter

Write a program to convert a person�s height in inches into centimeters and their weight in pounds into kilograms.

1.2 Arithmetic Operations

Circle Measurements Challenge

Write a program that calculates various properties of a circle given its radius, such as diameter, area, circumference, and arc length.

1.2 Arithmetic Operations

Quadratic Equation Solver

Write a program that solves quadratic equations of the form ax^2 + bx + c = 0. The program should prompt the user to enter the coefficients a, b, and c, and then calculate and output the real and complex roots of the equation.

1.2 Arithmetic Operations

Simple Age Calculator

Write a program that asks the user for their birth year and calculates their age based on the current year.

1.2 Arithmetic Operations

Simple Interest Calculator

Write a program that calculates simple interest. Ask the user for the principal, rate of interest, and time.

1.2 Arithmetic Operations

Simple Dice Game

Write a program to calculate the score in a simple dice game where the user rolls three dice and scores points based on the dice values.

1.3 Arithmetic and Random

Exact Division Checker

Write a program that asks the user for two numbers and checks whether they are exactly divisible. If not, return the remainder. If a 0 is entered, display an error message.

1.3 Arithmetic and Random

Random Element Generator

Write a program that generates a random number representing a dice roll with a user-specified number of sides.

1.3 Arithmetic and Random

Month Days Finder

Write a program that lets the user enter a month number (1-12) and displays the month name along with the number of days it has. Account for leap years in February.

1.3 Arithmetic and Random

Vowel Counter

Create a program that counts the number of vowels in a given string.

1.4 String Manipulation

Movie Uppercase Challenge

Create a program that prompts the user for their favorite movie and displays the title in all capital letters.

1.4 String Manipulation

Name Splitter Challenge

Write a program that allows the user to enter their full name on one line. The program should then separate and output the first name and last name individually.

1.4 String Manipulation

Sentence Word Remover

Write a program that outputs a sentence and allows the user to enter a word to be removed. The sentence is then displayed with the word removed.

1.4 String Manipulation

Character Frequency

Create a program that calculates the frequency of each character in a given string.

1.4 String Manipulation

bottom of page