This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
struct node | |
{ | |
int data; | |
node *next; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <conio.h> | |
#include <stdlib.h> | |
using namespace std; | |
typedef struct TNode | |
{ | |
int data; | |
TNode *next, *prev; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
void shellSort(char data[], int n) | |
{ | |
char dataSorted[n]; // menyiapkan array untuk menampung salinan data asli | |
cout << "Sebelum data di Shell Sort: "; | |
for (int i = 0; i < n; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file main.java | |
import java.util.Scanner; | |
public class App { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int sisi1, sisi2, tinggi, sisiMiring1, sisiMiring2; | |
System.out.print("Masukkan sisi atas trapesium: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package praktikum3.soal2; | |
import java.util.HashMap; | |
public class Negara { | |
private String nama; | |
private String jenisKepemimpinan; | |
private String namaPemimpin; | |
private String tglMerdeka; | |
private String blnMerdeka; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package praktikum4.soal1; | |
public class Buku { | |
private String judul; | |
private String penulis; | |
private int tahun; | |
public Buku(String j, String p, int t) { | |
judul = j; | |
penulis = p; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package praktikum4.soal2; | |
public abstract class Buku { | |
protected String judul; | |
protected String penulis; | |
protected int tahun; | |
protected void display() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package praktikum3.soal1; | |
import java.util.Random; | |
public class Dadu { | |
public Dadu() { | |
acakNilai(); | |
} | |
int acakNilai() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Soal 2 | seigita</title> | |
<style> | |
.tab { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>soal 1</title> | |
</head> |
OlderNewer