Hello Blogger!!!!!!!!!!
Apakabar nih? Lagi pada ngapain? Pasti lagi bosen??????
Udahh mending belajar buat program!
Udah pada tau ramalan zodiaknya yang terbaru belom? Harusnya udah doong kan harus up to date!
yagak?
Btw ngomong-ngomong tentang zodiak, kita sekarang mau bahas tentang pembuatan program peramalan zodiak loh! Siapa sih yang ga kenal zodiak? Dan siapasih yang ga tertarik buat tau ramalan zodiaknya?
Udahh mending belajar buat program!
Udah pada tau ramalan zodiaknya yang terbaru belom? Harusnya udah doong kan harus up to date!
yagak?
Btw ngomong-ngomong tentang zodiak, kita sekarang mau bahas tentang pembuatan program peramalan zodiak loh! Siapa sih yang ga kenal zodiak? Dan siapasih yang ga tertarik buat tau ramalan zodiaknya?
Nahhhhh makanya disini kita akan membahas tentang pembuatan program ramalan zodiak. Kita akan membahas mulai dari pseudocode, flowchart, sampe program eclipsenya!
Ohiya sebelumnya ada yang pernah denger tentang program eclipse, pseudocode, dan flowchart gakk?
Tenang-tenang janga panik dulu kalo ga ngerti!
Bakal diajarin pokoknya disini dan pokoknya bakal seru bangetdeh.. Yakin bakal nagih banget!
Ohiya sebelumnya ada yang pernah denger tentang program eclipse, pseudocode, dan flowchart gakk?
Tenang-tenang janga panik dulu kalo ga ngerti!
Bakal diajarin pokoknya disini dan pokoknya bakal seru bangetdeh.. Yakin bakal nagih banget!
cekidot!
1) Flowchart Ramalan Zodiak
Keterangan
Flowchart Peramalan Zodiak:
Flowchart program Peramalan Zodiak dimulai
dari kotak “Start”, kemudian program mempersiapkan apa saja inputannya. Lalu setelah
di inputkan data, maka program akan melakukan proses. Lalu setelah status
bernilai true, maka program akan mencetak hasil output berupa ramalan zodiak
sesuai tanggal dan bulan yang diinputkan. Jika anda salah memasukkan data, maka
anda akan di minta untuk menginputkan atau mengisikan ulang data.
2) Pseudocode Ramalan Zodiak
Algoritma
Ramalan_Zodiak_Hari_Ini
{algoritma ramalan zodiak tahun 1995 dengan
menginput tanggal dan bulan lahir}
Deklarasi
birthday_date,
birthday_month : byte
{Ket : Deklarasi
merupakan tempat input dan output dari program peramalan zodiak}
Deskripsi
Begin
while status=true
Read (birthday_date)
Read
(birthday_month)
{Ket : Inputan birthday
date dan birthday month dibaca oleh program untuk ditampilkan kembali diakhir
program, begitu seterusnya}
if(birthday_date>19andbirthday_date<=31andbirthday_month==1)
then
Write("Your Zodiac
is : Aquarius");
{Ket : Jika dimasukkan
tanggal diatas tanggal 19 sampai tanggal 31 pada bulan pertama yaitu januari,
akan keluar output berupa peramalan zodiak aquarius}
status=false
break
{Ket : status bernilai
false maksudnya jika tanggal dan bulan yang dimasukkan bukan tanggal dan bulan
seperti ketentuan yang diatas, maka akan dilakukan proses selanjutnya.
Sedangkan break maksudnya adalah melompati sisa percabangan, pada saat kondisi
terpenuhi, kondisi lain dalam percabangan tidak akan dievaluasi lagi}
else if(birthday_date>0andbirthday_date<=18andbirthday_month==2)
then
Write("Your Zodiac
is : Aquarius");
status=false
break
else if(birthday_date>18andbirthday_date<=29andbirthday_month==2)
then
Write("Your Zodiac
is : Pisces");
status=false
break
else if(birthday_date>0andbirthday_date<=20andbirthday_month==3)
then
Write("Your Zodiac
is : Pisces")
status=false
break
else if(birthday_date>20andbirthday_date<=31andbirthday_month==3)
then
Write("Your Zodiac
is : Aries")
status=false
break
else if(birthday_date>0andbirthday_date<=19andbirthday_month==4)
then
Write("Your Zodiac
is : Aries")
status=false
break
else if(birthday_date>19andbirthday_date<=30andbirthday_month==4)
then
Write("Your Zodiac
is : Taurus")
status=false
break
else if(birthday_date>0andbirthday_date<=20andbirthday_month==5)
then
Write("Your Zodiac
is : Taurus")
status=false
break
else if(birthday_date>20andbirthday_date<=31andbirthday_month==5)
then
Write("Your Zodiac
is : Gemini");
status=false
break
else if(birthday_date>0andbirthday_date<=21andbirthday_month==6)
then
Write("Your Zodiac
is : Gemini");
status=false
break
else if(birthday_date>21andbirthday_date<=30andbirthday_month==6)
then
Write("Your Zodiac
is : Cancer")
status=false
break
else if(birthday_date>0andbirthday_date<=22andbirthday_month==7)
then
Write("Your Zodiac
is : Cancer")
status=false
break
else if(birthday_date>22andbirthday_date<=31andbirthday_month==7)
then
Write("Your Zodiac
is : Leo")
status=false
break
else if(birthday_date>0andbirthday_date<=22andbirthday_month==8)
then
Write("Your Zodiac
is : Leo")
status=false
break
else if(birthday_date>22andbirthday_date<=31andbirthday_month==8)
then
Write("Your Zodiac
is : Virgo")
status=false
break
else if(birthday_date>0andbirthday_date<=22andbirthday_month==9)
then
Write("Your Zodiac
is : Virgo")
status=false
break
else if(birthday_date>22andbirthday_date<=30andbirthday_month==9)
then
Write("Your Zodiac
is : Libra")
status=false
break
else if(birthday_date>0andbirthday_date<=23andbirthday_month==10)
then
Write("Your Zodiac
is : Libra")
status=false
break
else if(birthday_date>23andbirthday_date<=31andbirthday_month==10)
then
Write("Your Zodiac
is : Scorpio")
status=false
break
else if(birthday_date>0andbirthday_date<=21andbirthday_month==11)
then
Write("Your Zodiac
is : Scorpio")
status=false
break
else if(birthday_date>21andbirthday_date<=30andbirthday_month==11)
then
Write("Your Zodiac
is : Sagittarius")
status=false
break
else if(birthday_date>0andbirthday_date<=21andbirthday_month==12)
then
Write("Your Zodiac
is : Sagittarius")
status=false
break
else if(birthday_date>21andbirthday_date<=31andbirthday_month==12)
then
Write("Your Zodiac
is : Capricorn")
status=false
break
else if(birthday_date>0andbirthday_date<=19andbirthday_month==1)
then
Write("Your Zodiac
is : Capricorn")
Status=false
break
else
Write("Sorry the
number that you've just entered is wrong");
status=true
End if
End
{Ket : Program Ramalan
Zodiak telah selesai dijalankan}
3) Listing Eclipse Ramalan Zodiak
package RamalanZodiak;
import java.util.Scanner;
public class RamalanZodiak {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner kode = new Scanner(System.in);
byte birthday_date, birthday_month;
boolean status;
System.out.println("**********************************************************");
System.out.println("**************WELCOME TO THE DAILY HOROSCOPE**************");
System.out.println("**********************************************************");
System.out.println("__________________________________________________________");
System.out.println("****this daily horoscope is presented by thirteen group***");
System.out.println("__________________________________________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
while (status=true){
System.out.println("First, you have to type your birthday date!");
System.out.println("Enter your birthday date : ");
birthday_date = kode.nextByte();
System.out.println("Second, you have to type your birthday month!");
System.out.println("Enter your birthday month : ");
birthday_month = kode.nextByte();
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
if(birthday_date>19&&birthday_date<=31&&birthday_month==1){
System.out.println("_________________________");
System.out.println("Your Zodiac is : Aquarius");
System.out.println("_________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Aquarius Horoscope : You may receive much-needed support now that the Sun is pushing through your 11th House of Friends. Nevertheless, the dramatic Leo Moon reminds you of just how bored you become if you can't break free from your everyday routine. You are more interested in pursuing creative activities now than showing up for your regular tasks. Be thankful that others are there for you, but don't expect them to help you escape from whatever responsibilities that could be holding you back. If you must show your rebellious nature, be prepared to pursue your dreams on your own.");
System.out.println(".Daily Aquarius Love Horoscope : A close pal can help you through a love life crisis now that the Sun is in your 11th House of Friends. Be grateful for the much-needed support you receive right now .");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=18&&birthday_month==2){
System.out.println("_________________________");
System.out.println("Your Zodiac is : Aquarius");
System.out.println("_________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Aquarius Horoscope : You may receive much-needed support now that the Sun is pushing through your 11th House of Friends. Nevertheless, the dramatic Leo Moon reminds you of just how bored you become if you can't break free from your everyday routine. You are more interested in pursuing creative activities now than showing up for your regular tasks. Be thankful that others are there for you, but don't expect them to help you escape from whatever responsibilities that could be holding you back. If you must show your rebellious nature, be prepared to pursue your dreams on your own.");
System.out.println(".Daily Aquarius Love Horoscope : A close pal can help you through a love life crisis now that the Sun is in your 11th House of Friends. Be grateful for the much-needed support you receive right now .");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>18&&birthday_date<=29&&birthday_month==2){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Pisces");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Pisces Horoscope : You could stir up all kinds of trouble today, especially if you start more projects than you can possibly finish. Your smartest approach is to avoid overload and pare back your commitments as much as possible. Don't wait until others have become fully dependent upon you, for it will be more difficult to make changes once they do. However, there's no reason to eliminate all pleasurable activities or you will likely have regrets later on. Find a way to have some fun without turning your life upside down.");
System.out.println(".Daily Pisces Love Horoscope : Taking on more than you can handle in your love life is an express ticket to trouble right now. See if there's a way to have some romantic fun without creating chaos for yourself .");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=20&&birthday_month==3){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Pisces");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Pisces Horoscope : You could stir up all kinds of trouble today, especially if you start more projects than you can possibly finish. Your smartest approach is to avoid overload and pare back your commitments as much as possible. Don't wait until others have become fully dependent upon you, for it will be more difficult to make changes once they do. However, there's no reason to eliminate all pleasurable activities or you will likely have regrets later on. Find a way to have some fun without turning your life upside down.");
System.out.println(".Daily Pisces Love Horoscope : Taking on more than you can handle in your love life is an express ticket to trouble right now. See if there's a way to have some romantic fun without creating chaos for yourself .");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>20&&birthday_date<=31&&birthday_month==3){
System.out.println("______________________");
System.out.println("Your Zodiac is : Aries");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("......................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Aries Horoscope : The current shift in your awareness is noticeable today as the Sun begins its visit to your 9th House of Adventure. The thought of doing something exciting makes you smile, although you may not be able to turn your most exotic ideas into a concrete plan. Ultimately, you need to find new ways to express your freedom, so don't be too eager now to surrender it without gaining something in return.");
System.out.println(".Daily Aries Love Horoscope : The Sun is in your 9th House of Adventure and you are aware of your need for excitement today. Don't be afraid to express your romantically liberated mood right now .");
System.out.println("......................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=19&&birthday_month==4){
System.out.println("______________________");
System.out.println("Your Zodiac is : Aries");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("......................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Aries Horoscope : The current shift in your awareness is noticeable today as the Sun begins its visit to your 9th House of Adventure. The thought of doing something exciting makes you smile, although you may not be able to turn your most exotic ideas into a concrete plan. Ultimately, you need to find new ways to express your freedom, so don't be too eager now to surrender it without gaining something in return.");
System.out.println(".Daily Aries Love Horoscope : The Sun is in your 9th House of Adventure and you are aware of your need for excitement today. Don't be afraid to express your romantically liberated mood right now .");
System.out.println("......................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>19&&birthday_date<=30&&birthday_month==4){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Taurus");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("........................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Taurus Horoscope : Relationships grow more complicated as the Sun makes its way through your 8th House of Deep Sharing. You want real intimacy now, and may not be as willing to remain with someone just because it's safe. Even if security is important to you, don't take the easy way out. It's not worth sacrificing your needs just so you can be with someone. Being true to yourself now will make you a better partner in the long run.");
System.out.println(".Daily Taurus Love Horoscope : An important relationship may seem more complex now that the Sun is in your 8th House of Deep Sharing today. Being true to yourself is the best gift you can offer the one you love .");
System.out.println("........................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=20&&birthday_month==5){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Taurus");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("........................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Taurus Horoscope : Relationships grow more complicated as the Sun makes its way through your 8th House of Deep Sharing. You want real intimacy now, and may not be as willing to remain with someone just because it's safe. Even if security is important to you, don't take the easy way out. It's not worth sacrificing your needs just so you can be with someone. Being true to yourself now will make you a better partner in the long run.");
System.out.println(".Daily Taurus Love Horoscope : An important relationship may seem more complex now that the Sun is in your 8th House of Deep Sharing today. Being true to yourself is the best gift you can offer the one you love .");
System.out.println("........................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>20&&birthday_date<=31&&birthday_month==5){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Gemini");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Gemini Horoscope : You may be more willing to open up your heart and share your feelings with a special friend now that the warming rays of the Sun are shining in your 7th House of Partners. Thankfully, others will be quite receptive to your overtures these days. You could be pleasantly surprised that you can find happiness once you remember to express yourself freely without worry or fear of what anyone else might think.");
System.out.println(".Daily Gemini Love Horoscope : With the Sun in your 7th House of Partners, you're ready to open up your heart to someone special in your love life today. As soon as you do, you may wonder what took you so long .");
System.out.println("................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=21&&birthday_month==6){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Gemini");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Gemini Horoscope : You may be more willing to open up your heart and share your feelings with a special friend now that the warming rays of the Sun are shining in your 7th House of Partners. Thankfully, others will be quite receptive to your overtures these days. You could be pleasantly surprised that you can find happiness once you remember to express yourself freely without worry or fear of what anyone else might think.");
System.out.println(".Daily Gemini Love Horoscope : With the Sun in your 7th House of Partners, you're ready to open up your heart to someone special in your love life today. As soon as you do, you may wonder what took you so long .");
System.out.println("................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>21&&birthday_date<=30&&birthday_month==6){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Cancer");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Cancer Horoscope : You might have withdrawn a bit over the past couple of days, yet your interactions with others may become much more interesting now. Although your feelings could trigger childhood memories, it's still important to distinguish what happened in your past from the current situation. Allow yourself the chance to connect emotionally with someone you trust to help you through the process. Experiencing give and take in the present moment can greatly enrich your journey.");
System.out.println(".Daily Cancer Love Horoscope : Be careful not to confuse a past love affair with your current romantic circumstances today. An intimate connection can happen if you just give it half a chance right now .");
System.out.println("..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=22&&birthday_month==7){
System.out.println("_______________________");
System.out.println("Your Zodiac is : Cancer");
System.out.println("_______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Cancer Horoscope : You might have withdrawn a bit over the past couple of days, yet your interactions with others may become much more interesting now. Although your feelings could trigger childhood memories, it's still important to distinguish what happened in your past from the current situation. Allow yourself the chance to connect emotionally with someone you trust to help you through the process. Experiencing give and take in the present moment can greatly enrich your journey.");
System.out.println(".Daily Cancer Love Horoscope : Be careful not to confuse a past love affair with your current romantic circumstances today. An intimate connection can happen if you just give it half a chance right now .");
System.out.println("..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>22&&birthday_date<=31&&birthday_month==7){
System.out.println("____________________");
System.out.println("Your Zodiac is : Leo");
System.out.println("____________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Leo Horoscope : You are stepping into a fun-filled phase when your life lightens up and you want to express yourself in a more playful manner. Even if it's challenging to find the satisfaction you're seeking, you still might be willing to move forward with anticipation now, rather than close down in fear. It's certainly more pleasurable to be with those you love than spending your time alone wishing for company. Take a chance and invite someone to join you for a memorable experience.");
System.out.println(".Daily Leo Love Horoscope : You're ready to embrace your playful side right now, especially in the realm of love. Take a risk and invite someone to share in your joyously romantic mood right now .");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=22&&birthday_month==8){
System.out.println("____________________");
System.out.println("Your Zodiac is : Leo");
System.out.println("____________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Leo Horoscope : You are stepping into a fun-filled phase when your life lightens up and you want to express yourself in a more playful manner. Even if it's challenging to find the satisfaction you're seeking, you still might be willing to move forward with anticipation now, rather than close down in fear. It's certainly more pleasurable to be with those you love than spending your time alone wishing for company. Take a chance and invite someone to join you for a memorable experience.");
System.out.println(".Daily Leo Love Horoscope : You're ready to embrace your playful side right now, especially in the realm of love. Take a risk and invite someone to share in your joyously romantic mood right now .");
System.out.println("...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>22&&birthday_date<=31&&birthday_month==8){
System.out.println("______________________");
System.out.println("Your Zodiac is : Virgo");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Virgo Horoscope : You are not all that interested in overdoing anything, for self-discipline typically comes easily to you. However, today you may need to manage a new set of issues around your current responsibilities and your desire to spend time with your family. Even if you wish you could let your work slide, you still must follow through on what you started prior to partaking in any relaxation or recreation. Meeting your obligations first allows you to have guilt-free playtime later on.");
System.out.println(".Daily Virgo Love Horoscope : Your desire to spend more time with your lover may conflict with your work responsibilities today. Meeting all of your obligations early will free you up for romantic fun later .");
System.out.println(".......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=22&&birthday_month==9){
System.out.println("______________________");
System.out.println("Your Zodiac is : Virgo");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Virgo Horoscope : You are not all that interested in overdoing anything, for self-discipline typically comes easily to you. However, today you may need to manage a new set of issues around your current responsibilities and your desire to spend time with your family. Even if you wish you could let your work slide, you still must follow through on what you started prior to partaking in any relaxation or recreation. Meeting your obligations first allows you to have guilt-free playtime later on.");
System.out.println(".Daily Virgo Love Horoscope : Your desire to spend more time with your lover may conflict with your work responsibilities today. Meeting all of your obligations early will free you up for romantic fun later .");
System.out.println(".......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>22&&birthday_date<=30&&birthday_month==9){
System.out.println("______________________");
System.out.println("Your Zodiac is : Libra");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Libra Horoscope : You don't mind being so busy now, but it isn't a smart idea to equate too much activity with happiness. It's challenging to know what is enough or when to stop, and you could exhaust yourself before realizing that you can't keep up with all that you started. Even if your weekend calendar is already set, don't be afraid to cut back on your schedule. It's better to have more free time than not have enough time to do what you want. There's a healthy balance between pleasing others and pleasing yourself.");
System.out.println(".Daily Libra Love Horoscope : More doesn't always mean better, especially when it comes to your love life today. Make sure to take care of yourself, especially if you're overextending yourself right now .");
System.out.println("..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=23&&birthday_month==10){
System.out.println("______________________");
System.out.println("Your Zodiac is : Libra");
System.out.println("______________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Libra Horoscope : You don't mind being so busy now, but it isn't a smart idea to equate too much activity with happiness. It's challenging to know what is enough or when to stop, and you could exhaust yourself before realizing that you can't keep up with all that you started. Even if your weekend calendar is already set, don't be afraid to cut back on your schedule. It's better to have more free time than not have enough time to do what you want. There's a healthy balance between pleasing others and pleasing yourself.");
System.out.println(".Daily Libra Love Horoscope : More doesn't always mean better, especially when it comes to your love life today. Make sure to take care of yourself, especially if you're overextending yourself right now .");
System.out.println("..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>23&&birthday_date<=31&&birthday_month==10){
System.out.println("________________________");
System.out.println("Your Zodiac is : Scorpio");
System.out.println("________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Scorpio Horoscope : You have had some intense experiences recently and thankfully are at the threshold of a more relaxing phase now. Instead of continuing to dig deeper into your feelings, today is a good day to stabilize a current situation. Fortunately, this change of attitude can also be a relief to the people closest to you. Your newfound confidence could have you spending too much money these days, so keep an eye on your resources to make sure you're using them wisely.");
System.out.println(".Daily Scorpio Love Horoscope : Recent intensity in your love life will settle if you give it a chance to stabilize now. Don't invite any more drama until you're able to return to a state of emotional balance .");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=21&&birthday_month==11){
System.out.println("________________________");
System.out.println("Your Zodiac is : Scorpio");
System.out.println("________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Scorpio Horoscope : You have had some intense experiences recently and thankfully are at the threshold of a more relaxing phase now. Instead of continuing to dig deeper into your feelings, today is a good day to stabilize a current situation. Fortunately, this change of attitude can also be a relief to the people closest to you. Your newfound confidence could have you spending too much money these days, so keep an eye on your resources to make sure you're using them wisely.");
System.out.println(".Daily Scorpio Love Horoscope : Recent intensity in your love life will settle if you give it a chance to stabilize now. Don't invite any more drama until you're able to return to a state of emotional balance .");
System.out.println(".....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>21&&birthday_date<=30&&birthday_month==11){
System.out.println("____________________________");
System.out.println("Your Zodiac is : Sagittarius");
System.out.println("____________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Sagittarius Horoscope : It's a smart idea to consciously make use of your birthday month by taking the time to do those things you have set aside because responsibilities called you elsewhere. The bright beams of the Sun shifted into your sign last night, bringing you good luck, new opportunities and exciting adventures. Do what you do best; inspire others by living your life to the fullest.");
System.out.println(".Daily Sagittarius Love Horoscope : With the Sun in your sign now, a period of positive luck is headed your way, including some amazing romantic adventures. Inspire someone in your love life with your zest for life! .");
System.out.println(".................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=21&&birthday_month==12){
System.out.println("____________________________");
System.out.println("Your Zodiac is : Sagittarius");
System.out.println("____________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println(".................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Sagittarius Horoscope : It's a smart idea to consciously make use of your birthday month by taking the time to do those things you have set aside because responsibilities called you elsewhere. The bright beams of the Sun shifted into your sign last night, bringing you good luck, new opportunities and exciting adventures. Do what you do best; inspire others by living your life to the fullest.");
System.out.println(".Daily Sagittarius Love Horoscope : With the Sun in your sign now, a period of positive luck is headed your way, including some amazing romantic adventures. Inspire someone in your love life with your zest for life! .");
System.out.println(".................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>21&&birthday_date<=31&&birthday_month==12){
System.out.println("__________________________");
System.out.println("Your Zodiac is : Capricorn");
System.out.println("__________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Capricorn Horoscope : Concentrating on your work is nearly impossible today because your thoughts are already focusing on the weekend once the Sun shifts into your 12th House of Imagination, encouraging your fantasies to take flight. Your mind is bouncing around all over the place and there doesn't seem to be much you can do to stop it. Instead of resisting the temptation or denying your intuition, give yourself permission to follow your daydreams and see where they lead.");
System.out.println(".Daily Capricorn Love Horoscope : With the Sun in your 12th House of Imagination, romantic fantasies about someone special may distract you from your work today. Enjoy your playful jaunt into the world of reverie! .");
System.out.println("...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else if(birthday_date>0&&birthday_date<=19&&birthday_month==1){
System.out.println("__________________________");
System.out.println("Your Zodiac is : Capricorn");
System.out.println("__________________________");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
System.out.println(".Daily Capricorn Horoscope : Concentrating on your work is nearly impossible today because your thoughts are already focusing on the weekend once the Sun shifts into your 12th House of Imagination, encouraging your fantasies to take flight. Your mind is bouncing around all over the place and there doesn't seem to be much you can do to stop it. Instead of resisting the temptation or denying your intuition, give yourself permission to follow your daydreams and see where they lead.");
System.out.println(".Daily Capricorn Love Horoscope : With the Sun in your 12th House of Imagination, romantic fantasies about someone special may distract you from your work today. Enjoy your playful jaunt into the world of reverie! .");
System.out.println("...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................");
status=false;break;
}
else {
System.out.println("Sorry the number that you've just entered is wrong");
status=true;
}
}
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("**********************************************************");
System.out.println("*******************THANK YOU FOR COMING*******************");
System.out.println("**********************************************************");
}
}
Keterangan:
- Gunakan System.out.println untuk mencetak agar hasil output terletak dibawahnya
- Gunakan If untuk sebuah permisalan
- Status digunakkan agar mengetahui kemanakah inputan kita akan diproses. Jika status sudah bernilai true maka akan langsung di proses.Jika masih bernilai false sampai akhir pemilihan proses, maka anda akan disuruh untuk menginput ulang
- Break maksudnya adalah melompati
sisa percabangan, pada saat kondisi terpenuhi, kondisi lain dalam percabangan
tidak akan dievaluasi lagi
4) Tampilan Input Sebelum Program di Run
Keterangan:
Tampilan diatas merupakan tampilan setelah anda menginputkan data dan belum di enter
5) Tampilan Input Setelah Program di Run/ Output
Keterangan:
Tampilan diatas merupakan output ketika anda memasukkan inputan yang tidak sesuai atau yang salah
Keterangan:
Tampilan diatas merupakan tampilan saat inputan selesai di proses. Tampilannya yaitu Daily Horoscope dan Daily Love Horoscope
Nahh sekarang udah tau apa kan cara buat program ramalan zodiak??
Udah tau juga kan pseudocode, flowchart, sama program eclipsenya??!!
Seru kan?
Emang sih awalnya susah dan ribet.. Maklum kalo baru tau program ini emang susah banyak banget kata-kata aneh yang gapernah kita temuin. Missed 1 huruf atau salah huruf kapitalnya aja bisa error dan gabisa di run.
Flowchartnya juga kalo belum paham emang ribet sih...
Udah tau juga kan pseudocode, flowchart, sama program eclipsenya??!!
Seru kan?
Emang sih awalnya susah dan ribet.. Maklum kalo baru tau program ini emang susah banyak banget kata-kata aneh yang gapernah kita temuin. Missed 1 huruf atau salah huruf kapitalnya aja bisa error dan gabisa di run.
Flowchartnya juga kalo belum paham emang ribet sih...
Tapi percaya deh kalo udah paham jadi pengen nambah-nambahin sesuatu biar tampilan programnya makin bagus dan menarik hehe
Hayooo gimana ga nyesel kan belajar program ini??? :)
0 komentar:
Posting Komentar