|
can i get help with that:
A. Write a C++ program with a case structure. The program reads in a character from the user, then translates it into a different character according to the following rules:
1 . characters A, B, C will be translated to characters z, y, x respectively;
2 . characters 6, 7, 8, 9 will all be translated to character 5;
3 . the space character ' ' will be translated to underscore '_'
4 . all other characters remain unchanged.
The program then displays the translated character
B.
Write a C++ program that reads from keyboard 3 words, with proper input prompt, and then display them in the order of the word length (shortest word first).
C.
Write a C++ program with a loop structure that reads in 5 integers one by one, calculate the sum of the even values that are read and display the final result.
|
|
|
|
|
|
|
|