Hopefully.
I feel that the interview I had today went pretty well. It’s for the Co-Op (small supermarkety-type thing, as mentioned in previous post) as a Customer Service Assistant. I scored high on the questionnaire thing, and the guy who was interviewing me seemed pleased with my answers to his questions, even despite the fact I have pretty much no real work experience.
The pay is £5.85 an hour, which is pretty good - £1.08 higher than the minimum wage for someone my age. I’d be earning the same as my mum, assuming I got the job.
He said he’d phone my on Monday evening to let me known whether or not I was successful. So… two days of anxious waiting.
I’m also having a bit of trouble with some college homework. I’m not going to delve too much into it, but I basically need to figure out how to create an array of unique randomly generated numbers (between 1 and 40) in Java. We’ve been taught very little about actually using the language, so I’m having some difficulty with this, and any help would be great. If it helps (which I doubt), I’m using Maths.random() to generate the random numbers. Hell, even if you know how to do this in similar languages might help, since I might be able to work it out from that.
Oh and also… it’s been snowing. Gah. I foresee a lot of standing around, waiting for buses in the near future. Our bus services are an atrocity. I cant remember the last time I got on a bus that was on time.
On Thursday, I got out of collge an hour early. Yay. So I headed down to the bus station and just as I entered, the bus I needed to get on pulled away. Annoying yes, but couldn’t really be helped. The next one in about 20 minutes, so I went to Woolworths to kill some time. I left 5 minutes early to go and get the bus, which was due at 15:15. As I was walking down the road to the bus station, at 15:08, the bus was leaving.
WTF?
I need to learn to drive. Out of the last four times I’ve been to college, I’ve been late three of those, due to late buses. Grr.
Chelsea Says:
Ooh, The good old Co-Op! Hope you get the job
I’ve been job hunting for aaaages without luck!
Out of interest, where abouts in Scotland do you come from?
x
Joe Says:
I’m from Moray.
Larissa Says:
I hate buses, they are so unreliable like that. It’s even worse when they get stuck in traffic and they’re late. I was standing in the rain waiting for a bus and by the time it arrived I was drenched. >_<
Good luck with getting the job! It sounds like an alright wage.
Vera Says:
Hm… I’m a bit rusty with Java, plus I worked a lot with C# so the syntax may be a bit complex, but I hope this helps.
class myprogram
{
int[] uniqueArray;
bool distinct(int n, int dim)
{
int i=0;
bool dist = true;
while (dist && i<dim)
{
if(uniqueArray[i]==n)
dist = false;
i++;
}
return dist;
}
void main()
{
int cdim = 0; //distinct numbers generated so far
for(int i=0; i=1 && distinct(x, cdim))
{
ok = true;
cdim++;
uniqueArray[cdim-1] = x;
}
}
}
//do something with your array
}
}
You generate a random number. Check if the array already has that value, if not add it to the array.
Dist(n,dim) checks if the value n already exists in the array.
Any other questions, feel free to e-mail me. Good luck with your assignment. Apologies for any inconsistencies with syntax. Haven’t coded any Java since 2nd year uni -.-;
Vera Says:
Oh sorry, it should have been “the syntax may be a bit weird” not “complex”. It’s past midnight, so I tend to mix up … erm regular words. XP
Enzo Says:
Oh! Good luck. I hope you get accepted! :


