Thread View: aus.computers.java
8 messages
8 total messages
Started by SuPer GaL
Sat, 20 May 2000 00:00
PseudoCode To Java
Author: SuPer GaL
Date: Sat, 20 May 2000 00:00
Date: Sat, 20 May 2000 00:00
99 lines
2717 bytes
2717 bytes
Well i have this problem, for my assignment and need some help!!! well heres the question: processStudTeach partTimeStu � 0, fullTimeStu � 0 partTimeTea � 0, fullTimeTea � 0 open students.dat and teachers.dat files (use PrintWriter from Lect. 7) main code � "", name � "" DO code � getCode() WHILE code NOT= "S" OR "s" OR "T" OR "t" OR "Q" OR "q" WHILE code NOT= "Q" OR "q" DO name � getName() IF code = "S" OR "s" THEN processStudent(name) ELSE processTeacher(name) ENDIF DO code � getCode() WHILE code NOT= "S" OR "s" OR "T" OR "t" OR "Q" OR "q" ENDWHILE displayResults() close files END END processStudent(nme) studentNum � null PROMPT for studentNum READ studentNum WRITE nme TO students.dat file WRITE studentNum TO students.dat file DO PROMPT for partFullTime READ partFullTime WHILE partFullTime NOT= "F" OR "f" OR "P" OR "p" IF partFullTime = "F" OR "f" THEN fullTimeStu � fullTimeStu + 1 WRITE "F" TO students.dat file ELSE partTimeStu � partTimeStu + 1 WRITE "P" TO students.dat file ENDIF END processTeacher(nme) staffNum � null PROMPT for staffNum READ staffNum WRITE nme TO teachers.dat file WRITE staffNum TO teachers.dat file DO PROMPT for partFullTime READ partFullTime WHILE partFullTime NOT= "F" OR "f" OR "P" OR "p" IF partFullTime = "F" OR "f" THEN fullTimeTea � fullTimeTea + 1 WRITE "F" TO teachers.dat file ELSE partTimeTea � partTimeTea + 1 WRITE "P" TO teachers.dat file ENDIF END getCode() PROMPT for loopCode READ loopCode RETURN loopCode END getName() PROMPT for personName READ personName RETURN personName END displayResults() DISPLAY "There are ", partTimeStu + fullTimeStu, " students" DISPLAY partTimeStu, " are part time" DISPLAY fullTimeStu, " are full time" DISPLAY "There are ", partTimeTea + fullTimeTea, " teachers" DISPLAY partTimeTea, " are part time" DISPLAY fullTimeTea, " are full time" DISPLAY "There are an average of ", (partTimeStu + fullTimeStu)/(partTimeTea + fullTimeTea), " students per teacher" END It needs to be converted into Java and im having problems can anyone help!?!?! please thanx in advance
Re: PseudoCode To Java
Author: Paul Murray
Date: Mon, 22 May 2000 00:00
Date: Mon, 22 May 2000 00:00
24 lines
1657 bytes
1657 bytes
"Alan Boldock" <aboldock@camtech.net.au> wrote in message news:VZ1W4.39766$PL4.842769@ozemail.com.au... > Your letter reveals so many misconceptions that it is > frightening to realise that you assumedly have a > university degree. I don't. Dropped out and got a job C programming. > It obviously did little to broaden > your mind. It's sad to see that such sexism still exists > within Australia. Sad to see that such nationalism exists where you come from. > There are good, bad, and excellent programmers > within each gender. Lighten up dude! Don't you recognise an obvious troll when you see one? For heaven's sake. At least I didn't tell her that she might as well become a prostitute for a living, or anything like that. Sheesh. -------------------------------------------------------------- http://www.users.bigpond.com/pmurray ICQ: 26066755
Re: PseudoCode To Java
Author: SuPer GaL
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
65 lines
3019 bytes
3019 bytes
geeez when u ask a question u expect an answer or even close to it, i cant believe how narrow minded some people are!!! just once i would like to see that people dont have to take things out of proportion!!! all i can say is that some ppl need to get a life!!!! and i respect ross's answer its true i should learn by doing it myself!! "Alan Boldock" <aboldock@camtech.net.au> wrote in message news:VZ1W4.39766$PL4.842769@ozemail.com.au... > Your letter reveals so many misconceptions that it is > frightening to realise that you assumedly have a > university degree. It obviously did little to broaden > your mind. It's sad to see that such sexism still exists > within Australia. > > I personally have worked with several female programmers > and many of those ran rings around me!!! > > Perhaps you haven't been working in the right places? > > There are good, bad, and excellent programmers > within each gender. > > Alan > > > "Paul Murray" <pmurray@nospam.bigpond.com> wrote in message > news:1mSV4.889$c5.1415@newsfeeds.bigpond.com... > > "SuPer GaL" <hanina_rind@primus.com.au> wrote in message > > news:39262608$1@news.iprimus.com.au... > > > Well i have this problem, for my assignment and need some help!!! well > > heres > > > the question: > > > > <snip homework she wants someone else to do> > > > > > It needs to be converted into Java and im having problems can anyone > > > help!?!?! please > > > thanx in advance > > > > The reason you are having difficulty is because you are a girl, and girls > > are no good at computers. I saw the same thing whlie I did my degree - all > > the females getting the guys to do their work for them. God help your > future > > employer. No wonder degrees of any sort are widely regarded as almost > > worthless. > > > > What I'd like to see is an all-female IT deparment. It'd be hysterically > > funny to watch the dawning horror on everyone's faces as they realise that > > no one actually knows how to do the work - they each only know how to get > > someone else to do it. > > > > Go get a job in interior design, psychology, "women's studies" or > astrology. > > > > -------------------------------------------------------------- > > http://www.users.bigpond.com/pmurray > > ICQ: 26066755 > > > > > >
Re: PseudoCode To Java
Author: someguy
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
31 lines
1912 bytes
1912 bytes
hahahahaha very funny "Paul Murray" <pmurray@nospam.bigpond.com> wrote in message news:ImaW4.1585$c5.2418@newsfeeds.bigpond.com... > "Alan Boldock" <aboldock@camtech.net.au> wrote in message > news:VZ1W4.39766$PL4.842769@ozemail.com.au... > > Your letter reveals so many misconceptions that it is > > frightening to realise that you assumedly have a > > university degree. > > I don't. Dropped out and got a job C programming. > > > It obviously did little to broaden > > your mind. It's sad to see that such sexism still exists > > within Australia. > > Sad to see that such nationalism exists where you come from. > > > There are good, bad, and excellent programmers > > within each gender. > > Lighten up dude! Don't you recognise an obvious troll when you see one? For > heaven's sake. At least I didn't tell her that she might as well become a > prostitute for a living, or anything like that. Sheesh. > > -------------------------------------------------------------- > http://www.users.bigpond.com/pmurray > ICQ: 26066755 > > >
Re: PseudoCode To Java
Author: Tim Cross
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
41 lines
2472 bytes
2472 bytes
> > "Paul Murray" <pmurray@nospam.bigpond.com> wrote in message > > news:1mSV4.889$c5.1415@newsfeeds.bigpond.com... > > > "SuPer GaL" <hanina_rind@primus.com.au> wrote in message > > > news:39262608$1@news.iprimus.com.au... > > > > Well i have this problem, for my assignment and need some help!!! well > > > heres > > > > the question: > > > > > > <snip homework she wants someone else to do> > > > > > > > It needs to be converted into Java and im having problems can anyone > > > > help!?!?! please > > > > thanx in advance > > > > > > The reason you are having difficulty is because you are a girl, and > girls > > > are no good at computers. I saw the same thing whlie I did my degree - > all > > > the females getting the guys to do their work for them. God help your > > future > > > employer. Stating that "...girls are no good at computers." is a pretty bold statement when you consider its generally accepted the first computer programmer was a woman (Ada Simpson) and it was a woman who thought of and developed the first compiler (Can't remember her name - from memory she was working for the US navy at the time). If all the women in computing at your uni managed to get all you guys to do their work all I can say is good on them and to all of you who did the work I'd say you have been sucked in by your antiquated misconceptions of "poor helpless females". For your employers sake, I hope you have a more open mind when dealing with programming issues than you do when dealing with social ones. -- Tim Cross NorthNet Internet Services mailto:tcross@northnet.com.au phone:+61 2 6772 5973
Re: PseudoCode To Java
Author: Ross Vumbaca
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
31 lines
1746 bytes
1746 bytes
Hi,
Tim Cross wrote:
> Stating that "...girls are no good at computers." is a pretty bold
> statement when you consider its generally accepted the first computer
> programmer was a woman (Ada Simpson) and it was a woman who thought of
> and developed the first compiler (Can't remember her name - from
> memory she was working for the US navy at the time).
I thought her name was Ada Lovelace? Was I mis-informed at school?
(shock..horror).
Regards,
Ross..
--
*TO E-MAIL ME: Reverse the order of the domain name in my e-mail
address.*
Ross Vumbaca, a 'poor' Uni student at USyd.edu.au
http://www.fl.net.au/~rossv, e-mail: rossv@fl dot net dot au (fix this
if you e-mail me!)
Running on an Amiga 3000, NEC M700 17" thingy,
030/25, ECS, 8Mb Fast, 2Mb Chip, SCSI HDD's (never mind their size)
Kickstart 3.1 (40.68), OS 3.5, Linux 2.0 (RedHat 5.1), C= A2065 and an
Opalvision
card - ("Designed in Australia", and keeping the Zorro bus populated).
--
Re: PseudoCode To Java
Author: Tom Davies
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
11 lines
1270 bytes
1270 bytes
Tim Cross wrote in message ... >Stating that "...girls are no good at computers." is a pretty bold >statement when you consider its generally accepted the first computer >programmer was a woman (Ada Simpson) and it was a woman who thought of >and developed the first compiler (Can't remember her name - from >memory she was working for the US navy at the time). Ada *Lovelace* and Admiral Grace Hopper. I don't think COBOL was the first compiled language though.
Re: PseudoCode To Java
Author: Paul Murray
Date: Thu, 25 May 2000 00:00
Date: Thu, 25 May 2000 00:00
11 lines
1308 bytes
1308 bytes
"Tom Davies" <tom@smartchat.net.au> wrote in message news:8ggl8e$qus$1@perki.connect.com.au... > > Ada *Lovelace* and Admiral Grace Hopper. I don't think COBOL was the first > compiled language though. I thought it was fortran - someone wrote a routine that would TRANslate FORmulas unto machine code. -------------------------------------------------------------- http://www.users.bigpond.com/pmurray ICQ: 26066755
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads