Skip to content

Instantly share code, notes, and snippets.

View paley777's full-sized avatar
🎯
Focusing

Valleryan Virgil Zuliuskandar paley777

🎯
Focusing
View GitHub Profile
@paley777
paley777 / historicalweather.ipynb
Created January 1, 2023 17:12
historicalweather.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paley777
paley777 / arisan.cpp
Created July 21, 2022 06:23
Arisan Winner Random Program
// Include Library
#include <iostream>
#include <iomanip>
#include <stdlib.h>
#include <time.h>
using namespace std;
// Program Arisan
//Untuk Antrian, dengan asumsi batas peserta antrian adalah 100
@paley777
paley777 / two-dimentional.py
Created June 18, 2022 08:35
calculate the area of ​​a flat shape using python
# Mencetak Menu
def menu():
print("1. Persegi Panjang")
print("2. Lingkaran")
print("3. Segitiga")
print("4. Keluar")
def persegi():
print("Menghitung Luas Persegi Panjang")
@paley777
paley777 / convert.py
Created June 18, 2022 08:34
temperature conversion from celsius to fahrenheit using python
# Menginput Suhu dalam Derajat Celcius
celcius = float(input("Tuliskan Suhu dalam Celcius: "))
# Menghitung Suhu dalam Derajat Fahrenheit
fahrenheit = (celcius * 1.8) + 32
# Menampilkan Hasil Konversi Jarak
print('%0.2f Derajat Celcius sama dengan %0.2f Derajat Fahrenheit' % (celcius, fahrenheit))
@paley777
paley777 / degree.py
Created June 18, 2022 08:34
determine degree of value using python
tugas = float(input("Masukkan nilai Tugas: "))
uts = float(input("Masukkan nilai UTS: "))
uas = float(input("Masukkan nilai UAS: "))
nilai = (0.15 * tugas) + (0.35 * uts) + (0.50 * uas)
if nilai > 80:
@paley777
paley777 / calendar.py
Created June 18, 2022 08:32
Calendar Python
# Mengimpor Modul Calendar
import calendar
# Menginput Tahun dan Bulan
yy = int(input("Masukkan Tahun: "))
mm = int(input("Masukkan Bulan: "))
# Menampilkan Kalender Bulanan
print(calendar.month(yy, mm))
@paley777
paley777 / oddeven.py
Created June 18, 2022 08:31
Determining odd and even numbers using python
# Menginput Angka
angka = int(input("Tulis sebuah Angka: "))
# Jika Habis Dibagi Nol, Maka Genap
if (angka % 2) == 0:
print("{0} adalah Bilangan Genap".format(angka))
# Jika Tidak Habis Dibagi Nol, Maka Ganjil
else:
print("{0} adalah Bilangan Ganjil".format(angka))
@paley777
paley777 / arithmetic.py
Last active June 18, 2022 08:30
arithmetic using python
print("Kalkulator Sederhana Python")
print("1. Penjumlahan")
print("2. Pengurangan")
print("3. Perkalian")
print("4. Pembagian")
pil = int(input("\nMasukan Pilihan Operasi : "))
x= int(input("Bilangan 1 : "))
y= int(input("Bilangan 2 : "))
@paley777
paley777 / broca.py
Created June 18, 2022 08:29
calculate ideal body weight using broca's formula
tinggi = int(input("Masukan tinggi badan dalam CM: "))
bbnorm = tinggi-100
bbideal = bbnorm-10/100
print("\nBerat Normal: %d Kg" %bbnorm)
print("\nBerat Ideal: %d Kg" %bbideal)
@paley777
paley777 / random.py
Created June 18, 2022 08:28
Random Number Python
# Menampilkan Angka Acak antara 0 sampai 20
# Mengimpor Modul Random
import random
# Menampilkan Angka Acak
print(random.randint(0, 20))