Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Total Noobie!

Ok so i am in my first year and first term of c++ programming so i am not ashamed to admit i really dont know anything yet. I have written a number of small programs already but i am stumped on my current one.

I have to write a simple logic game that takes the input of three to five words, reads each character in individually and evaluates them to give back a score.
-The score starts at 20.
-Every time a vowel is entered, they lose a point
-But, if they entered two vowels in a row, they gain 5 points
-Capital letters gain them 3 points
-When they enter three letters in a sequence (abc or mno ) they get deducted 2 points
-Punctuation increases their score by 3 points if the first letter in the word is capitalized. Otherwise, it is a 3 point deduction.

Im not looking for the complete code, i want to figure that out myself. I just cannot figure out how to read each character and evaluate the point structure. any help would be greatly appreciated!
[999 byte] By [dek] at [2007-11-11 10:31:19]
# 1 Re: Total Noobie!
you read characters using cin>>x; where x is char.
As for the points: allocate a variable for points initialized to 20. Then on each move deduct or add points as necessary.
Danny at 2007-11-11 20:58:39 >
# 2 Re: Total Noobie!
initialize @ 20 actually seems more reasonable.
jonnin at 2007-11-11 20:59:40 >
# 3 Re: Total Noobie!
yeah, I missed that part. Fixed.
Danny at 2007-11-11 21:00:39 >