Pseudo Code:
Program Form_
Create_ A_ Zoho_ Account
{Form
pembuatan Akun Zoho}
Input:
emailaddress,password,re-enterpassword
Declaration:
{emailaddress,password,re-enterpassword: char}
Description:
Begin
Begin
Writeln (“Email Address: ”);
Read (emailaddress);
Writeln (“Password: ”);
Read (password);
Writeln (“ Re-enter Password: ”);
Read (re-enterpassword);
Println
(“your email address: “ + emailaddress);
Println
(“your password: “ + password);
End
TUTORIAL MEMBUAT PROGRAM :
1. Buka program Eclipse
2. Klik File-New-Java Project, lalu beri nama java project tersebut
3. Klik pada folder Java project tersebut, lalu klik kanan new-package
4. Klik pada package yang telah kita buat lalu klik kanan new-class, jangan lupa centang public static void main(String[] args) pada which method stubs would you like to create?
5. Jika sudah masuk ke editor, tuliskan listing seperti dibawah ini
package Zoho;
import java.util.Scanner;
public class zohozoho {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner ok = new Scanner(System.in);
String email,password,reenter,terms;
System.out.print("Email Adress : ");
email=ok.next();
System.out.print("Password : ");
password=ok.next();
System.out.print("Re-enter Password : ");
reenter=ok.next();
System.out.print("Agree with the terms of service and Privacy police (Y/N) : ");
terms=ok.next();
System.out.println();
System.out.println("----------------------------------------");
System.out.println("Thank you verymuch, You have ZOHO account now");
System.out.println("----------------------------------------");
System.out.println("| ACCOUNT INFORMATION |");
System.out.println("| ZOHO.com |");
System.out.println("| |");
System.out.println("----------------------------------------");
System.out.println("|Your email address: "+email+"|");
System.out.println("|Your Zoho account : "+email.substring(0,8)+"@Zoho.com |");
System.out.println("|Your Password : "+password+" |");
System.out.println("----------------------------------------");
}
}
6. Seperti program sebelumnya, package,class,variabel, dan apa apa saja yang ingin ditampilkan di console dapat dirubah sesuai keinginan anda
7. Klik F11 untuk run program yang telah kita buat
8. Selesai
0 komentar:
Posting Komentar