| | |||||||
![]() | ![]() | |
![]() | ![]() | |
![]() | ![]() | ![]() |
| | LinkBack | أدوات الموضوع | طريقة عرض الموضوع |
|
#1
|
| شباااااااااب بنات اللي بالحاسب ويعرف يحل البرمجه هذي لاتبخلون بردكم لي تكفوووون ابيها ضروري الله يعافيكم Exercise 1 find errors in the following program #include <iostream> using namespace std; int ProductTwo(int,int); viod ProductFour(int,int,int,int); int num1,num2,num3,num4; int main() { cout << "this program will Multiply numbers, by using two functions" << endl; float num5; num1=2; num2=4; num3=ProductTwo(num1,num2); cout<< "Number 1 = "<<num1<<" Number 2 = "<<num2<<" Number 3 = "<<num3<<endl; num4=ProductTwo(); cout<< "Number 4 = "<<num4<<endl; num5=ProductFour(num1,num2,num3); cout<< "Number 4 = "<<num5<<endl; return 0; } float ProductTwo(int x, int y) { return (x*y); } int ProductFour(int n1, int n2, float n3, int n4) { return (n1*n2*n3*n4);Exercise 2 Write program that read two integer values from user then do four arithmetical operations. - Add( ) - Subtract( ) - Multiply( ) - Divide( ) Each function should receive two integers as parameter. These shouldn't return anything. The Output should be like this:- 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 Exercise3 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. Hint :- your program should contain these three functions:- Hat_size() that calculate the hat size by using this equation Hat size =(weight/height)*2.9 Jacket_chest_size() that calculate the Jacket chest size by using this equation Jacket chest size ={[(weight*height)/288]+1/8} *(ageOver30/10) Waist_size() that calculate the waist size by using this equation Hat size =[(weight/5.7)+(1/10) ]*(ageOver28/2)
_________________ ![]() |
|
#2
|
| هههههههههه و مشكوووووور والله يعطيك الف عافيه |
| مواقع النشر (المفضلة) |
| أدوات الموضوع | |
| طريقة عرض الموضوع | |
| |
-الدورات
التدريبية بجامعة نجران-