Programming

profileAdejoke
3.7GuidedPractice.docx

3.7 Performance AssessmentPre-Defined Functions using ctype.h and stdio.h

In this assessment, you will write a C code for a program that uses functions from the ctype.h and stdio.h header files.  This program asks the user to enter a character and then displays a message based on its case using the  isupper() and  islower() functions.

The functions used in this program include:

· puts() from the stdio.h header file -  puts() displays string data

· islower() and  isupper() from the ctype.h header file -  islower() checks to see if a letter is lowercase and  isupper() checks to see if a letter is uppercase.

Instructions

Follow these instructions to complete your assignment:

1. Write C code for a program that does the following:

· Uses the puts() function to prompt the user to enter a letter and the scanf() function to store the letter the user enters.

· Uses the islower() and isupper with if() statements to determine the case of the letter

· Messages should be displayed based on the outcome of the if condition

2. Submit the following files:

· A screenshot of your output including the Title Bar of the console window .docx file

· Your C code .c source file

3. Save your documents, and upload them using the instructions below.

Review the output below to check your work!

Output

Here is what the output looks like:

Graphical user interface, text  Description automatically generated

image1.png