#import <Foundation/Foundation.h>
#define BMI 22

@interface HCare : NSObject
{
	NSString *name;
	double height;
}

- (double) stdWeight;

@property double height;
@property(copy) NSString *name;
@end


@implementation HCare

@synthesize height;
@synthesize name;

- (double) stdWeight
{
	return(pow((height / 100), 2) * BMI);
}

@end



int main (int argc, const char * argv[]) {
	HCare *myself, *myFriend;
	myself = [[HCare alloc] init];
	myself.name = @"OTU TARO";
	myself.height = 180;
	NSLog(@"%@ :%.1fkg",myself.name, [myself stdWeight]);
	
	
	myFriend = [[HCare alloc] init];
	myFriend.name = @"KITA JIN";
	myFriend.height = 165;
	NSLog(@"%@ :%.1fkg",myFriend.name, [myFriend stdWeight]);
}
