Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions