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 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 24.06.2019 21:50
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
question
Computers and Technology, 25.06.2019 11:10
1. when you see a sign colored yellow, you should: o a. adjust your driving for the condition indicated b. figure out if you're nearing your destination o c. obey the prohibition indicated on the sign
Answers: 1
question
Computers and Technology, 26.06.2019 04:40
Drag each tile to the correct box. mayra is writing a report on various career opportunities in the field of web and digital communications. while researching about dtp, she comes across the different tasks involved in creating a dtp document. she wants to know the typical sequence in which a dtp professional performs these tasks. can you her arrange the different dtp tasks in the correct order?
Answers: 1
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, 15.12.2020 01:00
question
Mathematics, 15.12.2020 01:00
Questions on the website: 13722363