Free Essay

Aahaha

In:

Submitted By pranseeey
Words 312
Pages 2
#include <iostream>
#include <windows.h> using namespace std;

int main(){

int your_hp = 100; int enemy_hp = 100; int pokeballs = 6; int chance=0; int caught=0; int done=0; int choice; while(done==0){ system("cls"); cout<<"\nWILD RATATA HP: "<<enemy_hp; cout<<"\nYOUR PICKATCHU HP: "<<your_hp; cout<<"\nREMAINING POKEBALL/s: "<<pokeballs; cout<<"\n==========================="; cout<<"\nWhat do you want to do?"; cout<<"\n[1] - Attack\n[2] - Catch\n[3] - Run\nEnter Choice: "; cin>>choice; if(choice==1){ cout<<"\nPickachu used THUNDERSHOCK!"; cout<<"\n==========================="; cout<<"\nDamage: 20"; enemy_hp=enemy_hp-20; chance=chance+15; cout<<"\n==========================="; cout<<"\nRatata used TACKLE!"; cout<<"\n==========================="; cout<<"\nDamage: 15"; your_hp=your_hp-15; if(your_hp<=0){ cout<<"YOU LOST!"; done++; } else if(enemy_hp<=0){ cout<<"RATATA Fainted. You Won."; done++; } } else if(choice==2){ if(pokeballs>0){ if(chance>=75){ cout<<"CONGRATULATIONS! YOU CAUGHT A RATATA!"; done++; }else{ cout<<"AWW! So Close! Try Again!"; chance=chance+5; } } else{ cout<<"\nSORRY YOU DON'T HAVE ENOUGH POKEBALLS."; } pokeballs=pokeballs-1; } else if(choice==3){ cout<<"YOU GOT AWAY SAFELY!"; done++; } else{ cout<<"\n\nINVALID INPUT."; }

cout<<endl; system("pause");

if(done!=0){ cout<<"\nDo you want to repeat this program?(y/n): "; char getIt; cin>>getIt; if(getIt=='y'){

int your_hp = 100; int enemy_hp = 100; int pokeballs = 6; int chance=0; int caught=0; int done=0; int choice;

} else{ cout<<"Thank you for using my program."; } } } }

“Pokemon”

Submitted by:

Franze Sadudaquil
Rizza Garde
Nicole Villarin
Noelle Bañez

BSIT/CS 1-A

Submitted to:

Mr. William Aldea

Similar Documents

Free Essay

Falalala

...GIRLFRIEND FOR HIRE. INTRO Teka ahm ano…. pano ko ba sisimulan to? Sige, ganito na lang siguro..magpapakilala na lang muna ako huh?! Ang arte kasi, bakit kelangang may intro pang nalalaman tong author na to.. pede namang diretso na agad sa story line! -__- Hmp! Pero wala akong magagawa, kelangang sumunod at baka ichugi na nya agad ako dito sa story..tungkol pa naman sakin to.. pag nachugi ako, edi tapos narin ang kwento db?! Parang tanga lang..hehe..kaya eto na, sisimulan ko na..inip na kayo eh.. . . . Ako nga pala si Nami Shanaia San Jose. 17 years old, 1st year college student, SCHOLAR. (haha, ang yabang ko no? totoo naman kc eh! ) Working student ako. Nakikitira lang ako sa auntie ko. Wala na kasi akong mga magulang. Well enough of that boring introduction about myself, masyado ng common tong ganito.. Kaya pumunta na tayo sa interesting fact about me.. . . Lahat na ata ng weird na trabaho napasukan ko na. Ewan ko ba kung bakit ang wiweird ng mga trabahong napasukan ko.O___O? Isipin niyo naman,.. Naging taga alaga ako ng pusang may diabetes (SOSYAL NA PUSA,SHET NO?), . Naging taga tanggal ng pulgas ng aso ng kapitbahay namin(ANDAME KO NGANG KAGAT NUN!), . Naging mascot na sausage na nakatayo maghapon sa harapan ng isang restaurant na wala ng ginawa kung hindi sabihing “Masarap ako, tikman niyo!” (ah, ah ayoko ng maalala na ginawa ko yan! Muntik na akong lapain ng aso dahil akala nga niya sausage ako! T.T), . Naging waitress din ako sa isang restaurant na ang mga waitress...

Words: 186881 - Pages: 748