Monthly Archive: March 2016

0

Pascal hitung nilai rata-rata

program hitung_nilai; uses crt; var nilai:array[1..10] of integer; nilai2:array[1..10] of integer; nilai3:array[1..10] of integer; nama:array[1..10] of string[50]; I,jum_mhs:integer; rata:array[1..10] of double; total:array[1..10] of integer; huruf:array[1..10] of string[10]; begin clrscr; writeln(‘Program Penghitung Nilai Rata-rata mahasiswa’);...

0

Java switch case

import java.util.Scanner; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class switch_case { public static void main(String[] argumen){ while(true){ int indeks = 0; String ul=””; BufferedReader dataInput = new BufferedReader(new InputStreamReader(System.in)); try{ Scanner s =...

0

Java cek umur

import java.util.Scanner; public class cek_umur { public static void main(String[] argumen){ int umur = 0; Scanner s = new Scanner(System.in); System.out.print(“masukkan umur : “); umur = s.nextInt(); if(umur<0){ System.out.print(“belum lahir”); } else if(umur>=0 &&...

0

Java tugas perpustakaan

 import java.util.Scanner; public class tugas_perpustakaan { public static void main(String[] argumen){ System.out.println(“=============================================================”); System.out.println(“=============================================================”); System.out.println(“”); System.out.println(“Data Peminjam :”); System.out.println(“1. Pelajar”); System.out.println(“2. Mahasiswa”); System.out.println(“3. Umum”); System.out.println(“”); System.out.println(“=============================================================”); System.out.println(“=============================================================”); int status,min_buku=1,min_hari=1,max_buku=15,jml_buku=0,max_hari=7,hari,harga_pelajar=500, harga_mahasiswa=1000,harga_umum=1500 ; double diskon_l10=5,diskon_l5=2.5,diskon=0,total_diskon=0, harga_buku=0, total_harga_perhari,total_harga_perbuku,total_harga;...

0

Laravel Dynamic Menu

 <ul class=”sidebar-menu”> <li class=”header”>NAVIGATION</li> <?php $menu_0 = \App\Menu::where(‘id_induk’,0)->get(); foreach ($menu_0 as $key) { get_menu_child($key->id); } function get_menu_child($parent=0){ $menu = \App\Menu::where(‘id_induk’,$parent)->get(); $parent = \App\Menu::where(‘id’,$parent)->first(); ?> <li class=”treeview”> <a href=”{{url($parent->url)}}”> <i class=”fa {{$parent->icon}}”></i> <span>{{$parent->nama}}</span> @if(sizeof($menu)>0) <i...

0

Laravel Named Routes

Route::get(‘master/division/all’, [‘as’=>’all_division’,’uses’=>’MasterController@division_index’]); Route::get(‘master/division/add’, [‘as’=>’add_division’,’uses’=>’MasterController@division_add’]); Route::post(‘master/division/save’, [‘as’=>’save_division’,’uses’=>’MasterController@division_save’]); Route::get(‘master/division/edit/{id}’, [‘as’=>’edit_division’,’uses’=>’MasterController@division_edit’]); Route::post(‘master/division/update’, [‘as’=>’update_division’,’uses’=>’MasterController@division_update’]); Route::get(‘master/division/delete/{id}’, [‘as’=>’delete_division’,’uses’=>’MasterController@division_delete’]); Route::get(‘master/level/all’, [‘as’=>’all_level’,’uses’=>’MasterController@level_index’]); Route::get(‘master/level/add’, [‘as’=>’add_level’,’uses’=>’MasterController@level_add’]); Route::post(‘master/level/save’, [‘as’=>’save_level’,’uses’=>’MasterController@level_save’]); Route::get(‘master/level/edit/{id}’, [‘as’=>’edit_level’,’uses’=>’MasterController@level_edit’]); Route::post(‘master/level/update’, [‘as’=>’update_level’,’uses’=>’MasterController@level_update’]); Route::get(‘master/level/delete/{id}’, [‘as’=>’delete_level’,’uses’=>’MasterController@level_delete’]); Route::get(‘master/employeer/all’, [‘as’=>’all_employeer’,’uses’=>’MasterController@employeer_index’]); Route::get(‘master/employeer/add’, [‘as’=>’add_employeer’,’uses’=>’MasterController@employeer_add’]); Route::post(‘master/employeer/save’, [‘as’=>’save_employeer’,’uses’=>’MasterController@employeer_save’]); Route::get(‘master/employeer/edit/{id}’, [‘as’=>’edit_employeer’,’uses’=>’MasterController@employeer_edit’]); Route::post(‘master/employeer/update’, [‘as’=>’update_employeer’,’uses’=>’MasterController@employeer_update’]);...