Bahasa pemrograman ii
This presentation is the property of its rightful owner.
Sponsored Links
1 / 8

BAHASA PEMROGRAMAN II PowerPoint PPT Presentation


  • 84 Views
  • Uploaded on
  • Presentation posted in: General

BAHASA PEMROGRAMAN II. DEDED RAMAD KAMDA, S. KOM. DESAIN. INPUT NAMA. INPUT NILAI UTS. INPUT NILAI UAS. TAMPILKAN HASIL. PROSES. Nama. INPUT. INPUT. NoBP. Nilai UTS. INPUT. Niilai UAS. INPUT. Nilai Akhir. Hasil (output). HASIL. Program 1. #include <iostream.h>

Download Presentation

BAHASA PEMROGRAMAN II

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Bahasa pemrograman ii

BAHASA PEMROGRAMAN II

DEDED RAMAD KAMDA, S. KOM


Desain

DESAIN

INPUT NAMA

INPUT NILAI UTS

INPUT NILAI UAS

TAMPILKAN HASIL

PROSES


Bahasa pemrograman ii

Nama

INPUT

INPUT

NoBP

Nilai UTS

INPUT

Niilai UAS

INPUT

NilaiAkhir

Hasil (output)


Hasil

HASIL


Program 1

Program 1

#include <iostream.h>

#include <conio.h>

#include <stdio.h>

main()

{

char nama[30],nobp[16];

int nilaiuts, nilaiuas;

float na,nb;

clrscr();

cout<<"Nama Mahasiswa :";

gets(nama);

cout<<"Nilai UTS :";

cin>>nilaiuts;

cout<<"Nilai UAS :";

cin>>nilaiuas;

na=nilaiuts+nilaiuas;

nb=na/2;

cout<<"Nilai Akhir="<<nb<<endl;

getch();

}


Bahasa pemrograman ii

INPUT NAMA

(gets)

INPUT NILAI UTS(cin)

INPUT NILAI UAS(cin)

TAMPILKAN HASIL (cout)

PROSES


Pembahasan

PEMBAHASAN

  • UNTUK MENAMPILKAN DATA ( COUT<<“”;)

  • UNTUK INPUT (CIN>> ;) (GETS(VARIABEL);)

    #include <iostream.h> CIN,COUT

    #include <conio.h> GETCH()

    #include <stdio.h> GETS()


Latihan

LATIHAN


  • Login