Write a program that allow the user to enter a single letter (both capital and lowercase) A-Z, a-z

  1. Ask the user to input a number between 0 and 9.
    1. Print out the user’s input into text. For example 1 should print “ONE”; 2 should print “TWO”;
    2. use if…elseif…else statement
  1. Go here: http://www.cplusplus.com/reference/cstring/strcmp/
    1. int strcmp(const char * str1, const char *str 2)
    2. What does this function do?
    3. What does it return?
    4. What does the function parameter take.
  2. Complete exercise number 1 except we will reverse the input and result.
    1. user input “ONE” (capitalized) the program should display 1.
  3. Write a program that allow the user to enter a single letter (both capital and lowercase) A-Z, a-z
    1. [hint] create a variable of type char to store the user’s input.
    2. And print the following:
      1. a = 1, b = 2, c = 3, A = 11, B = 22, C = 33
      2. if the user enter d,e,f,g,…z print out, “NO.”;
      3. In addition, I want to see your thoughts and understand of everything thus far. Comment (use single and multi-line) next to every single line of code stating its purpose.

        *2017/02/21

      4. }
      5.  return 0; // ????
      6. int main() {
      7. // ????
      8. using namespace std;
      9. // used to define where the function should exist
      10. #include <iostream>
      11. // includes the library iostream to receive the user’s input and print some variables
      12. */
      13. *If else statement practice.
      14. * Leonard Lam
      15. /**
      16. // Example of commenting I expect
Order from us and get better grades. We are the service you have been looking for.