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

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

- (void) setName:(NSString *)name;
- (NSString *) name;
- (void) setHeight:(double) height;
- (double) height;
- (double) stdWeight;

@end


@implementation HCare

- (void) setName:(NSString *)n
{
	name = n;
}

- (NSString *) name
{
	return name;
}

- (void) setHeight:(double) h
{
	height = h;
}


- (double) height
{
	return height;
}

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



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

	myFriend = [[HCare alloc] init];
	[myFriend setName:@"KITA JIN"];
	[myFriend setHeight:165];
	NSLog(@"%@ :%.1fkg",[myFriend name], [myFriend stdWeight]);
	
}
