عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 30-11-2010, 02:14 AM
الصورة الرمزية a7af

a7af a7af غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Oct 2009
نوع الدراسة: إنتظام
المستوى: الخامس
الجنس: ذكر
المشاركات: 233
افتراضي سؤال في كلاس وورك 5 في البرمجة مساعدة .


اتمنى احد يعطيني الجواب حق السؤالين هذي لأني حاولت وما قدرت وضروري لأن الموعد غدا

الصباح .
___

 Exercises in class

Write a program using two functions, one to calculate the hypotenuse (H)
and the another to calculate hypotenuse and area of a triangle


Hint:
i. Hypotenuse = sqrt(pow(a,2)+ pow(b,2)) ( < math.h>)
ii. Area = (a * b)/2
____

Type the following program and fill the missing words carefully . Compile and run. Save As: Lab5_math.c

#include <stdio.h>
#include <math.h>

int main(void)
{
double x, y , z, v;

printf("Enter the number : \n");
scanf("%.." , ...);

y = pow(sin(x),2);
z = pow(cos(x),2);
v = y + z;

printf("……………………………………………..is=%.. \n",..);

return (0);
}

Finally ,Write the equation of "v " using insert equation in Microsoft Word .
رد مع اقتباس