E203 Comp6120 Ky02 01
E203 Comp6120 Ky02 01
Assignment Case
COMP6120
Network Programming
Computer Science E203-COMP6120-KY01-01
Membuka dan menyalin dari BUKU atau CATATAN, VIDEO dari pengajar (recording kelas,
VBL, Youtube, dsb) dan REFERENSI lainnya
Open and copy from any resources such as notes, videos (class recording, VBL, Youtube, etc) and other
references
Mengerjakan soal yang tidak sesuai dengan tema yang ada di soal,
Working with another theme which is not in accordance with the existing theme in the matter of the case,
Secara sengaja maupun tidak sengaja melakukan segala tindakan kelalaian yang menyebabkan
hasil karyanya berhasil dicontek oleh orang lain / kelompok lain.
Accidentally or intentionally conduct any failure action that cause the results of the project was copied by someone else /
other groups.
2. Jika mahasiswa terbukti melakukan tindakan seperti yang dijelaskan butir 1 di atas, maka nilai
mahasiswa yang melakukan kecurangan (menyontek maupun dicontek) akan di – NOL – kan.
If the student is proved to the actions described in point 1 above, the score of the student which committed dishonest acts (cheating
or being cheated) will be “Zero”
3. Perhatikan jadwal pengumpulan jawaban, segala jenis pengumpulan jawaban di luar jadwal tidak
dilayani.
Pay attention to the submission schedule, all kinds of submission outside the schedule will not be accepted
Page 1 of 5
270921 FM-BINUS-AA-FPT-66/R7
4. Bila Anda tidak membaca peraturan ini, maka Anda dianggap telah membaca dan menyetujuinya
If you have missed to read these regulations, so you are considered to have read and agreed on it
Software
Software
Eclipse 2020.6
Java 8
VM Ubuntu Client 20.04
VMware Workstation 16
Visual Studio Code
7. Ekstensi file yang harus disertakan dalam pengumpulan tugas mandiri, dan proyek untuk
matakuliah ini adalah sebagai berikut:
File extensions should be included in assignment and project collection for this subject are described as follows:
C - -
Page 2 of 5
270921 FM-BINUS-AA-FPT-66/R7
Soal
Case
KennY Custom Car is a car custom shop which can manage custom or build a new car for
sale. The owner needs your help as a programmer to build a program that manage the orders. This
program is divides into a client – server program. The server must be established first, in which it can
receive requests from the client.
1. Server
a. To execute server program, user must input parameter for port number
Example: ./server 8088
b. Then, server will be established and wait for client to connect
c. Then, the server will wait for request from the client
d. After receiving data from client, server will generate code using the following format:
Page 3 of 5
270921 FM-BINUS-AA-FPT-66/R7
Prefix-AB-XY
Example: SUV-BJ-K9
SUV 150000000
Sedan 100000000
MPV 125000000
h. If the client input “Exit” (case sensitive) in name, then the server will show the message
below and close the application
2. Client
Page 4 of 5
270921 FM-BINUS-AA-FPT-66/R7
a. To execute client program, user must input 2 parameters for port number and IP Address
based on server
Example:./client 127.0.0.1 8088
b. The program will ask the user to:
Input Car name and validate name length must be between 5 and 15 characters and
name minimum 2 words
Input Car type and validate type must be between “Sedan”, “SUV”, or “MPV”
Input horsepower and validate horsepower must be between 200 and 700
Input car starting stock and validate stock must be greater than 10
Create a captcha from a combination of 10 numeric, and validate the input must be the
same as the captcha to confirm that the user is not a robot
Send the data to the server and wait for the server calculating total price
Client will receive data from server and show the full name, code, and total price
If the user input “Exit” in name (case sensitive), program will notify the server that the
client program is over. Then show the message and the program will end
Page 5 of 5