Friday, July 31, 2009

C++ project help?

Enter characters one by one until a predetermined “sentinel” or the maximum number of characters is entered. The maximum MUST be less than 96. The sentinel character can be any character other than an italic alpha or, space or a numeral (for example a # (pound) sign might be used).











Keep a frequency count of each of the italic alphas; upper and lower are deemed to be identical (FYI – in this context the term italic alpha refers to the alphabet used in the English Language, a thru ‘zed’). Also keep a frequency count of other characters entered; not each other character but characters other than italic alphas.





Output a frequency count of each italic alpha, and the others.


Determine which italic alpha occurred most often.


Output the stream entered in uppercase transposed form [ A becomes B , B becomes C etc; Z becomes A ].





Do not use any library functions.





How would I go about making this program?

C++ project help?
Done sir.
Reply:Well firstly, for outputting in uppercase, call toUpperCase() on the string or char Array.








Continuisly run the progam with a while loop. For example, while(string.length %26lt; 97)


{


collect input


if(exit character is entered)


break;


}





Italic Alpha...? Meaning?


No comments:

Post a Comment