Minggu, 17 April 2016

Problem selving

ANALYSIS
You will need separate arrays to hold the revenue table, the unit totals (row sums)
and the hospital quarterly totals (column sums).

Algoritma:



Judul     : Summary of Hospital Revenue
Deklarasi:
                I, j, max, temp   integer
Deskripsi :    
            Max  input
            For (i=1;i<=max;i++) then
            Write(‘ Masukkan data ke- ‘I’)
            for(i=1;i<=max;i++) then
write(‘data[i]’)
for(i=1;i<=max;i++) then
for(j=1;j<=max;j++) then
if(data[i]>data[j]) then
write(‘temp=data[i])
            data[i]   data[j]; 
data[j]   temp; 
Source Code:
#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

int main(int argc, char** argv) {
    int i, j, max, temp;
    int data[10];
    cout<<"\t------Summary of Hospital Revenue------- "<<endl;
    cout<<"Masukan banyak data ";
    cin>>max;
    for(i=1;i<=max;i++){
        cout<<"Masukan data ke-"<<i<<" ; ";
        cin>>data[i];
        }
    cout<<"Data Awal : ";
    for(i=1;i<=max;i++){
        cout<<data[i]<<" ";
    }
    for(i=1;i<=max;i++){
        for(j=1;j<=max;j++){
        if(data[i]>data[j]){
            temp=data[i];
            data[i]=data[j];
            data[j]=temp;
        }
    }
}
    return 0;
}
uotput

jika mau jawaban problem selving 541 klik
jika mau jawaban problem selving 538 klik

1 komentar:

Abdullah Ardhi Mahendra

wooowww... sangat membantu sekali... barakallahu fiikum

Posting Komentar

Posting Lebih Baru Posting Lama Beranda

Diberdayakan oleh Blogger.

About us

Formulir Kontak

Nama

Email *

Pesan *

Find Us On Facebook

Translate

Popular Posts

Video Of Day

About

TechClue

Techclue Is A Multi layout Style Blogger Template. You Can Use This Template For Education Site As Well As For Simple Magazine Sites. Techclue Is The Perfect Combination Of Design.We install Lots Of Features Like Responsive Layout, SEO Optimization Etc.

Join Our Community!

Popular Posts

Recent Posts

Popular Posts

 

Followers

 

Flickr Gallery

Templates by Nano Yulianto | CSS3 by David Walsh | Powered by {N}Code & Blogger