For the nooby coders :) like me
So as all of the experienced hackers know, the best way to learn c++ is practice practice practice! . And as a useful resource for both myself and various new coders I plan to constantly update this thread with numerous project ideas. Also feel free to comment if you have any cool ideas for beginner programs feel free to leave a comment and I will include it in this thread.
Projects:
**Many of these are from cplusplus.com
__________________________________________________ ______________________
Write a program that allows the user to enter the grade scored in a programming class (0-100).
If the user scored a 100 then notify the user that they got a perfect score.
★ Modify the program so that if the user scored a 90-100 it informs the user that they scored an A
★★ Modify the program so that it will notify the user of their letter grade
0-59 F 60-69 D 70-79 C 80-89 B 90-100 A
Code:
__________________________________________________ ____________________
Write a program that presents the user w/ a choice of your 5 favorite beverages (Coke, Water, Sprite, ... , Whatever).
Then allow the user to choose a beverage by entering a number 1-5.
Output which beverage they chose.
★ If you program uses if statements instead of a switch statement, modify it to use a switch statement.
If instead your program uses a switch statement, modify it to use if/else-if statements.
★★ Modify the program so that if the user enters a choice other than 1-5 then it will output "Error. choice was not valid, here is your money back."
__________________________________________________ ______________________
Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person 2, ..., Person 10)
Once the data has been entered the program must analyze the data and output which person ate the most pancakes for breakfast.
★ Modify the program so that it also outputs which person ate the least number of pancakes for breakfast.
★★★★ Modify the program so that it outputs a list in order of number of pancakes eaten of all 10 people.
i.e.
Person 4: ate 10 pancakes
Person 3: ate 7 pancakes
Person 8: ate 4 pancakes
...
Person 5: ate 0 pancakes
__________________________________________________ ______________________
Write a program that ccontinues to asks the user to enter any number other than 5 until the user enters the number 5.
Then tell the user "Hey! you weren't supposed to enter 5!" and exit the program.
★ Modify the program so that after 10 iterations if the user still hasn't entered 5 will tell the user "Wow, you're more patient then I am, you win." and exit.
★★ Modify the program so that it asks the user to enter any number other than the number equal to the number of times they've been asked to enter a number. (i.e on the first iteration "Please enter any number other than 0" and on the second iteration "Please enter any number other than 1"m etc. etc. The program must behave accordingly exiting when the user enters the number they were asked not to.)
__________________________________________________ ______________________
Write a program that calculates a random number 1 through 100. The program then asks the user to guess the number.
If the user guesses too high or too low then the program should output "too high" or "too low" accordingly.
The program must let the user continue to guess until the user correctly guesses the number.
★ Modify the program to output how many guesses it took the user to correctly guess the right number.
★★ Modify the program so that instead of the user guessing a number the computer came up with, the computer guesses the number that the user has secretely decided. The user must tell the computer whether it guesed too high or too low.
★★★★ Modify the program so that no matter what number the user thinks of (1-100) the computer can guess it in 7 or less guesses.
__________________________________________________ ______________________
Make a two player tic tac toe game.
★ Modify the program so that it will announce when a player has won the game (and which player won, x or o)
★★ Modify the program so that it is a one player game against the computer (with the computer making its moves randomly)
★★★★ Modify the program so that anytime the player is about to win (aka, they have 2 of 3 x's in a row, the computer will block w/ an o)
__________________________________________________ ______________________
Write a program that asks for a user first name and last name separately.
The program must then store the users full name inside a single string and out put it to the string.
i.e.
Input:
John
Smith
Output:
John Smith
★ Modify the program so that it then replaces every a, e, i , o, u w/ the letter z.
i.e.
John Smith -> Jzhn Smzth
★★ Modify the Program so that it reverses the users name
i.e.
John Smith -> htimS nhoJ
__________________________________________________ ______________________
Make a physics problem solver
Requirements: an understanding of physics.
i.e.
Input:
Enter time (seconds):
Enter gravitational force(meters/sec^2):
Enter initial velocity:
Output: You're height was:
** This one was my idea
__________________________________________________ ______________________
Text Based RPG. the details are up to you. But as i would recommend, start simple; make sure it works; start adding different classes and experience, and leveling up.
__________________________________________________ _______________________________
***********credits to zhaoyun333 for these below************
★★★ Make a quadratice forumala solver. input A B and C where Ax^2 + Bx + C = 0
★★★★★★Make a equation solver that follow order of opertaions (5+3)*2+4
★★★★★★Given a 2d array filled with 0's and 1's make the shortest path from the top left corner of the array to bottom right corner
__________________________________________________ __________________________________
Please Press Thanks if I helped
Projects:
**Many of these are from cplusplus.com
__________________________________________________ ______________________
Write a program that allows the user to enter the grade scored in a programming class (0-100).
If the user scored a 100 then notify the user that they got a perfect score.
★ Modify the program so that if the user scored a 90-100 it informs the user that they scored an A
★★ Modify the program so that it will notify the user of their letter grade
0-59 F 60-69 D 70-79 C 80-89 B 90-100 A
Code:
__________________________________________________ ____________________
Write a program that presents the user w/ a choice of your 5 favorite beverages (Coke, Water, Sprite, ... , Whatever).
Then allow the user to choose a beverage by entering a number 1-5.
Output which beverage they chose.
★ If you program uses if statements instead of a switch statement, modify it to use a switch statement.
If instead your program uses a switch statement, modify it to use if/else-if statements.
★★ Modify the program so that if the user enters a choice other than 1-5 then it will output "Error. choice was not valid, here is your money back."
__________________________________________________ ______________________
Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person 2, ..., Person 10)
Once the data has been entered the program must analyze the data and output which person ate the most pancakes for breakfast.
★ Modify the program so that it also outputs which person ate the least number of pancakes for breakfast.
★★★★ Modify the program so that it outputs a list in order of number of pancakes eaten of all 10 people.
i.e.
Person 4: ate 10 pancakes
Person 3: ate 7 pancakes
Person 8: ate 4 pancakes
...
Person 5: ate 0 pancakes
__________________________________________________ ______________________
Write a program that ccontinues to asks the user to enter any number other than 5 until the user enters the number 5.
Then tell the user "Hey! you weren't supposed to enter 5!" and exit the program.
★ Modify the program so that after 10 iterations if the user still hasn't entered 5 will tell the user "Wow, you're more patient then I am, you win." and exit.
★★ Modify the program so that it asks the user to enter any number other than the number equal to the number of times they've been asked to enter a number. (i.e on the first iteration "Please enter any number other than 0" and on the second iteration "Please enter any number other than 1"m etc. etc. The program must behave accordingly exiting when the user enters the number they were asked not to.)
__________________________________________________ ______________________
Write a program that calculates a random number 1 through 100. The program then asks the user to guess the number.
If the user guesses too high or too low then the program should output "too high" or "too low" accordingly.
The program must let the user continue to guess until the user correctly guesses the number.
★ Modify the program to output how many guesses it took the user to correctly guess the right number.
★★ Modify the program so that instead of the user guessing a number the computer came up with, the computer guesses the number that the user has secretely decided. The user must tell the computer whether it guesed too high or too low.
★★★★ Modify the program so that no matter what number the user thinks of (1-100) the computer can guess it in 7 or less guesses.
__________________________________________________ ______________________
Make a two player tic tac toe game.
★ Modify the program so that it will announce when a player has won the game (and which player won, x or o)
★★ Modify the program so that it is a one player game against the computer (with the computer making its moves randomly)
★★★★ Modify the program so that anytime the player is about to win (aka, they have 2 of 3 x's in a row, the computer will block w/ an o)
__________________________________________________ ______________________
Write a program that asks for a user first name and last name separately.
The program must then store the users full name inside a single string and out put it to the string.
i.e.
Input:
John
Smith
Output:
John Smith
★ Modify the program so that it then replaces every a, e, i , o, u w/ the letter z.
i.e.
John Smith -> Jzhn Smzth
★★ Modify the Program so that it reverses the users name
i.e.
John Smith -> htimS nhoJ
__________________________________________________ ______________________
Make a physics problem solver
Requirements: an understanding of physics.
i.e.
Input:
Enter time (seconds):
Enter gravitational force(meters/sec^2):
Enter initial velocity:
Output: You're height was:
** This one was my idea
__________________________________________________ ______________________
Text Based RPG. the details are up to you. But as i would recommend, start simple; make sure it works; start adding different classes and experience, and leveling up.
__________________________________________________ _______________________________
***********credits to zhaoyun333 for these below************
★★★ Make a quadratice forumala solver. input A B and C where Ax^2 + Bx + C = 0
★★★★★★Make a equation solver that follow order of opertaions (5+3)*2+4
★★★★★★Given a 2d array filled with 0's and 1's make the shortest path from the top left corner of the array to bottom right corner
__________________________________________________ __________________________________
Please Press Thanks if I helped
