Program Requirements:
1 Class
1 Methods
1 array (integer type with 150 size)
6 variables Maximum (excluding the array variable and class, method variable/parameter if any)
Narrative:
Imagine a postman delivering message in a community with one hundred fifty (150) residents.
Day by day Mr. Postman will open a mailbox, put their mail(s) closed it and open again the next mailbox.
To lessen the boredom, Mr. Postman decided one day to count all the mailbox that was opened (not all mailbox receives mail everyday) as well as the closed one, but decided to add one more trick.
He decided that if the mailbox was open he must close it and it it's close he will have to open it.
He started to open the mailbox from mailbox number 2, 4, 6, 8, 10 and so on.
After opening the entire mailbox, he opens mailbox number 3, 6, 9, 12, 15 and so on, while closing the mailbox that was previously opened.
The sequence continues until he reaches the last mailbox - 150.
After the tedious opening and closing he now started to count the total mailbox that was opened and closed!
Find out how many mailboxes was opened and closed using Mr. Postman's Method.
Layout:
St. Rose College
Educational Foundation, Inc.
Telefax No. (045) 931-1162 / src.registrar@gmail.community
Number of Mailbox : 150
Total Number of Open Mailbox : ???
Total Number of Close Mailbox : ???
We Survived OOP!
julianyaquiten@gmail.com
ReplyDeletejulie ann Y. Ramos
grabe ang haba naman nun sir..hehehe
Icons-50
ReplyDeletefresa campos
uber sir, hehehehe mka muryot
icons-54
ReplyDeletecriselda
sir ayuzzz ung cs amen ehh huh grabih...
icons-5c
ReplyDeletejoy serrano
hi sir hirap talga
icons-59
ReplyDeleteamelia nillo
sirrr
wala na bang madali kht konti
icons 51
ReplyDeleteteresa
hay!!ang hirap naman sir .jejejejeje......
Jm.Icon.46
ReplyDeleteJerry Mar Bugayong
carlos louis torio po....
ReplyDeletesir..kaw na lang magkwento ng narrative ni mr. postman..
baka sakaling maintindihan ko...
party party na lang sana...:))
kevin
ReplyDeleteKevin.Melisa24@gmail.com
Sir pasa mo lng kme para next sem mgaaral na ako mbti
Icon-57
ReplyDeleteMaricar Marquez
sir ambait nio noh...ehe
ranillo
ReplyDeleteyong.mica@gmail.com
dlawa pala!!!!
Icon 55
ReplyDeleteLaila Mahor
Sir aman,, bongga heheh:)Ejee
krisha mica
ReplyDeletekrisha.mica@gmail.com
HAHAHAH!!!! patay ah!!
Icon_48
ReplyDeletemykatotz
haLla ka nman?!!!!ano to?!!bakit ganun!!?nakikita ko pa lang sumsakit na ulo ko..putik!!!parusa nman to !!!grabe..kabait mu tlga tandang noe..! ♥♥♥Love you na tlga!!♥♥♥hehe.ur D best!!.wOooHhh..gudluck sa ating lhat..kaya ntin tong "pagsubok"? na to.!!!hahaha..LaBet.♥.!
ruby
ReplyDeleteyburbluefire@gmail.com
nakakamurit!
sir,over to the max,nka2mur8 na,,hehehe........................................
ReplyDeletejeremie
ReplyDeletejher.ugay@gmail.com
hayZZZ...
Cris Domingo
ReplyDeleteCCS-A
Sir... Ang hirap tlga. . .
Jhennet Sabado
ReplyDeleteIcons
Sir. Hirap Tlaga.. . .
#include
ReplyDeleteusing namespace std;
int main(void)
{
int num1,num2;
float ans;
char sel;
cout<<"edward_candelario\n";
cout<<"sir Noe if tama po tong ginawa ko\n";
cout<<"kc po diko po na take mga lesson na toh\n";
cout<<"nung first sem poh\n";
cout<<"St. Rose College\n";
cout<<"OOP Final Case Study";
cout<<"\nM_E_N_U:";
cout<<"\n[1]-Addition";
cout<<"\n[2]-Subtraction";
cout<<"\n[3]-Multiplaciton";
cout<<"\n[4]-Standard Division";
cout<<"\n[5]-Modulos Division";
cout<<"\nEnter Selection:";
cin>>sel;
switch(sel){
case '1':
cout<<"Enter First Number:";
cin>>num1;
cout<<"\nEnter Second Number:";
cin>>num2;
ans=num1+num2;
cout<<"\nthe sum is:"<>num1;
cout<<"\nEnter Second Number:";
cin>>num2;
ans=num1-num2;
cout<<"\nthe subtraction is:"<>num1;
cout<<"\nEnter Second Number:";
cin>>num2;
ans=num1*num2;
cout<<"\nthe product is:"<>num1;
cout<<"\nEnter Second Number:";
cin>>num2;
ans=num1/num2;
cout<<"\nthe quotient is:"<>num1;
cout<<"\nEnter Second Number:";
cin>>num2;
ans=num1%num2;
cout<<"\nthe modulos division is:"<<ans<<endl;break;
default:cout<<"unknown selection!!!";
}
return 0;
}
sir dun po sa int main(void) at main(int argc, char **argv) gumagana sa akin sa inyo poa ta "args" thanks po