Suggested Projects

 < Day Day Up > 



  1. Game Program: Write a game program that generates a random number between 0 and 100. Prompt the user to guess what number was generated. Keep track of the number of guesses the user makes and print the statistics to the screen at the end of each game.

  2. Adder: Write a program that continuously adds numbers entered via the keyboard until zero is entered. Print the running total to the screen after the entry of each number.

  3. Calculator: Write a calculator program. Have the program alternately prompt the user for numbers, then operators. Implement the following operators: +, -, *, /, %, and C for clear. Print the results of each operation.

  4. Converter: Write a program that calculates the integer value of characters input via the keyboard.

  5. Create Multiplication Tables: Write a program that prints multiplication tables. Prompt the user for the multiplication table to print. Calculate the table up to the 12th factor.

  6. Weight Guesser: Write a program that tries to guess the weight of the user. Prompt the user for their sex, age, height, and level of physical activity. (hi, moderate, or low) Use their input as a starting point for the computer’s guess. If a guess is high, have the user enter ‘h’; if the guess is low have the user enter ‘l’. If the guess is right on have the user enter ‘y’. Keep statistics on the number of high, low, and total guesses the computer makes. Print the statistics at the end of each game. Ask the user of they want to play again or quit.

  7. Calculate Area: Write a program that calculates the area of a circle given its radius. Prompt the user for the radius. After the calculation is complete print the results to the screen and prompt the user to continue or quit.

  8. Calculate Sin, Cosine, and Tangent: Write a program that calculates and prints the sin, cos, and tangent tables for triangles given the values of their side, angle, and side.

  9. Temperature Converter: Write a program that converts fahrenheit to centigrade.

  10. Course Made Good: Write a program that calculates the sum of distance vectors movement 360 degrees. Prompt the user to enter a direction in degrees and a distance in units. Calculate the direction and distance made good.



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net