|
|
#1 (permalink) |
|
Honorary Member
|
ok heres the problem.
This semester we're doin programming which i have absolutly no interest in. (i prefer the networking side of things) so intead of teaching myself how to use VB i figure ill pay some1 to do somethin that will prolly take them 30 mins. (I mean i'm not going to need to know this **** to do a cisco course...) neway heres the task Prime Factors. Using the following flow chart, first convert it into pseudocode then create a form that asks the user to supply an integer greater than 1 and then display all the prime numbers that multiply together to get the user’s number. and a flowchart and heres what i've done so far, im pretty sure its wrong though. start program dim interger n n > 1 dim interger F F = 2 If N > 1 Then f/d evenly Then Display F set N = F/N Else N + 1 Else End End If If N < 1 Then F + 1 Then End if (as u can probably tell i've only been to 2 of these classes) if some1 wants to convert this into pseudocode and then write the code in VB in WORD. i'll transfer $20 bucks into their account. add me to msn or xfire first. DONT DO IT BEFORE SPEAKING TO ME AS I MAY HAVE ALREADY GOT IT AND YOU WOULD AHVE WASTED YOUR TIME!!! SO PLEASE CONTACT ME FIRST. MSN = contha@hotmail.com xfire = pHi12 please keep the "dumbass" comments to a minimum. I know its very basic ****, i jsut cant stand it, i find it boring and its of no interest to me. thanx
__________________
#OGN on Gamesurge Last edited by pHi; 07-09-2007 at 01:54 PM.. |
|
|
|
|
|
|
|
#2 (permalink) |
|
Monster Member
Join Date: Dec 2006
Location: the immunity syndicate
Age: 30
Posts: 2,998
Rep Power: 5
|
pseudocode -> intricate names and you dont "dim" things. and the program starts with BEGIN programname and END programname
instead of display its PRINT its hard to understand because the integers mean nothing as just letters. edit: woops, didnt look at the diagram. my attempt. i dont know how to do that loop Code:
BEGIN PrimeFactors PRINT "Enter a number greater than 1" GET N F = 2 IF N > 1 THEN IF F divides N evenly THEN PRINT F N = N/F ELSE F = F + 1 ENDIF ELSE END ENDIF END PrimeFactors Last edited by FuRbY*; 07-09-2007 at 02:00 PM.. |
|
|
|
|
|
#5 (permalink) |
|
Monster Member
Join Date: Nov 2006
Location: Merrylands 2160
Age: 21
Posts: 3,687
Rep Power: 6
|
il modify what furby got.
Code:
BEGIN PrimeFactors PRINT "Enter a number greater than 1" BOOLEAN numFound = false GET N F = 2 DO IF N > 1 THEN IF F divides N evenly THEN PRINT F N = N/F ELSE F = F + 1 ENDIF ELSE END ENDIF While numFound=false END PrimeFactors Code:
BEGIN PrimeFactors
...
IF N > 1 THEN
IF F divides N evenly THEN
PRINT F
N = N/F
numFound=true
ELSE
F = F + 1
ENDIF
ELSE
END
ENDIF
...
END PrimeFactors
|
|
|
|
|
|
#11 (permalink) |
|
Monster Member
|
Function isNecro(thread)
If thread.lastpost.date < this****ingyear Then isNecro = True isNecro = False End Function Dim freakout freakout = isNecro this****ingthread If freakout = True Then Call FREAKTHE****OUT Else Call Bemildlyamused End If
__________________
Bork bork bork!
|
|
|
|
|
|
#12 (permalink) |
|
Monster Member
|
Is this still up for 20 bucks? I can do it properly.
__________________
AMD 5000+BE@3.21GHZ//2GB OCZREAPER//ATI HD3870@850/1301 ANTEC 900//RAZER TARANTULA//TT TAI-CHI M2//SS 5HV2 XFI #GotGames #MelbCSS #s2.au #Reality.Gaming #TRAiNWRECK melb.lan.net.invite - kto_-[1b] |
|
|
|
|
|
#14 (permalink) | |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
Quote:
chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|
|










