0% found this document useful (0 votes)
9 views4 pages

Tugas Pemrograman Berorientasi Objek

The document discusses object-oriented programming. It introduces the topic and provides the name of the lecturer. It also includes the name of the student who created the document. It notes that the document was created for the Information Systems study program at STIKOM Poltek Cirebon in 2023.

Uploaded by

Rendy Anwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Tugas Pemrograman Berorientasi Objek

The document discusses object-oriented programming. It introduces the topic and provides the name of the lecturer. It also includes the name of the student who created the document. It notes that the document was created for the Information Systems study program at STIKOM Poltek Cirebon in 2023.

Uploaded by

Rendy Anwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

PEMROGRAMAN BERORIENTASI

OBJEK

Dosen Pengampu :

Fahmi, S.Kom., M.Kom.

Disusun Oleh:

Rendy Anwar Prasetya (14621665)

PROGRAM STUDI SISTEM INFORMASI


SEKOLAH TINGGI ILMU KOMPUTER (STIKOM) POLTEK
CIREBON 2023
Jl. Pusri No. 01 Desa Kedawung Kecamatan Kedawung, Cirebon, Jawa Barat 4515 Telp :
+62 231 4864 | Website : https://www.stikompoltek.ac.id
package tugaspbo;

import java.util.Scanner;

// Rendy Anwar Prasetya - SI - 14621665

/**

* @author Mahasiswa

*/

public class Tugaspbo {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

String nrp,nama;

int nilai_uas,nilai_uts,nilai_harian;

String keterangan;

double ipk;

Scanner input = new Scanner(System.in);

System.out.println("Data Mahasiswa");

System.out.println("==============");
System.out.print("NRP : ");

nrp= input.nextLine();

System.out.print("NAMA : ");

nama=input.nextLine();

System.out.print("Nilai UAS : ");

nilai_uas=input.nextInt();

System.out.print("Nilai UTS : ");

nilai_uts=input.nextInt();

System.out.print("Nilai Harian : ");

nilai_harian=input.nextInt();

ipk = (nilai_harian+nilai_uas+nilai_uts)/3;

if (ipk >=80) {

keterangan = "A";

}else if (ipk >=65) {

keterangan = "B";

}else{

keterangan = "C";

System.out.println("\n");

System.out.println("Output Data Mahasiswa");

System.out.println("==============");
System.out.println("NRP : "+nrp);

System.out.println("NAMA : "+nama);

System.out.println("nilai uas : "+nilai_uas);

System.out.println("Nilai UTS : "+nilai_uts);

System.out.println("Nilai harian : "+nilai_harian);

System.out.println("Indeks Prestasi Kumulatif : "+ipk);

System.out.println("KETERANGAN HASIL UJIAN : "+keterangan);

Hasil program setelah di running

You might also like