Question: written language C COP-2270 Lab 8 Write C programs for the problems below. Make sure to include in the file the source code in text

written language C
written language C COP-2270 Lab 8 Write C programs for the problems

COP-2270 Lab 8 Write C programs for the problems below. Make sure to include in the file the source code in text and the program output as screenshot of. Then, submit this file to Blackboard by the due date. Textbook's Chapter 8, page 371 Exercises 8.5 (Character Testing) Write a program that inputs a character from the keyboard and tests it with each of the functions in the character-handling library (textbook fig. 8.1). The program should print the value returned by each function. 8.6 (Displaying Strings in Uppercase and Lowercase) Write a program that inputs a line of text into chararray [100]. Output the line in uppercase letters and in lowercase letters. 8.7 (Converting Strings to Integers for Calculations) Write a program that inputs six strings that represent integers, converts the strings to integers, and calculates the sum and average of the six values. 8.8 (Converting Strings to Floating Point for Calculations) Write a program that inputs six strings that represent floating- point values, converts the strings to double values, stores the values into a double array and calculates the sum, and average of the values 8.9 (Comparing Strings) Write a program that uses function strcmp to compare two strings input by the user. The program should state whether the first string is less than, equal to or greater than the second string 8.10 (Comparing Portions of Strings) Write a program that uses function strncmp to compare two strings input by the user. The program should input the number of characters to be compared, then display whether the first string is less than, equal to or greater than the second string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!