defiants14
10-16-2002, 11:02 PM
im having problems wiht my hw, its about calling, declaration etc.. i didnt start anything beccause frankly i dunno how to start it to make it call things. below is the problem
http://www.geocities.com/chinh_n_nguyen/hw.jpg
(visit that link for the picture)
Given r and d, in cm, write a program to calculate:
1. the area of circle
2. circumference of circle
3. colume of cylnder formed by displacing the circle by d.
program structure:
Main <---> Area
/\ /\
| |
\/ \/
Volume Circum
MAIN: reads r and d. calls area to calculate the area. calls vol to calculate the colume. then prints values of r,d,area,cirum, and vol
Area: calls circum to calc the circum
all functions area integer type and return 0
output:
Radius D Area Circum voulme
-------------------------------------------------------------
III II FFF.FF FFF.FFF FFF.FFFF
if anything sounds weird, dont ask me cuz dats wat i got from the teacher, damn he sucks
IM me if u wish: azn ixtci style
or email me : viet_nismo@hotmail.com
Thanks for your help!
http://www.geocities.com/chinh_n_nguyen/hw.jpg
(visit that link for the picture)
Given r and d, in cm, write a program to calculate:
1. the area of circle
2. circumference of circle
3. colume of cylnder formed by displacing the circle by d.
program structure:
Main <---> Area
/\ /\
| |
\/ \/
Volume Circum
MAIN: reads r and d. calls area to calculate the area. calls vol to calculate the colume. then prints values of r,d,area,cirum, and vol
Area: calls circum to calc the circum
all functions area integer type and return 0
output:
Radius D Area Circum voulme
-------------------------------------------------------------
III II FFF.FF FFF.FFF FFF.FFFF
if anything sounds weird, dont ask me cuz dats wat i got from the teacher, damn he sucks
IM me if u wish: azn ixtci style
or email me : viet_nismo@hotmail.com
Thanks for your help!