سفارش تبلیغ
موسسه تبیان
++ LEARN PROGRAMING TO LANGUAG C
برترین دانش، آرامش و بردباری است . [امام علی علیه السلام]



ارسال شده توسط hsanali lotfi در 14/6/88:: 1:22 صبح

  <!-- /* Font Definitions */ @font-face {font-family:Calibri; mso-font-alt:"Century Gothic";} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; text-align:right; line-height:115%; direction:rtl; unicode-bidi:embed; font-size:11.0pt; font-family:Calibri;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} -->

 


شرکتی به هر یک از دو نفر از متخصصین خود ماهانه 750000 ریال پرداخت می کند ، او می خواهد بداند که اگر 5/13 درصد به حقوق هر کدام اضافه کند ، سالانه چقدر به هزینه شرکت اضافه می شود . برنامه ای بنویسید که این کار را برای شرکت انجام دهد.


ج :


#include <iostream.h>


#include <conio.h>


int main(){


            long int x ;


            x= (( 750000 * 13.5 ) / 100) * 12 ;


            cout << " expend for 1 year is  " << x ;


            getch();


            return 0 ;


}



کلمات کلیدی :

ارسال شده توسط hsanali lotfi در 13/6/88:: 7:11 صبح

برنامه نویسی به زبان



C++  


/*<![CDATA[*/ <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:right; direction:rtl; unicode-bidi:embed; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:595.3pt 841.9pt; margin:341.45pt 233.25pt 341.45pt 233.25pt;} div.Section1 {page:Section1;} --> /*]]>*/



کلمات کلیدی :

ارسال شده توسط hsanali lotfi در 13/6/88:: 7:10 صبح

<!-- /* Font Definitions */ @font-face {font-family:Calibri; mso-font-alt:"Century Gothic";} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; text-align:right; line-height:115%; direction:rtl; unicode-bidi:embed; font-size:11.0pt; font-family:Calibri;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} -->

 


برنامه ای بنویسید که وزن کالایی را بر حسب کیلوگرم دریافت کرده ، وزن آن را بر حسب گرم در خروجی چاپ کند .


ج :


#include <iostream.h>


#include <conio.h>


int main(){


            int x , y ;


            cout << " please enter kg : " ;


            cin >> x ;


            y = x * 1000;


            cout << " gr : " << y ;


            getch();


            return 0 ;


}



کلمات کلیدی :

ارسال شده توسط hsanali lotfi در 13/6/88:: 7:6 صبح

<!-- /* Font Definitions */ @font-face {font-family:Calibri; mso-font-alt:"Century Gothic";} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; text-align:right; line-height:115%; direction:rtl; unicode-bidi:embed; font-size:11.0pt; font-family:Calibri;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} -->

برنامه ای بنویسید که مقدار x را از ورودی خوانده ، عبارت زیر را محاسبه کند :


1  


y = ---------------


        x2 + x + 3


ج :


#include <iostream.h>


#include <conio.h>


 int main(){


            float x , y ;


            cout << " please enter 1 number : " ;


            cin >> x ;


            y = 1 / ( (x*2) + x + 3 );


            cout << " y = 1 / ( (x*2) + x + 3 ) : " << y ;


            getch();


            return 0 ;



کلمات کلیدی :