1. Engineering
  2. Computer Science
  3. clare all variables print quothello my name is add your...

Question: clare all variables print quothello my name is add your...

Question details

clare all variables. Print Hello my name is (add your name here) onto the screen. Prompt the user for a letter. Scan/read the character from the keyboard. NOTE: you do not need to force the user to enter a letter, it is ok for the user to e o character (number, symbol, etc.) //EXAMPLE: char upperletter toupper(first_letter); NOTE: ifthe user entered an uppercase letter you will print 2 uppercase letters on Change the letter to uppercase . .Print both the original letter andthe uppercase letter onto the screen. o Prompt the user for a second letter. Scan/read the letter from the keyboard. NOTE: you do not need to force the user to enter a letter, it is ok for the user to en character (number, symbol, etc) Change the letter to lowercase . //EXAMPLE: char lowerLetter tolower (second_letter); .Print both the original letter and the lower-case letter onto the screen. NOTE: if the user entered a lower-case letter you will print 2 lower-case letters on o Prompt the user for an integer //Example: int number Scan/r . Prompt the user for a double //Example: double second number ead the integer from the keyboard (assume the user will enter an integer) Scan/read the double from the keyboard (assume the user will enter a double) . Add the integer (number) to the double (second number) and store that result in a double //Example double result; Print the result onto the screen
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution