-Black Inspiration- -Telor-ceplox- -PROFIL- -Facebook- -Twitter- "* ikhsan_choco@ymail.com "*
Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!!----Stop Dreaming and Start Action Now...!! Jangan lupa kasih komentar demi kemajuan blog ini...!!!

1 Apr 2011

Convert a numeric value to a letter with dev c + +(Konversi nilai angka ke Huruf dengan dev c++)


I will Determining Conversion numerical value to letters by dev C + +, before I would mennjelaskan algorithm in advance .....

Algorithm :

Conversion determine the numerical value to a subsection:
1.    Enter a numeric value.
2.    Determine the limit of the value of the letters.
3.    See if there are more or less input from the boundary.
4.   Show results overall.

Deklarasi:

Integer : nilai;

Deskrips:

Tuliskan (nilai)
Buat batasan nilai:
“A “ dari 80 sampai 100
“B“ dari 60 sampai 80
“C “ dari 40 sampai 60
“D “ dari 20 sampai 40
“E “ dari 0 sampai 20
If no input value is beyond the scope yag value, display the error on the income value.

Conversion to C + + programming language:
#include <iostream.h>
int main ()
{

int nilai;

cout<<"masukan nilai anda :";
cin >> nilai;


if ((nilai >80)&&(nilai <100))
 {
 cout << "A" << endl;
 }

else if ((nilai >60)&&(nilai <80))
{
cout << "B" << endl;
}

else if ((nilai >40)&&(nilai <60))
 {
 cout<<"C" << endl;
 }

else if ((nilai >20)&&(nilai <40))
{
cout << "D" << endl;
}

else if ((nilai > 0)&& (nilai < 20))
{
cout <<  "E" << endl;
}

else
{
cout << "masukan nilai anda salah!"<< endl ;
}

return 0;
}

Mohon masukan teman-teman apabila memiliki cara yang kebih baik, mari kita sama-sama belajar!

Terima kasih.

Tidak ada komentar:

Posting Komentar