Anda di halaman 1dari 5

270921 FM-BINUS-AA-FPT-66/R7

Assignment Case
COMP6120
Network Programming
Computer Science E203-COMP6120-KY01-01

Valid on Odd Semester Year 2021/2022 Revision 00

1. Seluruh mahasiswa tidak diperkenankan untuk:


All students are not allowed to:

 Berdiskusi dan/atau bekerja sama dengan mahasiswa lainnya


Discuss and/or work together with other student participants

 Melihat sebagian atau seluruh jawaban mahasiswa lain


Seeing a part or the whole answer from another student

 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

 Membuka dan menyalin jawaban dari internet (google, stackoverflow, dsb)


Open and copy answer from the internet (google, stackoverflow, etc)

 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,

 Melakukan tindakan kecurangan lainnya,


Committing other dishonest actions,

 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

5. Persentase penilaiaan untuk matakuliah ini adalah sebagai berikut:


Marking percentage for this subject is described as follows:

Tugas Mandiri Proyek UAP


Assignment Project Final Exam
100% - -

6. Software yang digunakan pada matakuliah ini adalah sebagai berikut:


Software will be used in this subject are described as follows:

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:

Tugas Mandiri Proyek UAP


Assignment Project Final Exam

C - -

Page 2 of 5
270921 FM-BINUS-AA-FPT-66/R7

Soal
Case

KennY Custom Car

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

Prefix will be determined by the Car Type as follows:


Car Type Prefix
SUV SUV
Sedan SDN
MPV MPV
A is a First Character of Full Name in upper case format
B is a Last Character of Full Name in upper case format
X is a random alphabet between A and Z
Y is a random number between 0 and 9

Example: SUV-BJ-K9

e. Determine the base price based on the following table:

Car Type Price

SUV 150000000

Sedan 100000000

MPV 125000000

f. Server will calculate total price with the following formula:

Total price = Price * (Horse power/200)


g. Then server will show the following data:

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

Run the program for more details!

Page 5 of 5

Anda mungkin juga menyukai