Posts

C + + Programming for Determining Leap Year or Not Leap Year

# include <cstdlib> # include <iostream> using namespace std; Leap class {        friend ostream & operator << (ostream &, Leap &);        friend istream & operator >> (istream &, Leap &);        public:               Intercalary () {};               void process () {                   if (year% 4 == 0) {                         result = "Leap Year";                   } else result = "No Leap Year";               }        private:                int year;                char * result; };    istream & operator >> (istream & in, Leap & insert) {    cout << "Enter year:";      in >> Enter.year;      return in; }    ostream & operator << (ostream & out, Leap & output) {    cout << "Year" << output.year << "is" << output.result;      return out; } int main (int argc, char * argv [])

C + + Programming to Convert Temperature

# include <iostream> # include <string> using namespace std; int main () {     int K;     int R;     int C;     int F;     cout << "Showing Temperature Convertion" << endl;     cout << "Enter the large temperature (C):";     cout << endl;     cin >> C;     R = 4/5 * C;     F = 9/5 * C +32;     K = C +273;        cout << "Convertion to Reamur =" << R << endl;     cout << "Convertion to Fahrenheit =" << F << endl;     cout << "Conversion to Kelvin =" << K << endl;        system ("pause");     return 0; }

Algorithm to convert temperature

Image
Gambar di atas adalah Flowchart untuk mengkonversi suhu dari Celcius ke Reamur, Fahrenheit, dan Kelvin.

Algorithm for Converting Units Distance from meters to centimeters and inches to centimeters

Image
flowchart untuk mengkonversi satuan jarak dari meter ke cm., dan inchi ke cm..

Algorithm Calculating distance between two points

Image
Contoh Kasus Gambar di bawah ini merupakan flowchart untuk mencari nilai dari jarak antara dua buah titik.

Algorithm to find the result of multiplying two numbers

Image
flowchart untuk mencari  hasil perkalian dari dua buah bilangan bulat yang di inputkan oleh user.., dimana awal mulanya: - Star - Masukkan bilangan X - Masukkan bilangan Y - Hasil = X * Y - Hasil dari 2 buah bilangan yang di kalikan. - End.

Reflektion Week to 4

Conferences Week 4 lecture Alpro      For week 4, lecture materials on the Alpro discuss Loop (loop) .., Loop material for this in his discussion of more complex in comparison with the previous. This material complements the previous minggu2 material, where a lot of discussion in the Loop should be explained or described in detail and also in raptornya program must be clear, when there is little wrong in any entry or programming then the program can not run properly ..