Tugas 1. Borland c++ (Rental DVD Alvavatar)

#include <iostream.h>
#include <stdio.h>
#include <conio.h>
main()
{
int kode,tahun,harga,jumlah,total;
char judul [40],sutradara [40],produksi [40];
cout<<“RENTAL DVD ALVATAR”<<endl;
cout<<“———————————–“<<endl;
cout<<“Input Kode film :”;
cin>>kode;
cout<<“Input Judul Film :”;
gets (judul);
cout<<“Input Sutradara :”;
gets (sutradara);
cout<<“Input Produksi :”;
gets (produksi);
cout<<“Input Tahun Produksi :”;
cin>>tahun;
cout<<“Input Harga DVD :”;
cin>>harga;
cout<<“Input Jumlah Peminjaman :”;
cin>>jumlah;

cout<<“———————————–“<<endl;
cout<<“Kode DVD :”<<kode<<endl;
cout<<“Judul Film :”<<judul<<endl;
cout<<“Sutradara :”<<sutradara<<endl;
cout<<“Produksi :”<<produksi<<endl;
cout<<“Tahun Produksi :”<<tahun<<endl;
cout<<“Harga DVD :”<<harga<<endl;
cout<<“Jumlah Peminjaman :”<<jumlah<<endl;

cout<<“———————————–“<<endl;
total = harga*jumlah;
cout<<“Total Harga :”<<total;
getch();
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: