السـلآمّ عليكمّ والرحممه //
..
كيفكمّ أجمــعْ ؟؟؟ ’’
..
يـاليتّ ألقىّ عندكم حلّ لهـآلسؤآل لأني شوي ضآيعه في لغه سي بلص بلص ومو مستوْعبه مرره ’
فـ أتمنىّ أجد مآ أريد هنآ
Write a calculator program that read two integer values from user then do four arithmetical operations ( addition – subtraction – multiplication – division ).
1. Each operation should be performed in one function; named as follow: add() , subtract(), multiply(), and divide()
2. Each function should receive two integers as parameter and return result of operation
3. The Output should be as following:
|
|
|
|
Welcome To Calculator Program
Pleas Enter first number:
10
Pleas Enter second number:
5
The sum of your numbers 15
The subtract of your numbers 5
The multiply of your numbers 50
The divide of your numbers 2
|
|
|
|
|
Write a program that compute and display the suitable size of clothing (Hat , Jacket chest, and waist) by asking the user about his weight, height, and age. your program should contain these three functions:
1. Hat_size() that calculate the hat size by using this equation
• Hat size =(weight/height)*2.9
2. Jacket_chest_size() that calculate the Jacket chest size by using this equation
• Jacket chest size ={[(weight*height)/288]+1/8} *(ageOver30/10)
3. Waist_size() that calculate the waist size by using this equation
• Hat size =[(weight/5.7)+(1/10) ]*(ageOver28/2)