Help - Search - Members - Calendar
Full Version: Programming A Lottery Tracker Program
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > Other Languages
k.digennaro
We'll I've been looking for an excuse for a long time to start to learn C++ or other languages keen to programming. A professor challenged me to create a program for him. The program would be to track his lottery tickets, so that when he heard the winning number he could simply type it into his computer and tell him if he won or not. I think the best way to create a program like this would be to use "if" "then" statements. I figured a program like this would be simple and maybe a good way to learn some programming.

Any ways here's the concept of the program I want to create. I've never done this before so I need help learning or suggestions.

CODE
"if" var "a" is equal to "x" then "highlight"

"if" var "b" is equal to "x" then "highlight"

"if" var "c" is equal to "x" then "highlight"

"if" var "d" is equal to "x" then "highlight"

"if" var "e" is equal to "x" then "highlight"

"if" var F" is equal to "x" then "highlight and circle"

"if" var "x" is not present then display message: "I'm sorry  you're not a winner this time. Don't give up! Buy another ticket!!"

"var" will be declared by user


Thanks,
Kevin
MH-Dolly
QUOTE(k.digennaro @ Aug 27 2008, 08:07 PM) *
We'll I've been looking for an excuse for a long time to start to learn C++ or other languages keen to programming. A professor challenged me to create a program for him. The program would be to track his lottery tickets, so that when he heard the winning number he could simply type it into his computer and tell him if he won or not. I think the best way to create a program like this would be to use "if" "then" statements. I figured a program like this would be simple and maybe a good way to learn some programming.

Any ways here's the concept of the program I want to create. I've never done this before so I need help learning or suggestions.

CODE
"if" var "a" is equal to "x" then "highlight"

"if" var "b" is equal to "x" then "highlight"

"if" var "c" is equal to "x" then "highlight"

"if" var "d" is equal to "x" then "highlight"

"if" var "e" is equal to "x" then "highlight"

"if" var F" is equal to "x" then "highlight and circle"

"if" var "x" is not present then display message: "I'm sorry  you're not a winner this time. Don't give up! Buy another ticket!!"

"var" will be declared by user


Thanks,
Kevin


Please read c++ basic instruction and you will can do it yourself !!!
Banjo
Kind of a old topic why bump it? Anyway i made this program for him but not in c++

k.digennaro
..... someone can lock or delete this topic, ive seen so many old topics getting bumped lately...

*** Done. swordz ***
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.