subject

Write a program called lab5.c which will prompt the user to enter a single letter or number on the keyboard. If the user enters a lower case letter, the program will print out the same letter as a capital letter. If the user enters a capital letter, the program will print out the same letter in lower case. If the user enters an even number, the program will print out a message saying that it is an even number. If the user enters an odd number, the program will print out a message saying that it is an odd number. If the user enters anything that is not a letter or a number, the program will print out a message indicating that they entered an invalid character. Once you get that working, make the program loop continually, asking the user if they want to go again, using a 1 for yes and a 0 for no. If they enter a 1, then they will be prompted to enter a single letter or number on the keyboard again, displaying the results explained above. If they enter a 0, then the program will quit. With this loop added, your output should look similar to the following: Enter a letter or number from the keyboard. d The upper case of that letter is: D. Would you like to go again? Enter 1 for yes, 0 for no. 1 Enter a letter or number from the keyboard. R The lower case of that letter is: r. Would you like to go again? Enter 1 for yes, 0 for no. 1

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
This program will store roster and rating information for a soccer team. coaches rate players during tryouts to ensure a balanced team. (1) prompt the user to input five pairs of numbers: a player's jersey number (0 - 99) and the player's rating (1 - 9). store the jersey numbers in one int vector and the ratings in another int vector. output these vectors (i.e., output the roster). (3 pts) ex: enter player 1's jersey number: 84 enter player 1's rating: 7 enter player 2's jersey number: 23 enter player 2's rating: 4 enter player 3's jersey number: 4 enter player 3's rating: 5 enter player 4's jersey number: 30 enter player 4's rating: 2
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
Me ajude por favor , coloquei uma senha e nĂŁo consigo tira-la no chorme
Answers: 2
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
You know the right answer?
Write a program called lab5.c which will prompt the user to enter a single letter or number on the k...
Questions
question
Mathematics, 20.09.2020 08:01
question
Mathematics, 20.09.2020 08:01
question
Mathematics, 20.09.2020 08:01
question
Mathematics, 20.09.2020 08:01
question
English, 20.09.2020 08:01
question
Mathematics, 20.09.2020 08:01
Questions on the website: 13722363