Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fact.c #include #include lab02.h int fact(){ int result =1 , i ; for(i=2 ; i fib.c #include #include lab02.h int fib (){ int f1 =

fact.c

#include #include "lab02.h" int fact(){ int result =1 , i ; for(i=2 ; i

fib.c

#include #include "lab02.h" int fib (){ int f1 = 0 , f2 = 1 , result =0 , i ; if(n == 1) result =1 ; else for(i=0 ; i

output.c

#include #include "lab02.h" void output(int result){ printf("the result is :%d ", result); }

input.c #include #include "lab02.h" void input (){ printf("enter an integer: "); scanf("%d", &n); }

main.c

#include #include "lab02.h" int main (){ input(); fact(); fib(); return 0; }

image text in transcribed

please help me with the code and the command please

(in C programming language and Unix ) computer system lab 222

8- Modify the "main.c" to call the function: double pow(double x, double y): computes value of x raised to the power of y. Then calls the output function with the result as an argument. Also, it returns the value of the result. Name the modified source file "main3.c". Use the following interposition techniques: a) None: Use the standard pow function. Name the file "mypow1.c" and generate the executable object file "lab02e" Compile-time: Name the file "mypow2.e" and generate the executable object flc "lab02f b) c) Link-time: Name the file "mypow3.c" and generate the executable object file "lab02g". d) Run-time: Name the file "mypow4.c and generate the executable object file "lab02h". Include all the source files, commands used and their results with the execution of each file in your report

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

1. Practice giving the test before you actually use it.

Answered: 1 week ago