Richie86’s Life!!

It’s all about me!!

Imagine Day 2007.. A Successful Day but something dissapointed happened behind..

Posted by Richie86 on December 21, 2007

Its Imagine Day 2007.. when I walk into our college hall, I was impressed with the environment.. it’s like PC Fair . I have a very good memory in this day as I won the prize for Algorithm Challenge, how ever.. something disappointed me when I figured out something which is totally unfair to me.

During the briefing before the competition, we are informed by the instructor that the prize for Algorithm category is a wireless mouse which worth RM200. However, when I receive the prize, there is no wireless mouse. but just a magazine with some free gift.(By right the champion of each category should get a prize like keyboard set and so on, then come together with the free gift and magazine) At first i was not take it serious since I’m glad what i had achieve, my dear, friends,classmate, course mate are came and give me support all the day.. especially my class/course rep Daniel, who reach in the hall in the afternoon and giving me a lot of support.

How ever on the second day, while talking to my friend, I realize that he doesn’t even know the prize changes since he is the instructor for our competition, and surprisingly the “wireless mouse” appeared in the committee lucky draw during the celebration dinner last night. I started to feel unfair to me so we decide to figure out the truth. We had spoke to the chair person Kok Chiann, who was the well known student in our college, as well as Microsoft Student Partner. What I had receive the explaination is… (see the conversation log below)

Session Start: Thursday, December 20, 2007
Richie86 (ghykthyybfk@hotmail.com)
AH Hang(hgun77@hotmail.com)
KC (kokchiann@hotmail.com)


(5:54 PM) AH Hang: hi kok cian
(5:54 PM) AH Hang: morning~
(5:54 PM) AH Hang: i wanna ask some thing...
(5:54 PM) KC: oooo
(5:54 PM) AH Hang: Richie is the algorithm winner
(5:54 PM) KC: hehe
(5:54 PM) KC: i know
(5:54 PM) KC: congrats man
(5:54 PM) Richie86: wireless mouse gone :X
(5:54 PM) AH Hang: wanan ask some thing
(5:55 PM) AH Hang: the gift that he get... is all seem like very big diff wiv what u told me wo
(5:55 PM) AH Hang: what u get richie ?
(5:55 PM) KC: discussed with the school and re-organized the prizes
(5:55 PM) KC: got approval with both Microsoft and TARC
(5:56 PM) AH Hang: what do u get richie ?
(5:56 PM) Richie86: oo
(5:56 PM) Richie86: magazine.. vs2008, game, 50.NET, concert ticket
(5:56 PM) AH Hang: seem like very big diff with other category.
(5:57 PM) AH Hang: this all seem like "free gift"
(5:57 PM) Richie86: wireless mouse goes to lucky draw?
(5:57 PM) KC: hmm, so what u plan i do for it?
(5:58 PM) AH Hang: hard to imagine algorithm can survive in imagine day 2008 or not.
(5:58 PM) AH Hang: just need to explain to richie la.. cos he word so hard for that
(5:58 PM) AH Hang: i just connect richie to u...
(5:58 PM) Richie86: how come suddenly change the prize?
(5:58 PM) KC: frankly
(5:58 PM) KC: the prizes were P&C
(5:58 PM) KC: and we have the full right to change it, even the rules
(5:59 PM) AH Hang: bcos compare to other category,....
(5:59 PM) KC: so, please understand
(5:59 PM) Richie86: luckly the person get is me.. -.-
(5:59 PM) AH Hang: just feel a bit unfair for richie
(5:59 PM) Richie86: because chu hang do told every finalist about the prize too..
(5:59 PM) Richie86: so if other one that won, but doesn't get it then..
(6:00 PM) KC: ok
(6:00 PM) KC: i explained to you
(6:00 PM) KC: i doubt i need to repeat myself
(6:00 PM) KC: u shud be thankful you have won, ok?
(6:01 PM) AH Hang: ok, richie... u can close ur msn d.
(6:02 PM) AH Hang: by the way
(6:02 PM) AH Hang: u can do something richie
(6:03 PM) KC: remember its not about the prizes, but the TARC Imagine Cup is to prepare you guys for the actual Imagine Cup
(6:03 PM) KC: so u get a better picture of what you would need to do in the actual Imagine Cup, for the categories u participate in
(6:04 PM) AH Hang has left the conversation.

Session Start: Thursday, December 20, 2007
Richie86 (ghykthyybfk@hotmail.com)
KC (kokchiann@hotmail.com)

(9:30 PM) KC: hope u understand, our event very tight budget and alot of constraints, ok? the prizes we get also very limited and hard to allocate and we did the best we can, ok?
(9:30 PM) Richie86: ?
(9:30 PM) KC: regarding the prizes
(9:30 PM) Richie86: hmm
(9:31 PM) KC: anyway u won a desktop set in lucky draw aso
(9:31 PM) Richie86: so that the reason it get removed?
(9:31 PM) KC: nope
(9:31 PM) KC: it was allocated early morning, based on the prizes given
(9:31 PM) Richie86: but it appeared in committee lucky draw..
(9:31 PM) KC: i had no idea u won anyway
(9:32 PM) KC: yes, it was reallocated in the committee lucky draw, who worked hard in organizing this gigantic event
(9:32 PM) Richie86: and nobody knew "changes" that you mention too
(9:32 PM) Richie86: glenn the person in charge, or huey chen too
(9:32 PM) KC: well, it got the approval of the main decision making parties, the school and microsoft
(9:33 PM) KC: u think everyone has so much time for everything?
(9:33 PM) KC: so i hope u understand, k?

After, I tried contact few committee like Huey Chen(another MSP), and here is the conversation.

Session Start: Thursday, December 20, 2007
Richie86 (ghykthyybfk@hotmail.com)
H.Chen (hc_lim@hotmail.com)


(7:29 PM) Richie86: hi
(7:29 PM) H.Chen: yup
(7:30 PM) Richie86: i have some question to ask you
(7:30 PM) H.Chen: ?
(7:30 PM) Richie86: do you know the prize of imagine day 2007 for software design.. project hoshimi.. and so on?
(7:31 PM) H.Chen: hmm....the list not with me, but i can ask
(7:31 PM) Richie86: who is the person in charge O.o?
(7:33 PM) Richie86: I s that a "changes in prize" happened?
(7:34 PM) Richie86 has changed his/her personal message to "BRB"
(7:35 PM) H.Chen: hmm.....i think no


Session Start: Thursday, December 20, 2007
Richie86o Wo (L) Ni O (ghykthyybfk@hotmail.com)
H.Chen Imagine Cup 2007! Success and Sweet Memory!!! (hc_lim@hotmail.com)


(9:34 PM) H.Chen: hi
(9:34 PM) Richie86: hi
(9:34 PM) H.Chen: can i know what u get for the prize?
(9:35 PM) Richie86: standard set
(9:35 PM) Richie86: magazine, disc, game, 50.NET, music concert ticket
(9:35 PM) Richie86: KC admitted that the "wireless mouse" is reallocated to commitee lucky draw
(9:42 PM) H.Chen: as what we consider is, because algorithm is on the spot coding, less preparation compare to other category and is also a solo. we already try our best to allocate the prize.
(9:42 PM) H.Chen: anyway, we will further look into it with lecturers
(9:42 PM) Richie86: hmm
(9:43 PM) Richie86: but looks like you, glenn and everybody doesn't know about this "reallocation" before this
(9:44 PM) Richie86: I'm sure both of you do spoke to KC too
(9:45 PM) H.Chen: because i not incharge of the prize....so i not sure about this
(9:49 PM) Richie86: glenn is the person
(9:49 PM) Richie86: he dont know too :X
(9:50 PM) Richie86: Initiated a file transfer
(9:50 PM) Richie86: may be you will interest in this log
(9:52 PM) H.Chen: can resend please
(9:53 PM) Richie86: Initiated a file transfer
(9:53 PM) Transfer of "log.html" is complete.
(10:13 PM) H.Chen: nvm....we will discuss with lecturer first....but 1 confirm, we cant do anything
(10:15 PM) Richie86: ya
(10:16 PM) H.Chen: then we will let Ms Kathleen and Mr Yong decide on this
(10:17 PM) Richie86: sure


Session Start: Friday, December 21, 2007
Richie86(ghykthyybfk@hotmail.com)
t3ngf0ung (cheah_yuin26@hotmail.com)


(1:10 AM) t3ngf0ung: anything u would like to complain, let me know
(1:10 AM) Richie86: have KC told you?
(1:12 AM) Richie86: as told by Chu Hang.. the prize for algorithm is a wireless mouse, unfortunately it "converted" to committee lucky draw prize
(1:26 AM) t3ngf0ung: we never finalize the prizes until the Imagin Day itself... so what have you heard before the Imagine Day is not black and white...
(1:26 AM) Richie86: erm
(1:26 AM) Richie86: i heard it on the day
(1:26 AM) Richie86: the moment before competition
(1:28 AM) Richie86: and i understand also the committee have the right to make changes too
(1:28 AM) t3ngf0ung: its not the changes issue
(1:29 AM) t3ngf0ung: is, never tell to any of the committees about the prizes of the winners, who only the core committees know the lists
(1:30 AM) t3ngf0ung: the rumor u heard about wireless mouse as winner's prize is not true.. we never made any changes
(1:30 AM) t3ngf0ung: we decide the prizes according to the competition scope, efforts and sacrificing
(1:30 AM) Richie86: erm KC admitted that the price is changed to committee lucky draw
(1:33 AM) t3ngf0ung: he does?
(1:34 AM) Richie86: yep
(1:34 AM) Richie86: whatever you said just now is told by KC?
(1:34 AM) t3ngf0ung: nop
(1:35 AM) t3ngf0ung: what KC said is solid...
(1:37 AM) Richie86: hmm nvm on that.. at least Chu Hang stand on my side..
(1:38 AM) t3ngf0ung: whati want to tell u again is, we decide the prizes according to the competition scope, efforts and sacrificing
(1:38 AM) t3ngf0ung: hope you understand
(1:41 AM) Richie86: all right

as you can see in the conversation log, he claim that this is approved by Microsoft and TARC. But while I try to ask Mr Yong(Advisor of CS Society that organize this imagine day event) whether its truth or not, he doesn’t claim that is truth but just tried to change topic to avoid my question. Then I further asked him that whether KC had contacted him last night regard this, and yes he said. and before this, as an Advisor of CS Society, he doesn’t know the so called “Reallocation of prize” is made until KC contact him last night, as well as the “approval” from school and Microsoft as well. I couldn’t sleep last night because of the dissatisfactions in my heart, so I wrote up the letter and print out 4 copy which will be given to Mr Yong and Miss Kathleen (The Advisor of CS Society), Miss Lim (Program Supervisor of Advance Diploma in Computer Science), and lastly Dr Ng (the acting head of SAS).

Furthermore, Mr Yong said that there is equal fair for Algorithm Category compare to other category, this issues is just happen in sudden and nobody realize that, and he said the committee’s lucky draw were just the ‘left over’ stuff from the event, they don’t realize there is a mistake in this case. However if this is truth, why KC admitted that it’s transferred to the lucky draw. Furthermore, My Yong agreed that its same effort from each category, everyone had does their best, but i’m so unsatisfied that the committee take that as the reason for this issues. If it’s as easy or simple as they said, I would like to ask those who are MSP that have a lot of knowledge to the latest Microsoft technology, good programming skill and so on, “Do you ever know how to print out all possible combination of a poker card set, given the number of card for each combination without using a for/while/do while loop. nCr where n = 52, and r is given by user? Because of this competition, i do my research on the algorithm, and practice it so I can code it in the shortest time, and my record is 11min. Is this not the effort? I can code on the spot in front of any of them if they requested.

After spoke to Mr Yong, i feel that Miss Lim and Miss Katheleen had the right to know this, so I pass the letter to them too. I kept Dr Ng’s copy on my hand first because I dont think this is a good news to her, perhaps this can be solve equally and fair to me, to the committee, the lecturer, the school, the student, and the public too. Furthermore, if the “approval” that KC mention is an hoax, I’m sure he will know what mistake he had made, for abusing his power as chair person, as MSP , and also abusing name of TARC and Microsoft. ( I can just simply wrote a letter to Microsoft Malaysia and the the whole things will come to obvious)

While writing this blog, I checked my mail to see if i get any result from news paper group because last night I left a email to them, asking them whether they are interested in this issues or not. and China Press had replied my email and asking for my phone number, but I haven’t gave them yet since it doesn’t have to go further till that situation.

Lastly.. I know that most of them are well known student in TARC, If i’m trying to fight with them, most of the lecture will stand on their side, however, we should voice out for the truth right? even whole college doesn’t stand on my side, but at least.. my dear, my class mate (even their event crew member who were my classmates support on me too), my friend, and I’m sure the public as well. My dad said this to me too, “社会上假公济私的人大有人在, 上一次高当学一次精” (which means, there are a lot of jobbery issues in the real world society, when we get fool by someone, we learn to be smart against the future. This really pissed me off totally..

18 Responses to “Imagine Day 2007.. A Successful Day but something dissapointed happened behind..”

  1. Jnls said

    Hm, that’s interesting.. btw, u got me thinking, how is it possible to do factorial without looping?

  2. Richie86 said

    Are you TARCian? I would like to show you on the spot, explain the code line by line too.
    Edited: Seems like you are from malaysia ip :X

  3. Jnls said

    yea, I’m TARCian too. There’s no possible way of doing factorial without looping. Recursions are considered as loops too, it’s just in the form of a function.

    Congratulations on your Imagine Cup win, but just don’t get over your head just yet. I know many other TARCians who are strong in programming and maths. Also, TARC updated our PCD syllabus – diploma year 1 students now cover recursions too.

    The nCr function can be written more or less as follows:

    public int NCR(int n, int r) {
    if (r > 1) {
    return n / r * NCR(n – 1, r – 1);
    }
    return n / 1;
    }

    From http://en.wikipedia.org/wiki/Combination

  4. Richie86 said

    Finally you put your real email at this time.
    You have the right path, although recursion is consider loop by calling the function or procedure itself. But without using for/while/do while loop. Here is the example to print them with for loop, but you have no control of the r of nCr in this case.

    int cardSet = 52;
    int a,b,c;
    for (a = 1; a <= cardSet; a++)
    {
    for (b = 1; b <= cardSet; b++)
    {
    if (b == a)
    break;
    for (c = 1; c <= cardSet; c++)
    {
    if (c == a || c == b)
    break;
    lstResult.Items.Add(a.ToString() + ” ” + b.ToString() + ” ” + c.ToString());
    Application.DoEvents();
    }
    }

    But your code return wrong result of the amount of total nCr. and it doesn’t print the combination set like
    http://img503.imageshack.us/img503/893/finalcj2.jpg

    private void button1_Click(object sender, EventArgs e)
    {
    int totalCard = Convert.ToInt16(txtR.Text); // getting r value from textbox
    string strSet = LoadAll(); // generate all set of card: 1 to 52
    Pull(strSet, totalCard, strSet.Length, “”); // calling recursive procedure
    lstResult.TopIndex = lstResult.Items.Count – 1; // Set the result on the last index
    }

    private void Pull(string strSet, int r, int n, string strResult)
    { // accept 4 param, (all set of card, r value, n value, result string after recursion)
    if (r == 0) // recursion done.. show result
    {
    lstResult.Items.Add(FormatStr(strResult)); // format them before add to list box
    lblCount.Text = “nCr=” + lstResult.Items.Count; // show total count which is nCr
    Application.DoEvents(); // show result when loop still going
    }
    else
    {
    // extract the character from 52 – n, or we call the first of the last n
    string c = strSet.Substring(strSet.Length – n,1);
    // continue recursive, for case that you want to include c
    Pull(strSet, r – 1, n – 1, strResult + c);

    if (r < n) // continue recursive for the case you dont want to include c
    Pull(strSet, r, n – 1, strResult);

    // this method that recall function itself make us use no for loop at all
    // let say first set of char is “abcde” and r is 5
    // if you debug from beginning of this procedure, you can see value of strResult is changed each time call itself
    // 1. “a”
    // 2. “ab”
    // 3. “abc”
    // 4. “abcd”
    // 5. “abcde”
    // 6. r==0 result returned, back to the place where it call itself then continue again
    // 7. “a”
    // 8. “ab”
    // 9. “abc”
    // 10. “abcd”
    // 11. “abcdf”
    // 12. continue until everything done
    }

    }

    private string FormatStr(string str)
    { // turn ascii back to something we understand
    string strResult = “”;
    string strValue = “”; // string to store value, so we can show J Q K
    int value, num, cell; // value is the value of card(1 to 13), num(1 to 52), cell is card type (0-3)
    for (int i = 0; i < str.Length; i++) // loop all string element
    {
    num = (int)Convert.ToChar(str.Substring(i, 1)); // extract substring, convert to char then get the ascii value
    value = num % 13; // mod with 13 to get value
    cell = num / 13; // divide to get cell
    if (num % 13 == 0) // this case is for when num is 13,26,39..
    {
    value = 13; // overwrite value to 13, if not num % 13 value is 0
    cell = num / 13 – 1; // 13/13 = 1, should be 0, so overwrite it by -1
    }
    if (value == 11)
    strValue = “J”;
    else if (value == 12)
    strValue = “Q”;
    else if (value == 13)
    strValue = “K”;
    else if (value == 1)
    strValue = “A”;
    else
    strValue = Convert.ToString(value);

    strResult += “[" + GetCell(cell) + "-" + strValue + "]“; // format them !!
    }
    return strResult;
    }

    private string GetCell(int cell)
    { // cell value is 0 to 3, turn it to be more understandable
    string str=”";
    switch (cell)
    {
    case 0:
    str = “♠”;
    break;
    case 1:
    str = “♥”;
    break;
    case 2:
    str = “♣”;
    break;
    case 3:
    str = “♦”;
    break;
    }
    return str;
    }

    private string LoadAll()
    {
    string str = “”;
    for (int i = 1; i <= 52; i++)
    // (char)i = > get ascii char of value i
    // reason is because 1 to 52, char length for each is 1 or 2,
    // so turn them to ascii so char length is fixed to 1 each
    str += Convert.ToString((char)i);
    }
    return str;

    }

    Reference:
    http://forum.java.sun.com/thread.jspa?threadID=681181&messageID=3971590

    btw this code not meet the 100% requirement of the question of final too. The question is find the combination set for nCx where n = 52 and x = 1 to n. and filter them by showing the combination that have sum value given by the user.

    Edit: furthermore, I’m not trying to bring down the Image of Imagine Cup. Honestly, apart from this issues, I’m proud of the this event that is so successful. However I’m just searching for the reason of why this decision can be made. Convert the prize to committee lucky draw and take give all of these reason, and most funny is.. Microsoft support and approve them to make this decision, which will make the public think this is so unfair..

  5. Jnls said

    There are many, many other factors that were taken into account when the prizes were allocated, it’s not as easy as it seems. Of course, compromises will have to be made here and there, but we still try our best to make everyone happy.

    Lastly, Imagine Cup is not about the prizes – it’s about the exposure, the learning experience. Prizes are in fact, a bonus for participants. We we hope to achieve, is for all participants to give a shot at the actual, worldwide Imagine Cup sponsored by Microsoft, and we hope that with TARC internal Imagine Cup, they are better prepared for it!

  6. Richie86 said

    you are right, that why my purpose is not about the prize. I’m not silly until complain this and that just because of the prize. That why when Mr Yong ask me “so what you want from this? the mouse?”, and I replied him, “I don’t think that is possible since they mouse already goes to someone in the lucky draw, but I just want the to know why they can do so”.

    If I’m care about the prize, I was complain on the day but not the next day when I found out something. If you look this from another view point, let say business view point. When a company get complain from a customer, what is the first thing come first? Customer Service right? Even though the prize being allocated to lucky draw with any reason, and when I’m asking the reason, person in charge reply me nicely of course I can accept too. But the way I got treat is totally different. Honestly if I would like to compare, the way Mr Yong entertain me is much more better compare to other.

    Although the event is over, but It’s good to treat student nicely right? Imagine the situation like customer complain to a company about their services, but somehow the company give the reply like “We are the company, we can do what we want since we have the power”. So in this case do you think this will make the customer satisfied?

    While making this complain, I do respect everyone, every lecturer too. I know there is something can be solve before it goes worst. If I does not respect anybody, I would already submit the letter to Dr. Ng, or even call back to ChinaPress since they are interest in this story. and the worst thing, If the “approval from Microsoft..” is fake, what do you think? Microsoft is eligible to sue KC for public placing another into false light, falsely connecting a person/organization to an embarrassing situation resulting injury to reputation. Of course Microsoft wont sue a person for a small matter that doesn’t involve money issues, but TARC’s image will affected for sure since KC is the image of TARC, image as a MSP. I give my respect and I know this shouldn’t go further until that situation.

    So far when I talk about this to all my friend, every of them also feel that the decision taken is unfair, somehow with the bad entertain when we asking about that. If everyone would like to make conclusion on this case, I don’t mind to come out a survey around TARC student. If high percentage of student conclude that I’m wrong, I would like to give my apology to every party that involve in this case.

    Finally, I appreciate that at least.. at least I’m entertain nicely by Mr Yong.. Even though I had waste 3 hour time to wait him since 7:15am on that day but it’s worth..

  7. Richie86 said

    CE6hmZumT1wlN1TSLx6Rpia7RexT9IemfqRCq5BV+2ethqp7Jvr9a8Q95kd0yW0u

  8. david said

    it’s sad to heard this news. i’m utarian but study in setapak campus. i’d lots of friends study in TARC too and i know there is politics inside. they play around what they like!

    it’s normal case. just be alert next time. but important is you learned & gained something for this competition.

  9. Richie86 said

    the world, the community is unfair because of a lot of people with different attitude.. but I appreciate that I have a lot of friend that support me. Even some of their committee also support me.. 鄙视他们!

  10. LeeHY said

    Great.

  11. darkPriest said

    dont be stupid la, the organiser can decide anything prize to give out, although you make noise until where also same and then Chun Hang also not being right, he also cheat the competitor’s lucky draw voucher to be his own… lucky get noticed… if not also not fair to other commitee…

  12. darkPriest said

    i sure will be complain on that date lo, now already pass…talk oso no use…now u just saying the things forward here and that is ntg to do about it onli…seems u so care wat about your feeling is, y that day u dun argu with them…now the event pass on, y u need to post all the things at here…this is for wat use???but KC who in charge is very “lan tiu”, i oso see the things(message posted), he say ” KC: remember its not about the prizes, but the TARC Imagine Cup is to prepare you guys for the actual Imagine Cup
    (6:03 PM) KC: so u get a better picture of what you would need to do in the actual Imagine Cup, for the categories u participate in” then KC, you just care bout the success of the event but not care about the others???this calling team-work…u are suck!!!

  13. Richie86 said

    I post because I feel upset with the way they do the thing. Giving out lame explanation and yet with rude attitude.

  14. GAN CHU HANG said

    “dont be stupid la, the organiser can decide anything prize to give out, although you make noise until where also same and then Chun Hang also not being right, he also cheat the competitor’s lucky draw voucher to be his own… lucky get noticed… if not also not fair to other commitee…”

    Hey darkPriest! What do you means by “cheat” !

  15. jazz said

    package imagicecup;

    /**
    *
    * @author Jazz
    */
    public class Q3 {

    /** Creates a new instance of Q3 */
    public Q3() {
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    String show=”";
    int sum = 5;
    int boker = 52;
    int combi = (int)Math.pow(boker, 4);
    int count = 0;
    //int cardneed=0;
    for (int y = 0; y <= 4; y++)
    {
    int[] array = { 0, 0, 0, 0 };
    for (int i = 0; i < (int)Math.pow(boker, y); i++)
    {
    if (!validCounterIndex(i, y))
    continue;
    for (int x = 0; x ” + print(array)+”\n”;
    }
    }
    System.out.println(show);
    }
    public static String print(int[] array) {
    String show = “”;
    for(int i: array)
    show += tostring(i)+” “;
    return show;
    }
    public static int value(int index) {
    if (index == 0) return 0;
    int value = 0;
    if (index % 13 == 0 || index % 13 == 12 || index % 13 == 11)
    value = 10;
    else
    value = index % 13;
    return value;
    }
    public static int SUM(int[] array) {
    int sum = 0;
    for(int i: array)
    sum += value(i);
    return sum;
    }
    public static boolean duplicate(int[] array) {
    boolean Duplicated = false;
    for (int i = 0; i < array.length; i++) {
    for (int x = 0; x < array.length; x++)
    if (i != x)
    if (array[i]!=0&&array[i] == array[x]) Duplicated = true;
    }
    return Duplicated;
    }
    public static String tostring(int index) {
    String output = “”;
    String[] array ={“1♠”,”2♠”,”3♠”,”4♠”,”5♠”,”6♠”,”7♠”,”8♠”,”9♠”,”10♠”,”J♠”,”Q♠”,”K♠”,
    “1♥”,”2♥”,”3♥”,”4♥”,”5♥”,”6♥”,”7♥”,”8♥”,”9♥”,”10♥”,”J♥”,”Q♥”,”K♥”,
    “1♣”,”2♣”,”3♣”,”4♣”,”5♣”,”6♣”,”7♣”,”8♣”,”9♣”,”10♣”,”J♣”,”Q♣”,”K♣”,
    “1♦”,”2♦”,”3♦”,”4♦”,”5♦”,”6♦”,”7♦”,”8♦”,”9♦”,”10♦”,”J♦”,”Q♦”,”K♦”};
    if(index!=0)output=array[index - 1].toString();
    return output;
    }
    public static boolean validCounterIndex(int counterIndex, int cardNeeded) {
    for (int cardNo = 0; cardNo < cardNeeded – 1; cardNo++) {
    int a0 = (counterIndex / (int)(Math.pow(52, cardNo))) % 52;
    int a1 = (counterIndex / (int)(Math.pow(52, cardNo + 1))) % 52;
    if (a0 <= a1)
    return false;
    }
    return true;
    }
    }

    //This is the code that i implement in java, please give some comment about it , pls

  16. Richie86 said

    yep.. your code look nice.. quite similar to the answer of given by instructor.. btw are you TARCian??

  17. jazz said

    ya, im tarcian 2

  18. Richie86 said

    Let’s play a game. Let say your student ID and NRIC is
    StudentID: 01WAD01111
    ICNO: 860101-01-5111

    You censored some part of the number with X and give me here like example below..
    01WAD0X1X1
    86XX01-01-5X1X

    then I show you something special after that ^^

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>