Powered by Blogger.

Shopping Cart Details


Order Details Amount
GRAND TOTAL:

Please choose a checkout option.
No personal data required.

Send in Orders

It's Quick & Easy! Details here will not be published.

Please include messages to us here.

Checkout

Popular Posts

Flowchat dan Program Konfersi dari Celcius ke R, F dan K

  

Algoritma Pemograman - Flowchat dan Program Konfersi dari Celcius ke R, F dan K | Postingan kali ini saya share tentang Permasalahan Konfersi dari Celcius ke R, F dan K. Ketentuan yang harus dipenuhi yaitu :
  • Input : Inputan c
  • Proses :  r =4/5*c.    f =9/5*c+32.     k =c+273
  • Output : Output r,k,f
Dari ketentuan diatas pertama kita buat flowchatnya dengan bantuan software raptor, menjadi :

Dari Flochart diatas kita masukan ke salah satu kompiler, disini saya menggunakan dev C++ :


#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   int k;
   int r;
   int c;
   int f;

   cout << "Program Konfersi dari Celsius ke Reamur, Fahrenheit dan Kelvin" << endl;
                raptor_prompt_variable_zzyz ="Masukan besar suhu (C) = ";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> c;
   r =(4.0/5)*c;
   f =9.0/5*c+32;
   k =c+273;
   cout << r<<" R" << endl;   cout << f<<" F" << endl;   cout << k<<" K" << endl;
   system("pause");
   return 0;
}

No comments yet. Add your comments now!

Post a Comment




Instagram ROACH


Info Section Text