Tagged Questions
Add this tag to your question to indicate that you are new to the language of your code. This will often be taken in to consideration by reviewers when assessing your code.
4
votes
2answers
116 views
For each line in a file, read two integers and output the minimum
I am going through some CodingAbbey problems to learn basic programming tasks, with a focus on taking input from a file, and saving to another. I have just completed this task:
Of two numbers, ...
6
votes
0answers
26 views
First assignment for Stanford iOS8 Course: enhancing a calculator
I recently started learning Swift through Stanford iOS8 Course. The first assignment is to add some features to simple Calculator which was presented during lectures.
List of tasks:
add button for ...
0
votes
0answers
34 views
Thy Dungeonman 3 using batch
I just started learning commands for batch files. I figured a project is a good way to learn the language better, so I'm attempting to recreate the text-based RPG, Thy Dungeonman 3.
So far, I've ...
5
votes
4answers
256 views
Word Guessing Game
I'm trying to learn Java (albeit rather slowly). I'm in a computer science class at my highschool and I've written this little bit of code for a project. Basically it is a word guessing game where if ...
6
votes
2answers
58 views
Convert a string into a dictionary
I have a string like "food | dairy | milk". The string may consist of more or less words. How do I turn it into a dictionary ...
-3
votes
0answers
21 views
count the number of even and odd numbers and display it in console [on hold]
I have to create a program that will accept 5 input numbers from the user. The program will count the number of even and odd numbers and display it in console.
BTW this is entirely my work, but I ...
9
votes
1answer
40 views
+50
m,n,k-game (i.e. generalized tic-tac-toe)
I'm back after Tic-Tac-Toe in Haskell with a new version.
I added Haddock documentation and wrote a generalized version known as the m,n,k-game. By doing so, I had to redefine ...
7
votes
1answer
63 views
Calculator implementation
With some background and experience in PHP & Python, I'm trying to learn Swift by myself (web, videos, Ray Wenderlich books). I've read that a good first project for beginners is to try and write ...
1
vote
1answer
14 views
Overriding scrolling behavior for navigation elements
I am new to JavaScript, and trying to ensure the i write the best possible code instead of "copy & paste".
I hope i am asking correctly, want to know if my code I have written is done correctly ...
4
votes
1answer
23 views
First dice roller, not sure how to interact with user correctly
So the part I'm really wondering about is in the "if, elif, else" part. I set the variable to bring up the raw input thing so it would stay there long enough to read instead of just printing a ...
9
votes
3answers
417 views
Solving quadratic equation using quadratic formula
I've just started learning C# + MVC. Here's my attempt with MVC:
...
-3
votes
0answers
22 views
3
votes
2answers
44 views
Phone keypad implementation
I was wondering, beyond the standard improvements that this needs, is there a more "clever" way of solving this problem?
The problem is to translate letters into digits without changing the format of ...
5
votes
1answer
38 views
Snake in Haskell
I wrote a partial implementation of Snake in Haskell. As of now, it only supports the movement of the snake. However, since the code is getting complex, I'm requesting for a review of the code before ...
2
votes
2answers
52 views
Dynamic PHP Form Submit Script
Below is a PHP script which dynamically finds and process all of the form elements such as inputs, textareas, dropdowns etc... then organize them into a table as shown in the image below when sending ...