السلام عليكم ورحمة الله
انا حاب اطلب منكم طلب واتمنى ماتخيبوني وخصوصا ان هذي اول مشاركه لي واذا ساعدتوني اكيد راح اساعدكم
انا عندي برنامج مو عارفه كيف احله اتمنى انكم تساعدوني
وهذا هو البرنامج:
Write a program that asks the user’s height, weight, and age, and the computes clothing
sizes according to the formulas:
1: Hat size = weight in pounds divided by height in inches and all that multiplied by 2.9.
2: Jacket size (chest in inches) = height times weight divided by 288 and the adjusted by adding 1/8 of an inch for each 10 years over age 30. (Note that the adjustment only takes place after a full 10 years, so there is no adjustment for ages 30 through 39, but 1/8 inch is added for age 40.)
3: Waist size = weight divided by 5.7 and then adjusted by adding 1/10 of an inch for each 2 years over age 28.(Note that the adjustment only takes place after full 2 years. So, there is no adjustment for age 29, but 1/10 of an inch is added for age 30.)
Use function for each calculation. The program should allow the user to repeat this calculation as often as the user wishes.
The out put should look like this: (this is an example)
Give me your height in inches, weight in pounds, and age in years
and I will give you your hat size, jacket size (inches at chest) and your waist size in inches.
69
185
50
Hat size= 7.78
Jacket size= 44.57
Waist size= 33.56
Enter y or Y to repeat, any other character ends.
Y
The out put should look like this : (this is an example)
Give me your height in inches, weight in pounds, and age in years
and I will give you your hat size, jacket size (inches at chest) and your waist size in inches.
ومشكورين مقدما والله يجزاكم الف خير
ملاحظه : ابغى البرنامج اليوم ضروري ضروري عارفه اني متأخره بس عشان اني كنت احاول احله.