Question: WRITE THE FOLLOWING: 1) A C program to ask the user to enter 10 integers and store them in an array. Meanwhile, set up 50

WRITE THE FOLLOWING:

1) A C program to ask the user to enter 10 integers and store them in an array. Meanwhile, set up 50 as a threshold, and figure out how many numbers in the array are bigger than this threshold. Please print out the counting result in the end.

2)C program with the following requirements: Define an integer array with 10 numbers inside [1, 10] (inclusively). Define a sub-function, which has the functionality of accessing all the 10 elements in the array and print them all out. Call your sub-function in main function by reference.

Note: please pay attention to learning material Passing an array by reference for your information.

3) C program to complete the requirements as below: Ask the user to type in a string with a length less than 15 and store it. Define one string with the assigned value abcdef, and define another string with the assigned value 123456. Compare these two and print out the bigger one. Append the bigger string between abcdef and 123456 to the string the user entered, and figure out the length of it; finally, print out the combined string as well as its length.

Note: in this programming, you should use some commonly used built-in String functions such as strcpy(), strcat(), strlen(), and strcmp(). Meanwhile, please keep in mind, fgets() is another function you can apply to accept the input from the users.

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!