Jokodo
Veteran Member
Get a new puzzle everyday to solve in your favorite programming language (or in a new one you're taking the opportunity to get a first feel for):
https://adventofcode.com/2018
https://adventofcode.com/2018
if(beingPaidToDoThis)
finishPuzzles()
else
go to #end_program
endif
I pseudo-coded this one out already:
Code:if(beingPaidToDoThis) finishPuzzles() else go to #end_program endif
More seriously I'm the kind of programmer who doesn't do any type of coding unless it has some kind of relationship to me making money. But I know a lot of programmers who'd enjoy this.
I pseudo-coded this one out already:
Code:if(beingPaidToDoThis) finishPuzzles() else go to #end_program endif
More seriously I'm the kind of programmer who doesn't do any type of coding unless it has some kind of relationship to me making money. But I know a lot of programmers who'd enjoy this.
Did you just write pseudocode in Visual Basic?
Without using canned routines write code to
1. Find the max and min numbers in an unsorted list.
2. Sort a list of numbers.
3. Sort an array of strings containing first and last names by last naame. If there are identical last names sort them in the list by first names.
A harder but practical problem
Write code to parse a math string expression. Be able to process an arbitrary string with [] and ().
'[ (a + b)/c] * [x]
a = 2 b - 3 c = 4 x = 5
When you are able to process the first string add all the standard math functions like sin log, and add divide by zero protection and string error checking. If there is a string error display the number of the character. .
'[ (a + b)/c] * [x * sin(x)] - [log( 2 * x)]'
And then after all that write a GUI to take a string from a window or command line and display the result.
I pseudo-coded this one out already:
Code:if(beingPaidToDoThis) finishPuzzles() else go to #end_program endif
More seriously I'm the kind of programmer who doesn't do any type of coding unless it has some kind of relationship to me making money. But I know a lot of programmers who'd enjoy this.
I pseudo-coded this one out already:
Code:if(beingPaidToDoThis) finishPuzzles() else go to #end_program endif
More seriously I'm the kind of programmer who doesn't do any type of coding unless it has some kind of relationship to me making money. But I know a lot of programmers who'd enjoy this.
What a life
I'm more the hobbyist coder who gets paid for some of his code kind of programmer.
Without using canned routines write code to
1. Find the max and min numbers in an unsorted list.
2. Sort a list of numbers.
3. Sort an array of strings containing first and last names by last naame. If there are identical last names sort them in the list by first names.
A harder but practical problem
Write code to parse a math string expression. Be able to process an arbitrary string with [] and ().
'[ (a + b)/c] * [x]
a = 2 b - 3 c = 4 x = 5
When you are able to process the first string add all the standard math functions like sin log, and add divide by zero protection and string error checking. If there is a string error display the number of the character. .
'[ (a + b)/c] * [x * sin(x)] - [log( 2 * x)]'
And then after all that write a GUI to take a string from a window or command line and display the result.
These were the type of problems we were given during the first term of six in our programming diploma. They offer a good way to get comfortable with basic syntax, data structures, and the like.
By third term we were building iterative, tiered applications in .NET. In fourth and fifth we got into some slightly funkier stuff. By 6th they'd say 'here's your technology, build an app by this date'.
I pseudo-coded this one out already:
Code:if(beingPaidToDoThis) finishPuzzles() else go to #end_program endif
More seriously I'm the kind of programmer who doesn't do any type of coding unless it has some kind of relationship to me making money. But I know a lot of programmers who'd enjoy this.
Did you just write pseudocode in Visual Basic?
Lately my if statements come from Cerner CCL. I don't like it either but it's what's currently engraved in my head.
Dim Rousseau As Programmer.Target(Mockery As Text)
1. Easy. In pseudocode:Without using canned routines write code to
1. Find the max and min numbers in an unsorted list.
2. Sort a list of numbers.
3. Sort an array of strings containing first and last names by last naame. If there are identical last names sort them in the list by first names.
The output is something presumably much easier to generate code from, like prefix form. What LISP is already in: LISP is List Processing or Lots of Irritating Superfluous Parentheses.Write code to parse a math string expression. Be able to process an arbitrary string with [] and ().
'[ (a + b)/c] * [x]
a = 2 b - 3 c = 4 x = 5
When you are able to process the first string add all the standard math functions like sin log, and add divide by zero protection and string error checking. If there is a string error display the number of the character. .
'[ (a + b)/c] * [x * sin(x)] - [log( 2 * x)]'
That would depend on the GUI-widget set. I've used several of them over the years. I've done GUI coding in MacOS Classic, OSX Cocoa, Java, Python/TK, HTML/CSS/JavaScript, Mathematica, and Matlab.And then after all that write a GUI to take a string from a window or command line and display the result.