1 / 8

BAHASA PEMROGRAMAN II

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>

nemo
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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAHASA PEMROGRAMAN II DEDED RAMAD KAMDA, S. KOM

  2. DESAIN INPUT NAMA INPUT NILAI UTS INPUT NILAI UAS TAMPILKAN HASIL PROSES

  3. Nama INPUT INPUT NoBP Nilai UTS INPUT Niilai UAS INPUT NilaiAkhir Hasil (output)

  4. HASIL

  5. 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(); }

  6. INPUT NAMA (gets) INPUT NILAI UTS(cin) INPUT NILAI UAS(cin) TAMPILKAN HASIL (cout) PROSES

  7. PEMBAHASAN • UNTUK MENAMPILKAN DATA ( COUT<<“”;) • UNTUK INPUT (CIN>> ;) (GETS(VARIABEL);) #include <iostream.h> CIN,COUT #include <conio.h> GETCH() #include <stdio.h> GETS()

  8. LATIHAN

More Related