Question: C program questions Write a program that reads in integers in the range of 1 to 100, stopping when a zero is read. Give the

C program questions

Write a program that reads in integers in the range of 1 to 100, stopping when a zero is read. Give the number of unique integers that were entered. That is, how many numbers in the range of 1-100 were in the input? Hint: use an array of 100 items, one for each of 1-100, and mark locations when you see a given number.

Write a function flipCase that takes a character string as its argument. It returns the modified character string with all lower-case characters converted to their upper-case equivalent, and all upper-case characters converted to their lower-case equivalent.

Write a function orderTwo that takes the addresses of two integers as its arguments. It returns these two integers, with the smallest value in the first parameter and the largest value in the second parameter.

Write a function orderThree that takes the addresses of three doubles as its arguments. It returns these three doubles ordered from largest to smallest.

Write a function hasDups that takes an integer array with ten elements and returns 1 (true) if there are any duplicates in the array. It returns 0 (false) if there are no duplicate values found in the array.

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!