Question: 3. Suppose we have the following array: int arr [5] = {2,7,9,10,0): Write a C+program to find the sum and average of this array. 4.
3. Suppose we have the following array: int arr [5] = {2,7,9,10,0): Write a C+program to find the sum and average of this array. 4. Write a program that has main0 call a user-defined function that takes a Celsius temperature value as an argument and then returns the equivalent Fahrenheit value. The program should request the Celsius value as input from the user and display the result, as shown in the following code: Please enter a Celsius value: 20 20 degrees Celsius is 68 degrees Fahrenheit. For reference, here is the formula for making the conversion: Fahrenheit- 1.8 x degrees Celsius 32.0 5. Write a program that requests the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers; assume that the smaller integer is entered first. For example, if the user enters 2 and 9, the program should report that the sum of all the integers from 2 through 9 is 44
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
