Question: How can I complete this without using the int main() function?Because we are using the menu system, the function for this problem cannot be called

 How can I complete this without using the int main() function?Because

How can I complete this without using the int main() function?Because we are using the menu system, the function for this problem cannot be called "main" as stated in the book.

here is my code:

#include

void show(double rates[], int size) {

int i;

for (i = 0; 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);

getchar();

}

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

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!