Thursday, July 16, 2015

Code Guru : Gateways 2015 : Mango Frenzy


Article Written By : Jibrael Jos

Code Guru 2015 was very well contested. There were 32 participants from M.Sc and MCA of Christ University. The completion was a solo event and all in a race for time. Net time was 1 hour. The Top 10 Code Gurus are:

I - Diganta Das (MCA)
II - Amlanjyothi Saikia (M.Sc Comp Science)
III - Jonathan Paul (MCA)

Position IV to X are :
Diarra Cheick Oumar, Akashdeep Bhattacharya, Kaiwalya Limaye,
Teresa Mary Philip, Tushar Chindalia, Fifie Francis, Nivetha Yadhavan

Congratulations to one and all !!!

The questions inspired by my Ph.D. research area were

Mango Frenzy
     
0.     Create a 30 by 30 world initialize to zero, Display as given in table.

1.       Create a Rectangle Mango of given length and breadth hanging from a stem (size 5,2) at position (0,14) . Display it.
2.       Hard Code Mango length as 20 by 20 starting at 5,25.
3.       Add Right Weevil at given x and y … Weevil eats his way to right side.
4.       Add Seed Weevil which moves to center/seed of mango.
5.       Add a Fruit Fly which flies around the mango in anti-clock wise steps of 3.
6.       Add an Eating Fruit Fly, like step 6 but also eats on the way.
7.       Mango part below drops down when right weevil eats thru the mango.

 

0
Nothing
Space
1
Stem
*
2
Mango
#
3
Fruit Fly
F
4
Eating Fruit Fly
E
5
Right Weevil
W
6
Seed Weevil
S

No comments:

Post a Comment