Login to ZARP
|
|
leon21 wrote:
Reens wrote:
Looks like it tho haha XD (Sry man is dumb) leon21 wrote:
it's pseudocode what are you talking about ? turtle graphic is very differentWarning: Spoiler! [ Click to expand ][ Click to hide ] Aspect wrote:
I can give you a project i found enjoyment working on a couple of months ago. Took me personally about 2-3 hours in java to create - Let's see if you can do it faster: You basically input two values that acts as the X and Y. Let's say you give the computer 3 and 3. That would then print out a square of stars. Kinda like this: * * *
* *
* * * - Note that the computer scales and can get as big as you as the user wish to. Good luck and no excuses, lol tables are super easy just Warning: Spoiler! [ Click to expand ][ Click to hide ] for i from 1 till x
for j from 1 till y
if i=1 or i=x then
A[i,j]<--3
else_if j=1 or j=y then
A[i,j]<--3
else
A[i,j]<--' '
end_if
end_repeat
end_repeat that's pseudolanguage, just recreate it in a real language, this is the logic you'd use to create the table |
|
Login or register to post a reply.
|
leon21 wrote:
Aspect wrote:
Well i read that wrong, my bad. Was awake all night sadly. to be honest I don't know too much about java, but if you could give me what is the function of the program, I probably could write it in pseudocode at the best of my abilities, and you could make any applicable fixesBy the way idk if you're good at java but i like sharing my projects and (and giving critism obv) have a read if you got time and if you find ways to make it better or simply more readable feel free to let me know, (i used pastebin since it's only 1 class, and i'm lazy) program is pretty self explanatory but i'll ask any questions you have Sure, the program asks for 3 values to work with. In this case it randomizes numbers up to 20, then it prints out 10 per row. After that it creates another 4 tables after the first one. It then adds up the sum from every row and sort it (using insertion sort), printing out the highest, lowest and total amount of tables. Incase I explained it badly here's the input (5,10,20) and output (everything else). Warning: Spoiler! [ Click to expand ][ Click to hide ] Enter in order: How many tables, lists per table and random numbers scale:
5
10
20
Listing all arrays:
2 10 0 12 14 2 18 18 17 6
17 14 12 5 8 11 3 0 4 0
3 18 10 19 5 18 18 18 2 1
3 14 3 16 10 9 14 17 12 15
8 1 19 14 17 0 13 8 19 10
Adding each table to itself and sorting, please wait:
74
99
109
112
113
Total ammount of tables is : 5
Lowest number on the list is 74
Highest number on the list 113 |
|
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)
Last Edit: 7 years 3 months ago by catboy sven ツ.
Login or register to post a reply.
|
Aspect wrote:
leon21 wrote:
your syntax is sweet and you did a pretty good job on this little program, how long have you been into python? Aspect wrote:
Well i read that wrong, my bad. Was awake all night sadly. to be honest I don't know too much about java, but if you could give me what is the function of the program, I probably could write it in pseudocode at the best of my abilities, and you could make any applicable fixesBy the way idk if you're good at java but i like sharing my projects and (and giving critism obv) have a read if you got time and if you find ways to make it better or simply more readable feel free to let me know, (i used pastebin since it's only 1 class, and i'm lazy) program is pretty self explanatory but i'll ask any questions you have Sure, the program asks for 3 values to work with. In this case it randomizes numbers up to 20, then it prints out 10 per row. After that it creates another 4 tables after the first one. It then adds up the sum from every row and sort it (using insertion sort), printing out the highest, lowest and total amount of tables. Incase I explained it badly here's the input (5,10,20) and output (everything else). Warning: Spoiler! [ Click to expand ][ Click to hide ] Enter in order: How many tables, lists per table and random numbers scale:
5
10
20
Listing all arrays:
2 10 0 12 14 2 18 18 17 6
17 14 12 5 8 11 3 0 4 0
3 18 10 19 5 18 18 18 2 1
3 14 3 16 10 9 14 17 12 15
8 1 19 14 17 0 13 8 19 10
Adding each table to itself and sorting, please wait:
74
99
109
112
113
Total ammount of tables is : 5
Lowest number on the list is 74
Highest number on the list 113 Warning: Spoiler! [ Click to expand ][ Click to hide ] I plan on getting a certification for the whole language in summer before I go to university, but I don't know jack shit about it , only pseudocode and C and Lua but cough scripting cough well done on using insertion sort, it works wonders with very few data unfortunately I can't make constructive criticism, I often deal with problems myself that do not have too much coding difficulties, but they're rather hard to solve without writing a shitton of commands. An example would be writing a KENO program that behaves exactly like the real , actual version obviously. en.wikipedia.org/wiki/Keno This has to be maybe the second most hard exercise I've had to solve, it took me almost 2 hours start to end. The hardest exercise I've done yet was a program that I shortened from 220 lines to 127 by creating a triple insertion sort , amazing stuff |
|
Login or register to post a reply.
|
You’re barely capable of stringing together a sentence that can actually be read, I can’t imagine your spaghetti code...
|
|
Login or register to post a reply.
The following user(s) said Thank You: illegalimmigrant
|
leon21 wrote:
Aspect wrote:
leon21 wrote:
your syntax is sweet and you did a pretty good job on this little program, how long have you been into python? Aspect wrote:
Well i read that wrong, my bad. Was awake all night sadly. to be honest I don't know too much about java, but if you could give me what is the function of the program, I probably could write it in pseudocode at the best of my abilities, and you could make any applicable fixesBy the way idk if you're good at java but i like sharing my projects and (and giving critism obv) have a read if you got time and if you find ways to make it better or simply more readable feel free to let me know, (i used pastebin since it's only 1 class, and i'm lazy) program is pretty self explanatory but i'll ask any questions you have Sure, the program asks for 3 values to work with. In this case it randomizes numbers up to 20, then it prints out 10 per row. After that it creates another 4 tables after the first one. It then adds up the sum from every row and sort it (using insertion sort), printing out the highest, lowest and total amount of tables. Incase I explained it badly here's the input (5,10,20) and output (everything else). Warning: Spoiler! [ Click to expand ][ Click to hide ] Enter in order: How many tables, lists per table and random numbers scale:
5
10
20
Listing all arrays:
2 10 0 12 14 2 18 18 17 6
17 14 12 5 8 11 3 0 4 0
3 18 10 19 5 18 18 18 2 1
3 14 3 16 10 9 14 17 12 15
8 1 19 14 17 0 13 8 19 10
Adding each table to itself and sorting, please wait:
74
99
109
112
113
Total ammount of tables is : 5
Lowest number on the list is 74
Highest number on the list 113 Warning: Spoiler! [ Click to expand ][ Click to hide ] I plan on getting a certification for the whole language in summer before I go to university, but I don't know jack shit about it , only pseudocode and C and Lua but cough scripting cough well done on using insertion sort, it works wonders with very few data unfortunately I can't make constructive criticism, I often deal with problems myself that do not have too much coding difficulties, but they're rather hard to solve without writing a shitton of commands. An example would be writing a KENO program that behaves exactly like the real , actual version obviously. en.wikipedia.org/wiki/Keno This has to be maybe the second most hard exercise I've had to solve, it took me almost 2 hours start to end. The hardest exercise I've done yet was a program that I shortened from 220 lines to 127 by creating a triple insertion sort , amazing stuff Nice, that looks like fun. Haha nice, always fun getting creative. (Also it was in Java not python, even though i'm considering getting into that aswell ^_^. @Nafe you referring to me? |
|
ex-minecraft owner, zarp legend (Was there during the infancy of Zarp), ex-ssrp admin, ex-teamspeak emblem (For SSRP admin & minecraft owner)
Last Edit: 7 years 3 months ago by catboy sven ツ.
Login or register to post a reply.
The following user(s) said Thank You: leon21
|
Nafe wrote:
You’re barely capable of stringing together a sentence that can actually be read, I can’t imagine your spaghetti code... |
|
Black Nova Gang Owner
My Gang Discord
Ex SSRP Admin Ex BHOP Admin Ex Deathrun Admin Ex Surf Admin My Steam My Discord: Warren#3986 My Gang Thread
Login or register to post a reply.
|
Aspect wrote:
leon21 wrote:
Aspect wrote:
leon21 wrote:
your syntax is sweet and you did a pretty good job on this little program, how long have you been into python? Aspect wrote:
Well i read that wrong, my bad. Was awake all night sadly. to be honest I don't know too much about java, but if you could give me what is the function of the program, I probably could write it in pseudocode at the best of my abilities, and you could make any applicable fixesBy the way idk if you're good at java but i like sharing my projects and (and giving critism obv) have a read if you got time and if you find ways to make it better or simply more readable feel free to let me know, (i used pastebin since it's only 1 class, and i'm lazy) program is pretty self explanatory but i'll ask any questions you have Sure, the program asks for 3 values to work with. In this case it randomizes numbers up to 20, then it prints out 10 per row. After that it creates another 4 tables after the first one. It then adds up the sum from every row and sort it (using insertion sort), printing out the highest, lowest and total amount of tables. Incase I explained it badly here's the input (5,10,20) and output (everything else). Warning: Spoiler! [ Click to expand ][ Click to hide ] Enter in order: How many tables, lists per table and random numbers scale:
5
10
20
Listing all arrays:
2 10 0 12 14 2 18 18 17 6
17 14 12 5 8 11 3 0 4 0
3 18 10 19 5 18 18 18 2 1
3 14 3 16 10 9 14 17 12 15
8 1 19 14 17 0 13 8 19 10
Adding each table to itself and sorting, please wait:
74
99
109
112
113
Total ammount of tables is : 5
Lowest number on the list is 74
Highest number on the list 113 Warning: Spoiler! [ Click to expand ][ Click to hide ] I plan on getting a certification for the whole language in summer before I go to university, but I don't know jack shit about it , only pseudocode and C and Lua but cough scripting cough well done on using insertion sort, it works wonders with very few data unfortunately I can't make constructive criticism, I often deal with problems myself that do not have too much coding difficulties, but they're rather hard to solve without writing a shitton of commands. An example would be writing a KENO program that behaves exactly like the real , actual version obviously. en.wikipedia.org/wiki/Keno This has to be maybe the second most hard exercise I've had to solve, it took me almost 2 hours start to end. The hardest exercise I've done yet was a program that I shortened from 220 lines to 127 by creating a triple insertion sort , amazing stuff Nice, that looks like fun. Haha nice, always fun getting creative. (Also it was in Java not python, even though i'm considering getting into that aswell ^_^. @Nafe you referring to me? No I was referring to OP. I’ve seen stuff you’ve done with Javascript |
|
Login or register to post a reply.
|
Who’s op and is chuteuk going to come back
|
|
Login or register to post a reply.
|
|