Lab homework-4
Sat.1/6/1431 – Mon. 3/6/1431
The Calculator :
Write a program that do the four-function calculator. The program should ask for a number , then an operator, then other number ( use float). The output might look like the following:
Enter first number, operator, second number : 10 / 5
Answer = 3.333333
وهذا الواجب الثاني ..
Lab homework-5 (bonus ! )
Sat.1/6/1431 – Mon. 3/6/1431
Write a temperature-conversion program that gives the user the option of converting Fahrenheit to Celsius or Celsius to Fahrenheit. Then carry out the conversion. Use the floating-point numbers. The output might look like this :
Type 1 to convert Fahrenheit to Celsius
2 to convert Celsius to Fahrenheit
Enter temperature in Fahrenheit : 70
The temperature in Celsius is 21.111111
ترى مرره مو فاهمه شي علموني وش اسوي بالتفصيل وش المطلوب .. الله يخليكم ياارب
تكفون ساااعدووني .. ربي يساعدكم
* التسليم يوم السبت ضروووووري