This article is a selection of project ideas and concepts, initially posted by the user LacViet on the C++ forums (Post here) designed to get a user from knowing absolutely nothing about a programming language (C++ in this example but it works for any) to relative competency.
- Write a program which finds the factorial of a number entered by the user.
- Develop a program to convert currency X to currency Y and visa versa.
- Write a program that print out the following, user will input the top number:
*****
****
***
**
*
- Write a program that print out the following, user will input the bottom number:
*
**
***
****
*****
******
- Write a program that prints out the following triangle, the user will input the bottom number:
*
***
*****
*******
- Develop a program that uses a randomly generated number to select 1 of 3 (or more) functions to show the user.
- Guessing game. Write a game that asks the user to guess a number between 1 and a 100. If you guessed correctly, it will say you win. If your too high or too low it will also let you know.
- Create a program which generates Fibonacci series till a number 'n' where 'n' is entered by the user. For eg. if the user enters 10 then the output would be: 1 1 2 3 5 8
- Determine how many of the characters are vowels and how many are consonants in a given line of text. Also terminate the string when the input character encountered is other than the alphabet.
- Find the Fifth root of the sum of the squares of the first 100 ODD numbers only.
- Perform 4-letter WORD UNSCRAMBLING i.e. List all possible combinations of 4-letters in a word. Ex: The word 'TEST' can be unscrambled as TEST, TETS, TSET, TSTE, TTSE, TTES, etc.
- Make a program that allows the user to input either the radius, diameter, or area of the circle. The program should then calculate the other 2 based on the input.
- READ a line of text and WRITE it out BACKWARDS using RECURSIVE Function.
- Write a program to SWAP the contents of 3 variables without using the temporary (or extra) variables.
- Write a program which reverses the numerals in an integer, that is 326 becomes 623, etc..
- The program will tell the user each time whether he guessed high or low. The user WINS the game when the number guessed is same as randomly generated number.
- Write a program to simulate a simple calculator. It should accept two number from the user along with the required operation to be performed. Addition, Subtraction, Division and Multiplication are the basic operations that should be implemented. Feel free to implement the other operations
- Determine how much money is in a piggy bank that contains several 50 piece coins, 25 piece coins, 20 piece coins, 10 piece coins and 5 piece coins. Use the following values to test your program : Five 50 piece coins, Three 25 piece coins, Two 20 piece coins, One 10 piece coin and Fifteen 5 piece coins.
- Create a simple Palindrome checker program. The program should allow the user to enter a string and check whether the given string is a palindrome or not. Only digits and alphabets should be considered while checking for palindromes -- any other characters are to be ignored.
- Write a program that allows you to input students' scores and weights. The program should then calculate a weighted average and score based on the data inputted by the user.
- Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. (suggested by Aniseed)
- Develop a animal classification program base on the animal kingdom. (for practice the use of inhabitant classes).
- Write a quiz program, which retrieve question, and answer from a file. Then allow the user to take the quiz/count point and return score.
- Write a program that accepts XHTML, parses and removes the tags. Then it prints out the remaining text.
- Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic memory allocation required). Use of structure or a class to define the matrix would be a good idea.
- Write a program which will perform the job of moving the file from one location to another. The source and destination path will be entered by the user. Perform the required error checking and handle the exceptions accordingly.
- Create a sophisticated linked list class. You should be able to insert and delete nodes anywhere in the list, and the nodes should have pointers to nodes both in front and behind them.
- Create a program that implements a database. The fields are hard-coded, and the data is saved in a binary file. Although this isn't really flexibility, you aren't relying on any external libraries or functions.
- Implement your own strstr.
- Write a program which acted like a personal planner. In which a user can input in event, note of thing to-do on certain date.
- Tic Tac Toe program.
- Simple file encryption (using something simple like ROT13).
- Write a phone/address book program, with data save in binary files. The users should be able to add/delete/change the data.
- Write a simple payroll program, that would include pay rates, and hours work for employees.
- Create a few classes that model playing cards. Then use this framework to create your favourite card game. Blackjack..etc.
- Create a few classes that model chess pieces. Then develop a real chess game.
- Create a binary tree which has search and sorting functions.
- Create a Quine, that is, a program that prints out its own source code.
- Implement your own version of the Standard Template Library.
- Write a program to draw a rectangle, ellipse, square, circle, point and line based on user input.
- Write a program to emulate Microsoft Paint. It should be possible to switch between different tools (circle, rectangle, eraser...) using pre-defined key strokes.
- Write a program to plot a simple x-y graph for a hardcoded function (e.g. y=cos(x)). It should be possible to zoom in on any part of the graph.
- Write a program to plot a graph of given equation of form y=f(x) and a range for x as command line arguments. (e.g. my_graph_plotter -eq="y=x*x" -xmin=-10, -xmax=10). (PS: more to do with equation solving than graphics)
- Write the classic brick-break-out game. E.g. see DX Ball.