إعـــــــلان

تقليص
لا يوجد إعلان حتى الآن.

قاطه وجه بزياده من اولها

تقليص
هذا الموضوع مغلق.
X
X
 
  • تصفية - فلترة
  • الوقت
  • عرض
إلغاء تحديد الكل
مشاركات جديدة

  • قاطه وجه بزياده من اولها

    سامحوني واعذروني ان يكون اول مشاركه لي طلب واستفسار فتمنى انكم تسامحوني وتساعدوني
    انا عندي واجب حاولت بالاول وطلعلي انه في اخطاء حاولت معرفتها لكني ماعرفت وهناك سؤالين ثانين مافهمتهم
    فذا ممكن وماكون ثقلتها تساعدوني بالحل



    Exercise 1 (HW):

    Write a complete program that displays a temperature conversion using the following two functions :

    double Calc_Celsius(double Fahrenheit) : That convert temperatures written in Fahrenheit to Celsius, you subtract 32, multiply by 5 and then divide by 9

    double Calc_Absolute_Value(double celsius) : To convert Celsius to Absolute Value (Kelvin), you add 273.15

    Your program must have as input 20 Fahrenheit temperatures values and as output on the screen the following values as example:


    Fahrenheit Celsius Absolute Value

    0 -17.78 255.37
    20 -6.67 266.48
    40 4.44 277.59
    ... ...... ......
    ... ...... ......
    300 148.89 422.04

    الاجابه

    #include<iostream.h>
    double Calc_Celsius(double Fahrenheit);
    double Calc_Absolute_Value(double celsius);
    int main()
    {

    float fahrenheit,celsius,Absolute Value;
    while(t<20)
    {
    cout<<"enter temperature in fahrenheit"<<endl;
    cin>>fahrenheit;
    cout<<"\t"<<fahrenheit<<"\t"<<celsius<<"\t"<<Absol ute Value<<endl;
    t++;
    }
    return 0;

    }
    double Calc_Celsius(double Fahrenheit)
    {
    celsius=((fahrenheit-32)*5)/9;
    return celsius;
    }

    double Calc_Absolute_Value(double celsius)
    {
    Absolute Value=(celsius+273.15);
    return Absolute Value;

    }

    الاثنين الي مافهمتهم
    Exercise 2 (HW):
    Write a program that reads in a character <char> from the keyboard, and then displays one of the following messages: (i) if <char> is a lower case letter, the message "The upper case character corresponding to <char> is ...", (ii) if <char> is an upper case letter, the message "The lower case character corresponding to <char> is ...", or (iii) if <char> is not a letter, the message "<char> is not a letter". You will need to refer to a table of ASCII characters.
    Exercise 3 (HW):

    Write a function using Recursion to enter and display a string in reverse.
    Your program must call a recursively function called "print_backwards()", which inputs a series of characters from the keyboard, terminated with a full-stop character, and then prints them backwards on the screen.

    شكرااا
يعمل...
X