Latihan percabangan C++ dengan judul KPR. Editor dapat menggunakan Dev C++ dan Borland C++.
1 of 3
Download to read offline
More Related Content
C++ Latihan Percabangan KPR
1. Editor : Dev C++
Authors : kutuonline
Title : KPR
Marketing sebuah pemasaran rumah meminta untuk dibuatkan aplikasi berbasis konsol
yang dapat memudahkan proses transaksinya dengan spesifikasi berikut:
Kategori Unit Rumah
Kode Unit Cluster Harga Booking Fee
27 Romanov 275.900.000 2.500.000
36 Alamanda 347.500.000 3.000.000
40 Green Hill 478.950.000 3.500.000
Dp sebesar 30% dari harga rumah yang dipasarkan
Kategori Diskon DP
Kode Unit Diskon DP
27 5%
36 10%
40 15%
Total bayar DP = dp – diskon dp
Penyelesaian:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using namespace std;
/*-- using borland C++
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <iostream.h>
--*/
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
main()
{
char nmkonsumen[30], tgl[30], kdunit[10], *cluster = new char[30]; //-- if you
using borland c++, just type *cluster
long harga, booking, dp, diskon, totalbyrdp;