Rabu, 16 November 2011

Bruno Mars - Lazy Song

Today I don't feel like doing anything
I just wanna lay in my bed
Don't feel like picking up my phone, 
So leave a message at the tone
Cause today I swear I'm not doing anything

I'm gonna kick my feet up then stare at the fan
Turn the TV on, throw my hand in my pants
Nobody's gon' tell me I can't....

I'll be lounging on the couch just chilling in my Snuggie
Click to MTV so they can teach me how to dougie
Cause in my castle I'm the freaking man
Oh yes, I said it, I said it
I said it 'cause I can...

Today I don't feel like doing anything
I just wanna lay in my bed
Don't feel like picking up my phone, 
so leave a message at the tone
Cause today I swear I'm not doing anything
Nothing at all, nothing at all

Tomorrow I'll wake up, do some P90X
Find a really nice girl, have some really nice sex
And she's gonna scream out
This is great
Oh my god, this is great..

Yeah, I might mess around
And get my college degree
I bet my old man will be so proud of me
But sorry pops, you'll just have to wait

Oh yes, I said it, I said it
I said it 'cause I can

Today I don't feel like doing anything
I just wanna lay in my bed
Don't feel like picking up my phone
So leave a message at the tone
Cause today I swear I'm not doing anything

No, I ain't gonna comb my hair
Cause I ain't going anywhere
No, no, no, no, no, no, no, no, no

I'll just strut in my birthday suit
And let everything hang loose
Yeah, yeah, yeah, yeah, yeah
Yeah, yeah, yeah, yeah, yeah, yeah

Oh, today I don't feel like doing anything
I just wanna lay in my bed
Don't feel like picking up my phone
so leave a message at the tone
Cause today I swear I'm not doing anything

Nothing at all...
Nothing at all...
Nothing at all...

Rabu, 02 November 2011

Tugas Algo sebelum UTS


Ni dia tugas algo gue sebelum UTS minggu depan. Program ini Dapat menghitung nilai rata2 dari 5 buah bilangan yg akan d hitung, d ambil dr input user (input keyboard). Let's see!



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
  import java.io.*;
/**
 *
 * @author COMPAQ
 */
public class hasil {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

//Source Code untuk mengambil input dari User
BufferedReader data= new BufferedReader(new InputStreamReader(System.in));
String nilai=null;
System.out.println("Masukkan Nilai");
try {
nilai=data.readLine();
int grade =Integer.parseInt(nilai);
//parse.Int() ialah perintah untuk mengubah isi variabel bertype apa saja ke type integer

if ((grade >=(85)) && (grade <= (100))) {
System.out.println (" Hasil Ujian anda Istimewa ");

} else if ((grade >= (70)) && (grade<=(84))) {
System.out.println (" Hasil Ujian Anda Baik ");

} else if ((grade >=(60))&&(grade<=(69))) {
System.out.println (" Hasil Ujian Anda Cukup ");

} else if (grade<(60)) {
System.out.println (" Hasil Ujian Anda Kurang ");

} else {
System.out.println("Masukkan nilai yang sah : 0 - 100");}}

catch (IOException e){
System.out.println(e);}}}



program ini akan menghasilkan output                         :




run:
Masukkan Nilai
87
 Hasil Ujian anda Istimewa
BUILD SUCCESSFUL (total time: 5 seconds)