You are on page 1of 2

200910/DA/T0016/ Soal04 FM-BINUS-AA-FPT-66/R4

Soal Praktikum
Practicum Case

T0016
Algoritma dan Pemrograman
Jurusan
Kelas 01PUT 01PVT 01PWT 01PXT 01PYT 01PZT 01SAT Department
Class Teknik Informasi
Computer Science
Periode Berlaku Semester Ganjil 2010/2011 Revisi 00
Valid on Odd Semester Year 2010/2011 Revision00

Tujuan Instruksional Khusus


Special Instructional Course
 Write a program in C language in problem solving
Pokok Bahasan
Subject Discussion
 Selection
Materi
Material
 Create a program using selection control
Soal
Case
A computer shop wants to make an application to monitor daily transactions. Price of every
computer in the shop depends on the capacity of RAM and VGA. The owner of the shop hired you to
make the application. Here are the prototype criteria of the application:
o Ask user to input a name. The length of the name must be between 1 and 30
characters.
o Ask user to input quantity of computer he/she wants to buy. The quantity must be
between 1 and 5.
o Ask user to input VGA and RAM capacity of every computer he/she wants to buy.
The capacity must be between 128 and 1024.
o Calculate and show the price of every computer based on the capacity of its VGA and
RAM.
Computer price = (VGA capacity * 9200) + (RAM capacity * 7600)
o Calculate and show total price of all items (computers).
o If the total price is greater than 5.000.000, user gets a discount (10%). Show new
total price (after getting discount)
o Ask user to input payment. The payment must be greater than or equal to the new
total price.
o Calculate and show change.
Change = Payment- New Total Price

Halaman : 1 dari 2
Page 1 of 2
Please run the EXE file to see the sample program.
Print Screen of the Program

Print Screen of Inputting VGA and RAM Capacity

Print Screen of Inputting Payment

Halaman : 2 dari 2
Page 2 of 2

You might also like