zaQ corner

BusinessSuccess.java

Posted on: November 3, 2008

class BusinessSuccess
{
private boolean marketing(Promotion p1, Place p2, Product p3, Price p4)
{
if (p1.result.equals(“ok”) and p2.result.equals(“nice”) && p3.result.equals(“great”) && p4.result.equals(“cheap”))
{
return true;
}
else
{
return false;
}
}
private boolean financial(int BEP, int ROI, int Payback, int IRR)
{
if (BEP<3 and ROI>0.4 and Payback<3 and IRR>0.2)
{
return true;
}
else
{
return false;
}
}
private boolean operational(Organization o, Culture c)
{
if (o.result.equals(“ok”) and c.result.equals(“ok”))
{
return true;
}
else
{
return false;
}
}
public static void main(String[] args)
{
// disini tempat naruh nilai-nilai dari variabel yang bakal nentuin sukses bisnis kita…
if (marketing and financial and operational)
{
System.out.println(“success”);
}
else
{
System.out.println(“Fail”);
}
}
}

6 Responses to "BusinessSuccess.java"

Weqs,.
Mantap kali ini,.
Algoritma apa ini namanya, Zak,.😀

gagal compile tuh zak..😛

method operational kan harusnya return boolean,
tapi itu kok return string.. hehehe..

@anggri : ampun suhu anggri….^:)^

sudah dibenerin…

@nanto : namanya juga iseng-iseng…make ilmu algoritma di dunia bisnis..

bung zaki ga membuat method investing?
hehe

ampun juga bung tara…kalo saia Investing dibuat class kusus kali yak…haha…

“&&” bukan “and”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: