Linked Questions
37 questions linked to/from Guessing a number, but comments concerning
5
votes
3
answers
9k
views
Shape Calculator in Java
This is my first time putting up a completed program onto the web and I was hoping to get some feedback on these areas:
Commenting (Too much, not enough or do I need to simplify anything)
Structure (I ...
3
votes
3
answers
14k
views
Search in a 2D array to find if there is a row or a column that contains the word “error” in every cell of that row or column
Search in a 2D array to check if there is a column or a row in the 2D Array thats contains all the word “error”, if yes return the index of that row or column else return 0;
Exception: if the row ...
4
votes
3
answers
2k
views
O(NlogN) sorting algorithms in C++
The following code is my lab which focused on implementing any 3 known sorting algorithms out there. Since the professor gave us a choice to pick any of them and compare their execution time I chose <...
4
votes
1
answer
6k
views
Check if a String is a valid Double
For a class, I need to ask the user for a double. To verify that the number can be safely passed to Double.parseDouble, I wrote ...
6
votes
3
answers
2k
views
Geometry Calculations - Cube, Sphere, and Tetrahedron
This is the first code I've written. It's for an intro to Java course. Could you look over it and let me know of things I could improve before handing it in?
For reference, I've also provided what I'...
4
votes
1
answer
3k
views
Animal inheritance hierarchy
I'm trying to figure out if I'm doing superclasses right. Also, I welcome critique on Java structure/syntax etc.
Animal.java:
...
5
votes
3
answers
2k
views
EncodingTranslatorStream - A stream object that translates character encoding
This class is a stream designed to perform character encoding translation. So you instantiate it, pass an input stream, and specify the input encoding and desired output encoding, so that when you ...
4
votes
1
answer
4k
views
HND Java module (vending machine simulator)
As part of the distinction requirement, I am required to ask for testing/review of my code. There was no time allotted for this in class, and as such I am turning to the folks of StackExchange for ...
5
votes
3
answers
223
views
Userform that calculates gas mileage
I created a project for a programming class that asks you to make a userform in Visual Studio that calculates mileage, given the user inputs of gallons of gas consumed and distance traveled. The code ...
1
vote
2
answers
4k
views
Remove the occurences of an element from array if it occurs more than n times
I wanted to remove the occurrence of an element from an array if it occurs more than n times. For example:
...
4
votes
3
answers
770
views
Right triangle side length calculation
My code compiles and executes. I would like to hear any comments or suggestions pertaining to my use of C++.
...
4
votes
2
answers
166
views
Posting accounting data to a report
I have some buttons on an Excel report. 2 in particular are for posting all Budget numbers to the report and posting the Actual numbers. I currently have 2 separate subs, one assigned to each button.
...
3
votes
1
answer
2k
views
Tic Tac Toe with Python and Kivy
Accomplishment: Tic Tac Toe game with Python & Kivy
I have created a simple tic tac toe game with a random bot logic (really random after a user selects a mark). Next step would be to insert the ...
3
votes
2
answers
1k
views
LinkedList using Node Class in C++
I implemented Linked List data structure in C++ for practice purpose. The LinkedList.h uses Node.h as nodes. Creates and insert ...
3
votes
1
answer
644
views
String tokenization and replacing a numbered field
I created various functions for string manipulation in Lua, where the strings are composed of tokens separated by an ASCII character (which may be the point, comma, semicolon etc.). One of these is ...