Paparon
Would you like to react to this message? Create an account in a few clicks or log in to continue.

babyProject #03 : Priest the Healer

+2
XenRichia
luv60D
6 posters

Go down

babyProject #03 : Priest the Healer Empty babyProject #03 : Priest the Healer

Post by luv60D Sat Nov 21, 2009 11:36 pm

babyProject #03 : Priest the Healer Priest__.thumbnail

Dalam beberapa game, sering kita tau ada namanya job healer yang dikenal dengan priest, acolyte, cleric dan lainnya. Nah kita akan mencoba sedikit simulasi dari heal area yang biasa dimiliki oleh job ini.

Pertama, input jumlah party anda (0<partyNum<10). Lalu tanyalah currentHP (0<currentHP<=maxHP) dan maxHP (1< maxHP<=9999) tiap player dalam party.

AreaHeal dapat menyembuhkan 500HP (currentHP) ke semua anggota dalam party.
Output yang keluar adalah “AreaHeal casted” lalu semua currentHP dan maxHP setelah skill AreaHeal.

Hints: Ingat, currentHP tidak boleh melebihi maxHP. Kalau currentHP = 0 (alias DEAD), maka player tidak ter-heal.

Perhatian!! Mulai babyProject kali ini… TIDAK PERLU eror handling input, jadi input akan selalu dalam batas yang ada. dan penampilan pesan input TIDAK HARUS dicantumkan juga tidak apa-apa, yang penting outputnya benar.

Contoh Hasil Program:
4 //<- Jumlah player dalam party
100 120 //<- currentHP dan maxHP
1200 3000
0 999
750 1000 //<- 4 kali input karena ada 4 player
AreaHeal Casted //<- Mulai output
120/120
1700/3000
0/999
1000/1000

HINTS:
1. tanya jumlah party
2. pengulangan (for) sampe jumlah party, tanya currentHP dan maxHP, masukkinnya dalam array
3. pengulangan (for) cast AreaHeal dan cek apakah HP melebihi batas (if else)
4. pengulangan (for) cetak deh hasilnya... jangan lupa formatnya pake "/" yah...
luv60D
luv60D
Paparoner
Paparoner

Number of posts : 30
Age : 33
Location : Earth...
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-02-28

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by XenRichia Sun Nov 22, 2009 12:03 pm

yang ini pake hide ngak?
XenRichia
XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 31
Location : Jakarta-Karawaci-Jakarta
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2009-08-29

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by luv60D Sun Nov 22, 2009 12:14 pm

pake juga smuanya.... hehe..
luv60D
luv60D
Paparoner
Paparoner

Number of posts : 30
Age : 33
Location : Earth...
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-02-28

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by CenT Sun Nov 22, 2009 10:11 pm

keberapax ne??

CenT
CenT
Paparon Maniac
Paparon Maniac

Number of posts : 215
Age : 32
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-08-30

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by XenRichia Sun Nov 22, 2009 10:35 pm

XenRichia
XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 31
Location : Jakarta-Karawaci-Jakarta
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2009-08-29

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by plue_rave Tue Nov 24, 2009 6:00 pm



Last edited by plue_rave on Wed Dec 02, 2009 9:00 pm; edited 1 time in total
plue_rave
plue_rave
Paparoner
Paparoner

Number of posts : 49
Age : 32
Location : Cimone
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-10-30

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by XenRichia Tue Nov 24, 2009 8:22 pm

sur, kaga pake - hide nya hohoho XD
XenRichia
XenRichia
Paparoner
Paparoner

Number of posts : 36
Age : 31
Location : Jakarta-Karawaci-Jakarta
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2009-08-29

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by hans_989 Thu Nov 26, 2009 8:26 pm

eaa..
gag baca deh pasti..
skrg jawaban sur bisa dbaca smua orang..haha
hans_989
hans_989
Moderators
Moderators

Number of posts : 1246
Age : 33
Location : Lonesome country
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-02-27

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by ::n93L:: Tue Dec 01, 2009 5:49 pm

Kalo di hide yang bisa baca cuma admodsnya yuph?
::n93L::
::n93L::
Paparon Newbie
Paparon Newbie

Number of posts : 8
Age : 31
Location : Everywhere~
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2009-08-23

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by hans_989 Fri Dec 11, 2009 11:23 pm

kalo lw udah ngepost juga bisa..
makanya diharapkan ngepost dulu baru coment gan..
hans_989
hans_989
Moderators
Moderators

Number of posts : 1246
Age : 33
Location : Lonesome country
Points :
babyProject #03 : Priest the Healer Left_bar_bleue0 / 1000 / 100babyProject #03 : Priest the Healer Right_bar_bleue

Registration date : 2008-02-27

Back to top Go down

babyProject #03 : Priest the Healer Empty Re: babyProject #03 : Priest the Healer

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum