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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started