Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is in C Programming language or wht ll ll B.ercise la in a complete program

ID: 3710894 • Letter: T

Question

This is in C Programming language

or wht ll ll B.ercise la in a complete program and run the pro- 2. Write a program that has a declaration in main() to store the following numbers into an rates: 6.5, 8.2, 8.5, 8.3, 8.6, 9.4, 9.6, 9.8, 10.0. There should be a function dis- gram on a computer array named call to show() that plays the numbers in the array accepts the rates array as a parameter named rates and then 3. a. Write a program that has a declaration in main ( ) to store the string "Ta car?m

Explanation / Answer

#include<stdio.h>
void show(double rates[], int size) {
int i;
for(i=0;i<size;i++) {
printf("%lf ", rates[i]);
}
printf(" ");
}
int main() {
double rates[9] = {6.5,8.2,8.5,8.3,8.6,9.4,9.6,9.8,10.0};
show(rates, 9);

}

Output:

6.500000 8.200000 8.500000 8.300000 8.600000 9.400000 9.600000 9.800000 10.000000

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote