Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.

learn more… | top users | synonyms

0
votes
0answers
23 views

Calculate area and perimeter for shapes: polygon, circle, rectangle and triangle follow up

This is the new code after the changes suggested by @Cody Gray in the last question : Calculate area and perimeter for shapes: polygon, circle, rectangle and triangle This is my project on ...
6
votes
2answers
52 views

Binary tree in Python exercise

I'm practicing Python. Being completely new to the language I'd like to hear someone else thoughts on the way I use the language. I'm coming from (mainly) Java and C so I'd expect new ways of doing ...
2
votes
1answer
38 views

A simple Dice Game Using only Static methods

This is a simple dice game that requires you to get two numbers from the user and then it generates 15 other numbers and checks if the generated numbers are the same as the numbers typed in. Try to ...
1
vote
2answers
80 views

WPF wizard-like app

I'm designing and developing wizard-like app for populating the database I created with data from different sources. It's my first attempt to design and develop well-structured object-oriented ...
-1
votes
0answers
19 views

C++ library project structure with 3rd party library [on hold]

until now all my projects were hobbyist ones and I was the only person maintaining/developing them, plus, I only develop with IDEs like netbeans, codeBlocks and others. IDEs choose for you the ...
8
votes
6answers
803 views

Beginner's JavaScript calculator

As a part of a study-group I did a very simple little JavaScript calculator. It's not made to look pretty. Any ideas on how I can make the code prettier? ...
6
votes
1answer
123 views

Calculate area and perimeter for shapes: polygon, circle, rectangle and triangle

This is my project on inheritance and polymorphism , I got the main file from my teacher and built the project base on it .My base class is Shape .Polygon and Circle Inheritance from shape . Triangle ...
-1
votes
0answers
16 views
1
vote
1answer
37 views

Create bootstrap toolbar

I have created a bootstrap toolbar(navbar) which is working. my question is, since this is my first time on this topic if there is a place for improvement ? we are using some mock to enter some dummy ...
4
votes
1answer
41 views

Stack class in Ruby to calculate maximum number, get the average, pop, push

Is the class optimized enough to accept 1 million items in the stack? ...
3
votes
1answer
45 views

Program based on Vigenère’s cipher

I would like to get some helpful thoughts on this and if there is a way to break it. Is there any point to not use fgets in that form? ...
5
votes
1answer
82 views

Generating smooth numbers in Haskell

I wrote a smooth function that returns a list of all smooth numbers below a certain limit from a list of prime: ...
4
votes
2answers
65 views

Asking for a name and showing the initials

I've seen code that basically does the same thing, but i'd like some input on this. Basically what i did wrong or not good enough heh :). ...
-4
votes
0answers
26 views

Fluent database interaction [on hold]

I have studied php for a while and I decided to give python a try. This is basically my first week with it and I got this project to work somehow and I would really appreciate if I could get some ...
4
votes
1answer
113 views

UVA online p957 - “Popes”

This is the "Popes" problem from UVa Online Judge: On the occasion of Pope John Paul II's death, the American weekly magazine Time observed that the largest number of Popes to be selected in a 100-...
0
votes
0answers
25 views

Rounding numbers to the nearest 10 in Postgres [on hold]

I'm trying to solve this particular problem from PGExercises.com: https://www.pgexercises.com/questions/aggregates/rankmembers.html The gist of the question is that I'm given a table of club members ...
1
vote
2answers
47 views

Addition of two number using array of unequal size

I tried my level best to get it done. But I would like to have a better solution in all terms. Given 2 huge numbers as seperate digits, store them in array and process them and calculate the sum ...
6
votes
1answer
75 views

Simple app to take username and password from the user

I'm beginner at programming (I guess it's quite obvious) and this is my small "app" I tried to make, that takes username and password from the user. Could you give me some advice on how can I improve ...
0
votes
0answers
10 views

Guidance Regarding Repeating Background Image [closed]

I've got a background image I want to repeat. When I enter this code which I've verified is correct via W3Schools I get a blank page with. Any suggestions or perhaps a different way to do this. <...
-3
votes
0answers
15 views

Optimizing addition and shifting of large 2-d array in python [on hold]

I have two large 2-d matrices that are already known(dimension 2000x2000). The following code is a loop that forms a critical section of the code and consumes a large amount of time(over 70%). Is ...
0
votes
0answers
17 views

Displays bios of website contributors-trying to convert code to mysqli [closed]

My code that displays bios of contributors of my website began to show comments that certain commands were deprecated. I have started to try to convert and have had a little success. I can make a ...
1
vote
1answer
83 views

Recursive autoloader to find PHP files

I created a small working autoloader based on some of the answers and ideas found on Stack Exchange (I lost the reference). However, I don't know much about PHP (I mainly know C, a bit C++ and Java). ...
4
votes
1answer
106 views

Tetris clone in C++ using ncurses

Recently, just for fun, I've created a clone of the widely popular game Tetris using C++. Since I am still a novice when it comes to C++, I would really appreciate all the feedback I can get from ...
3
votes
1answer
56 views

Multiple numbers calculator

This is my first ever Python program so I would really like to know if it's any good (I mean if it is well writen), and if not then how to make it better. I would also like to know if there is a way ...
1
vote
0answers
24 views

A routing heuristic: improving function speed

I am currently constructing a heuristic to solve a routing problem. Routes are represented by vector<int> of customer ID's, which are stored in the class <...
0
votes
2answers
50 views

Finding all words without a certain character

I am doing some exercises in this book. I've been trying to avoid Regex so far in my mission to teach myself computer science, as it makes my head hurt. That said - one of the exercises is to find all ...
0
votes
2answers
121 views

Vue GitHub user lookup

I have made a small Vue app which fulfills the following user stories: Given I make a search for an existing GitHub user, then: The user's username is shown The user's avatar is shown The user's ...
3
votes
1answer
75 views

Exchange rate calculator using XML

Here is my exchange rate calculator, i took xml file from here: xml_rates I would like a review if I am doing everything right, and what I could do better. I am not sure if I should make another ...
4
votes
3answers
55 views

Getting the Twitter account from various input formats

I have an input for users to enter a Twitter account in any different way and I want to extract the user account. For example: ...
-4
votes
0answers
48 views

Age calculator based on date of birth input [closed]

Is there a way i can improve this to account for leap years? ...
-1
votes
0answers
21 views

Cout profits of items going wrong [closed]

My code is failing after the brand2.display(), it is saying: RUN FAILED (exit value 1, total time: 10s) This seems like pretty simple code and I can't figure out what's wrong at all. Any help ...
6
votes
1answer
194 views

C# Rental Program

I knew a little Java, and thought what the hell, I'll help my school and design this program that'll help checkout phone chargers and calculators and things to students. So I got in way over my head, ...
3
votes
3answers
67 views

Deviation and Variance

This assignment requires obtaining the deviation and variance of \$n\$ numbers stored in one single array. Is there any way to make this code more efficient? ...
0
votes
0answers
28 views

Algorithm design for CodeChef - Base Attack

I was working on a CodeChef challenge: Base attack. I have a working solution but it is not fast enough. Could you recommend anything to make it faster? ...
4
votes
2answers
164 views

Randomly generate a list with predetermined mean

Aim: randomly generate \$n\$ numbers between \$a\$ and \$b\$ with (roughly) mean \$m\$. Problem: The simple beginner's code I wrote becomes very inefficient as \$m\$ moves away from \$\frac{a + b}{2}\...
7
votes
1answer
367 views

Beginner's simple calculator

What do you think about this simple calculator? ...
6
votes
1answer
25 views

Parsing a key=value config file for a Python FreeCell game

I'm new to Python, and my first serious project was a FreeCell game. The game works, with lots of options to combine moves, save games, load them, etc. But I skimped on some specifics of Python. In ...
1
vote
1answer
44 views

Very Simple Basic Java Hangman Program

I wrote this hangman program. It takes three words in an array, picks a random word and then the user guesses the letters. It's lengthy, but it's extremely simple and understandable. Suggestions are ...
3
votes
5answers
1k views

LinkedList of int nodes in C++

I'm new to C++ programming. I'm experienced in Java and its OOP paradigm. This code works well. I just need to make sure whether it's correct in terms of C++ programming standard. main.cpp ...
3
votes
1answer
39 views

Sometimes-sticky HTML element

I am working on a sticky element that on certain point when the user scrolls down it turns into a relative element so it's not a sticky element anymore, only when the user scrolls to the top and ...
2
votes
1answer
46 views

C++ operator overloading for matrix operations - follow-up

This is improved code after I some issue in pointed by @Edward in the last question: C++ operator overloading for matrix operations This work assignment in operator overloading .I need to use ...
0
votes
1answer
37 views

Changing background color of HTML elements based on user input

This is jQuery code which works like this: depending on a user choice it changes the color and background of some elements in the DOM. The behavior is ok, is doing exactly what I want. And as you ...
1
vote
1answer
48 views

Notebook app for terminal

I'm currently enrolled in a node.js course. The first app we have done in the course was a terminal notebook. It appends objects to a json-file. Example call on the terminal: ...
6
votes
2answers
59 views

Working Craps program

How can I make this better? ...
3
votes
1answer
61 views

ArcPy script to analyze land use in counties

We have written a Python script using arcpy modules. It is was written by Python beginners and many parts of the code are written in 'unpythonic way'. The goal is ...
0
votes
1answer
57 views

Three function Calculator 2.0

A week ago I did a three function calculator, I took the input from you guys and made it better. Overall it works fine, I didn't find any problems. But as a beginning programer I'd like some imput on ...
0
votes
0answers
24 views

C++ bilingual maths program that generates questions w/ multiple operators (follows BIDMAS)

This is a continuation of my previous question on this site. Also, I use Visual Studio 2015, therefore I do not need to use header files for this program, everything compiles just fine. Here is main....
3
votes
4answers
94 views

Vowel/consonant counter in Golang

To learn Go I decided to write a vowel/consonant counter. I really need tips/ideas on how I can improve my code. ...
1
vote
2answers
98 views

C++ operator overloading for matrix operations

Please check the code to see if there anything I can improve . Everyting is working as expected. matrix.h ...