Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab8.c given below. Have to make sure it has the following 6 files. Im so confused on this. Need super help. /* Wesley Grant Lab:01

Lab8.c given below. Have to make sure it has the following 6 files. Im so confused on this. Need super help.

image text in transcribedimage text in transcribed

/* Wesley Grant Lab:01 3/17/2017 Lab 8 user choose 4 different ways of initializing each array. After each initialization,the array should be printed to the user to show it was initialized correctly by calling a printArray funtion. */

#include void numbers(int array[20]) { int i; for(i=0;i

scanf("%d",&option); switch(option) { case 1: if(n==0) numbers(array1); else numbers(array2); break; case 2: if(n==0) evenNumbers(array1); else evenNumbers(array2); break; case 3: if(n==0) oddNumbers(array1); else oddNumbers(array2); break; case 4: if(n==0) fibbonacci(array1); else fibbonacci(array2); break; } n++; if(n==2) break; }while(n Copy your lab8.c file over to your lab 10 directory. Ifyou did not complete lab8.c,then you'll need to complete that file before working on this lab. Along with your main function, your lab8.c program should consist of the following functions: void initialize (int a J) void all (int a void even t a 1) (in void odd (int a void fib (in a t void print Array (int a 1); int inner Product in a r J, int b 1) t For this lab, you will end up with the following 6 files: 1. lab10.c main will be implemented here the arrays will still be declared here the initialization and print functions are called from here the inner Product function will be called from here, and the result of the inner Product function will be returned back here to the main function which will print the result to the user 2. initialize.c the following functions and their implementations will reside in this module void initialize (int a J) void all (int a void even t a 1) (in void odd (int a void fib int a 1); 3. print.c the print Array function will be in this module 4. inner Product.c the inner Product function will be in this module 5. lab10. h all the needed C library include statements will be in this header file, as well as the #define for the SIZE of the arrays (if you didn't use fdefine for SIZE, then you should change your code to use this preprocessor constant), and also all the function prototypes 6. makefile provided for you on Canvas (download this file to your labl0 directory)

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago