subject
Computers and Technology, 28.06.2019 18:30 saharB

Convert activity3.c below to a multi-file c program with 3 files: activity3.c, mymath. h, and mymath. c. give the gcc command to build the new program. don’t forget the include guards! when you are done, copy each file to this document in the appropriate place.
/* activity 3 - create a header file */
#include
#define pi 3.14159
int square(int x) {
return x * x;
}int main() {
int radius;
double area;
printf("enter the radius: ");
scanf("%d", & radius);
area = pi * square(radius);
printf ("the area of a circle with radius %d is %.2f\n", radius, area);
return 0;
}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:30, Prettygirlyaya
How is the brightness of oled of the diaplay is controled
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, minnie7760
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, Timeisjesus
Answer these and get 40 points and brainliest
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, tami5
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
You know the right answer?
Convert activity3.c below to a multi-file c program with 3 files: activity3.c, mymath. h, and mymat...

Questions in other subjects:

Konu
Mathematics, 07.05.2021 15:40