5 0 499 KB
FM-BINUS-AA-FPU579/R3
BINUS University BINUS ONLINE LEARNING Graduate Program Undergraduate Program Final Exam
Others Exam:
Faculty / Dept. Course Day/ Date BULC
: : : :
Semester: Odd/ Even *) Period: 1 / 2 *) Academic Year: 2020/2021
Binus Online Learning/ Computer Science Student ID : 2440088463 COMP6740-Program Design Methods Senin – Senin / 15 - 22 Februari 2021 : ATRIA ERNANDIA R. Bekasi, Bandung, Jakarta, Malang, Medan, N a m e Batam, Samarinda, Makasar, Semarang Class : TTCA, LFCA, TUCA, LICA, TSCA, TOCA Time : 00.00 – 12.00 WIB Signature : Exam Feature : Open/ Close Books*) Equipment : Exam Booklet / Calculator / Laptop Ý) Ý) Strikethrough the unnecessary items Please insert this test paper into the exam booklet and submit both documents after the test!!! The penalty for CHEATING is DROP OUT!!!
i. ii. iii. iv.
PETUNJUK UJIAN Jawablah setiap pertanyaan yang berada pada bagian PERTANYAAN UJIAN dibawah ini Jawaban di ketik rapi pada halaman JAWABAN UJIAN dibawah ini Jawaban dikumpulkan paling lambat tanggal 22 Februari 2021 dalam bentuk file dan submit melalui portal ujian Format file Jawaban adalah : KodeMatakuliah-Nama MatakuliahNIM.pdf Contoh : COMP6740-Program Design Methods -
PERTANYAAN UJIAN No. 1
Deskripsi Bobo Soal t Sebuah perusahaan listrik ABC mempunyai file data dari pemakaian listrik pelanggan 40 dimana informasi yang dicatat berupa no pelanggan, nama pelanggan, jumlah pemakaian pelanggan (kWh). Dari data yang ada tersebut maka perlu dilakukan perhitungan biaya yang harus dibayarkan oleh pelanggan sesuai dengan ketentuan sebagai berikut: • Penggunaan dibawah 100 kWh akan dikenakan biaya sebesar Rp. 1500,00 per kWh. • Penggunaan lebih dari 100 kWh akan dikenakan biaya sebagai berikut: o 100 kWh pertama akan dikenakan biaya Rp. 1500,00 per kWh. o Sisa kelebihan kWh berikutnya akan dikenakan biaya Rp. 1200,00 per kWh. Anda diminta untuk membuat sebuah program yang akan membaca data tersebut dan mecetak laporan jumlah biaya yang perlu dibayarkan untuk setiap pelanggan yang ada. a. Buatlah Definisi diagram dari permasalahan tersebut. [5%] b. Buatlah hierarchy chart. [5%] c. Buatlah algoritma dalam bentuk pseudocode untuk membuat laporan tersebut. [15%] d. Buatlah desk checking tablenya dengan minimal 2 dataset. (1 dataset cukup terdiri dari 2 records). [15%]
EHY | Page 1 of 3
FM-BINUS-AA-FPU579/R3
2
Ani membuat sebuah restoran baru yang terletak di Jakarta. Restorannya semakin hari semakin ramai sehingga Ani memutuskan untuk membuat sebuah aplikasi untuk membantunya mengelola restoran tersebut. Adapun beberapa informasi mengenai sistem yang berjalan pada restoran tersebut adalah sebagai berikut: • Ani sebagai seorang owner mempekerjakan beberapa pegawai seperti koki, pramusaji, dan penjaga kasir. Setiap karyawannya memiliki gaji standar namun ada bonus tambahan lagi untuk koki. Para karyawan bekerja dengan pembagian shift pagi dan siang. • Pelanggan akan memesan makanan dan minuman yang dilayani oleh pramusaji. Pramusaji akan mencatat pesanan dan memasukkannya ke dalam sistem. Nantinya data pesanan tersebut mau dimunculkan di bagian dapur agar koki dapat memasak sesuai dengan pesanan yang masuk. • Setelah koki memasak makanan tersebut makan makanan akan dipersiapkan untuk disajikan. Informasi mengenai makanan yang sudah dimasak tersebut akan diupdate didalam sistem. • Pramusaji akan menyajikan makanan dan minuman yang dipesan tersebut. • Ketika pelanggan selesai makan, maka pelanggan dapat meminta bill atau pergi langsung ke kasir untuk melakukan pembayaran. Pembayaran dapat dilakukan dengan cara tunai, debit ataupun kredit.
EHY | Page 2 of 3
60
FM-BINUS-AA-FPU579/R3
No.
Deskripsi Soal • Pembayaran dilayani oleh pihak kasir dan kasir akan mencetak bukti pembayaran tersebut. • Koki juga secara periode melakukan pengecekan terhadap bahan-bahan yang dibutuhkan. Dari informasi mengenai restoran Ani diatas, maka buatlah perancangan sistemnya dalam bentuk: a. Use case diagram (Minimal ada 5 use cases). [15%] b. Buatlah 3 activity diagram dari use case yang ada. [15%] c. Class diagram lengkap dengan atribut dan method serta relasi antar kelasnya. [15%] d. Buatlah 3 interaction diagram [15%] Catatan: Silahkan tambahkan deskripsi dari asumsi Anda jika diperlukan.
EHY | Page 3 of 3
Bobot
FM-BINUS-AA-FPU579/R3 RUBRIK PENILAIAN LO Level Bobo t LO 1 Explai n5
LO 1 Explai n5
LO 2 Use Repetitio n and selection control 15
LO 3 Design and solving problem 15
KONTEN / ELEMEN
Ability to explain program design method theory
4 : 85 – 100
3 : 75 – 84
Correct explanation completed with relevant examples
Correct explanation completed with examples
Correct explanatio n
Incorrect explanatio n
Correctly outlining solution algorithm using two of three steps
Correct explanation completed with examples
Correct explanation completed with examples
The usage of repetition control structure is partially correct
Ability to outline Correctly outlining solution algorithm solution algorithm using three steps: using the three Defining the steps completely: problem, algorithm, Defining the and deskchecking problem, algorithm, and deskchecking
2 : 65 - 74
1 : 0 - 64
Ability to use repetition control structure in the program
The usage of repetition control structure is suitable and effective to solve the programming problem
The usage of repetition control structure is suitable to solve the problem but not effective
The usage of repetition control structure is partially correct
Ability to use selection control structure in the program
The usage of selection control structure is suitable and effective to solve the programming problem Ability to solve the problem by using the array
The usage of selection control structure is suitable to solve the problem but not effective
The usage of The usage of selection control selection control structure is structure is partially correct partially correct
Design the application using program design method Ability to solve the problem by using the structure programming (sequence, selection and repetition) step by step
LO 4 Ability to demonstrate Demonstrat the business e and Use report Module 15 Ability to use module to solve the problem
LO5 Explain Class Diagram 15
NILAI Skor x bobot
SKORE : % dari Bobot
Explain the object oriented design Ability to explain class diagram to solve the problem
LO6 Design applicatio n 15
Ability to apply the designed diagram using programming language
LO6 Use diagram 15
Ability to use the diagrams of object oriented to solve the problem
Able to solve the problem by using the array partially correct Ability to solve the Able to solve the Able to solve problem by using problem by using the problem by the structure the structure using the programming programming structure (sequence, (sequence, programming selection and selection and (sequence, repetition) step by repetition) step by selection and step step correctly repetition) step by step partially correct Able to Able to Able to demonstrate the demonstrate the demonstrate business report business report the business effectively and correctly report correctl partially correct Able to use module Able to use Able to use module to solve to solve the problem module to solve correctly the problem the problem partially correct correctly and effectively Able to explain Able to explain Able to explain activity diagram activity diagram activity diagram and state diagram and state diagram and state correctly and correctly diagram partially effectively correct
Able to explain class diagram to solve the problem correctly and effectively Able to apply the designed diagram using programming language correctly and effectively Able to use the diagrams of object oriented to solve the problem correctly and effectively
Able to solve the problem by using the array correctly
Able to explain Able to explain class diagram to class diagram to solve the problem solve the correctly problem partially correct Able to apply the Able to apply the designed designed diagram using diagram using programming programming language language correctly partially correct Able to use the Unable to use diagrams of object the diagrams of oriented to solve object oriented the problem to solve the correctly problem
Unable to use the structure programming correctly Unable to use the structure programming correctly
Unable to demonstrate the business report
1b
1c
1d
2a
Unable to use module to solve the problem Unable to explain activity diagram and state diagram 2b Unable to explain class diagram to solve the problem Able to apply the designed diagram using programming language partially correct Unable to use the diagrams of object oriented to solve the problem
TOTAL NILAI UJIAN
EHY | Page 4 of 3
1a
2c,d
FM-BINUS-AA-FPU579/R3
JAWABAN UJIAN 1a.
Define Diagram
1b.
Hierarchy Chart
1c.
Pseudocode ABC_electricity_customer 1 2 3 4 5 6 7
Perform_initial_processing read customer record DOWHILE more records calculate_amount_cost print_customer_usage_record read customer record ENDDO print_electricity_totals END
Perform_initial_processing 8 print ‘CUSTOMER USAGE’ heading 9 set total_Customer to zero 10 set total_amount_cost to zero END Calculate_amount_cost 11 IF usage