0
votes
0answers
12 views

Cart program in Java

I wrote this in conjunction with this. ...
0
votes
0answers
10 views

Returning a filtered list of iPhones

I have just received feedback regarding a junior dev test that I submitted. It was unfortunately not great, and the recruiter could not articulate the issues, I tried to show that I was thinking about ...
1
vote
0answers
11 views

Display a simulation of 2D elastic balls using Tkinter

I wrote a module to simulate physics of 2D elastic balls and the community helped me to improve it on this post. Now I implemented a GUI using Tkinter to display the simulation in a window. I'm a ...
0
votes
0answers
5 views

Using an enum and Core Data entity for the same values

I'm building a simple iOS app using Swift that calculates the One Rep Max weight a user can theoretically lift. User inputs a weight lifted, the number of repetitions and the app uses one of several ...
4
votes
0answers
14 views

Processing trip route table in C

In fact, this is a group assignment for our C programming lesson, but seeking help from others is not considered cheating. The goal of the following code is to: Sort the data in ...
0
votes
0answers
14 views

Updated version of app which does CRUD on a database table

A while ago I created my first Java application. I tried to follow the MVC pattern. I posted my code for review and with the answers I got I did more research and rewrote my code. I gave every ...
1
vote
3answers
57 views

Applying modulo operator on decreasing array indices

I have an array of strings and on click of the "NEXT" button it displays the next array item in a <p> tag while on click of the "PREV" button it displays the ...
0
votes
1answer
41 views

Implementing movement in a Pacman game

I am making a Pacman Player vs Player game in Java, and I am wondering if I am implementing movement in the game in a good manner. Anything that will reduce the code size or make the program faster is ...
2
votes
0answers
18 views

HackerRank “Save Humanity”

The "Save Humanity" problem on Hackerrank asks us to: ... find all substrings in the patient DNA that either exactly matches the virus DNA, or has at most one mismatch. For example: ...
8
votes
1answer
157 views

A prefix notation calculator that asks about everything step by step

I made a prefix notation calculator. Prefix notation, aka Polish notation, is a form of notation for logic, arithmetic and algebra, like infix and postfix (reverse Polish) notation. The expression ...
1
vote
1answer
17 views

Documentation for a Minecraft server plugin

I'm working on a minecraft plugin for my Spigot Minecraft server. I have a class which works as expected. I've done my best to hammer every single bug out (famous last words, I know) and am now ...
-3
votes
0answers
11 views

How do i fix the getnameinfo and library (Linux C)? [on hold]

Hi everyone who is reading this, i need a huge help on this code it needs to fixed on two things: 1-the library is not worling well for a code that i added (it is located between bars like ...
-2
votes
0answers
13 views

Query to work out amounts

How can this query be improved? ...
6
votes
2answers
40 views

Sum of prime factors of binomial coefficients over 9000!\${}\$

The problem I have lately been working Project Euler: 231: The prime factorisation of binomial coefficients The binomial coefficient \$ ^{10}C_3 = 120 \$. \$ 120 = 2^3 × 3 × 5 = 2 × 2 ...
-4
votes
0answers
14 views

How do I loop a specific piece of code in Java with the Switch Command [on hold]

I want to loop MultipleChoice1 if the answer is not either A or B, hence the case "A" and case "B" but when I try to loop it using: int loop = 2 while( loop < 2) (The other codes) case "A": case ...
1
vote
1answer
16 views

HackerRank “Lists” code

I completed the following exercise on HackerRank. My program is fed a list of commands, such as: ...
2
votes
1answer
30 views

Queries for the number of users seen each day

The below code returns an array filled with the number of users last seen for each day for $dayCount number of days that is specified via a parameter into the ...
1
vote
0answers
11 views

TCP client library using Winsock WSAEventSelect in C++

One way to write a client which uses a specific protocol, eg http like in this case, is to create a base class with the basic socket handling functionality with virtual functions which can be ...
1
vote
1answer
36 views

Math expression parser in JavaScript

I've written the second iteration of my math expression parser, utilising what I learned from the first attempt to make a more reliable, maintainable piece of code. If anybody wants to see the first ...
-2
votes
0answers
14 views
0
votes
0answers
17 views

Convert hex value string to Binary string [on hold]

I want to covert 000000000000000117c80378b8da0e33559b5997f2ad55e2f7d18ec1975b9717 hex value to it's binary format (to a string of binary), but following code throws ...
2
votes
1answer
41 views

Listing employees whose employee number is divisible by some given number

Here I want to improve the code in addListofEmployees and mainMethod. How can I do so? ...
3
votes
1answer
31 views

Binary-octal-hexadecimal conversion table

I solved this exercise of displaying a table of numbers from 1 to 256 in binary, octal and hexadecimal. I made this program to convert from decimal to binary and took that binary number to convert to ...
0
votes
0answers
16 views

Defining long, multi-line string-literals in VBA

I'm writing a helper in C# (for inclusion in Rubberduck) that takes text from the user's Clipboard and reformats it for insertion into a VBA module as a string-literal. The goal is to allow the ...
2
votes
1answer
25 views

Small Poker program rewrite

I had already put up code for review a small poker program but I have rewrote it utilizing a more appropriate data structure. How would I compare Poker hands accordingly? Full source repo ...
0
votes
0answers
4 views

React Application Structure using Flux [on hold]

I'm working on a project using React with Flux pattern, and I want to review my application structure as follow: ...
4
votes
0answers
52 views

Custom hotkey like AutoHotkey

I'm making a hotkey program to aid me using PC faster. By saying hotkey here, I mean any combination of two or more keys in the keyboard. For example, if I press G, hold it then press M I have hotkey ...
0
votes
0answers
10 views

Transform an if statement into logical operations on arrays using Matlab? [on hold]

I would like to optimize a snippet of code, which use a multiple nested if statements. I am looking for formula to make it as a combination of multiple arrays logical operations. Please, I need just a ...
4
votes
3answers
537 views

Project Euler 10: find the sum of all the primes below two million

This is question #10 from Project Euler: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. I just started programming and read that a Sieve ...
1
vote
1answer
18 views

Sorting the array of strings on their lengths in Java , Using Maps, ascending order…

I wrote the java method to answer this question : Write a Program to sort String on their length in Java? Your method should accept an array of String and return a sorted array based upon the length ...
2
votes
2answers
53 views

Genetic algorithm implementation

Is this the best way to implement a genetic algorithm framework? I'm just a student and wanted to know if I can improve the code that I have done. Some of the code I copied from the framework ...
2
votes
2answers
50 views
7
votes
1answer
50 views

Formatting seconds as hours:minutes:seconds

This is basically my school homework and I want to know what to improve, and what not to do. The homework basically is this: You will get a input in seconds, which is supposed to be shown as H:MM:SS ...
2
votes
0answers
26 views

Stored procedure to insert a new person

I have not written very many stored procedures before, and this is the first one I have written to be used in a real business application to write new data into the database, so I would like to get ...
1
vote
2answers
18 views

Sorting structures lexicographically

I am swapping structure lexicographically by name. Is there any way to improve the code when the structure entries are heavy. Here is the code ...
0
votes
1answer
26 views

Square ImageView

This is good practice, to make square image? Side of the square container is equal to its width. ...
-2
votes
0answers
15 views

Retrieving items from array returning same item [on hold]

Coming from JS, I've realized the methods for working with arrays in VBA are very minimal. Because of this, I've created this mess of code to find the index of certain items within 2D arrays. The ...
1
vote
1answer
13 views

Displaying user selection in the browser

I have the following script that reads JSONified data from within a DIV, generates HTML with values using JavaScript, then sends them to another DIV. What I'd like to improve is to remove HTML from ...
-1
votes
0answers
15 views

Making my own Vigenère cipher in C [on hold]

I'm new to stack exchange so if there's any way to make my post more clear let me know. I might miss providing some general information that's usually including in a veteran's stack exchange post, but ...
0
votes
0answers
17 views

Multithreading in python, Identify critical section [on hold]

Now I want to make this for loop run with 5 separate threads. I am starting with python and I don't have much experience in python. My actual problem is, I am unable to identify the critical section ...
3
votes
1answer
91 views

Clearing filters, copying a range, and then pasting a formula down a row

Novice coder here. I have the following code to perform a few actions like clearing filters, copying a range, and then pasting a formula down a row till the last line. It works perfectly, but it ...
1
vote
0answers
13 views

Active Directory Tool - WPF application to query active directory and display results

This is a Windows Presentation Foundation application that queries active directory and can display lists of users, users by group, groups, and users by manager (direct reports). It operates on ...
3
votes
1answer
90 views

Fizzifying lines

Challenge Given a test case print out a FizzBuzz Series. Specifications The first argument is a path to a file. Each line includes a test case. Each test case is comprised of ...
4
votes
2answers
44 views

I'll visit the 18th

I wrote this program, which purpose is to visit the 18th link on the list of links and then on the new page visit the 18th link again. This program works as intended, but it's a little repetitive and ...
2
votes
1answer
41 views

Scrolling game very slow

I am trying to make a scrolling game in Tkinter. However, with all my for loops and functions it is extremely slow. I am reading the tutorial from Khan Academy's advanced JS. In their JS game ...
-1
votes
0answers
18 views

using argparse for 2 different logics in one file in python? [on hold]

I want to get some Website information by using a python script were python does the logic and C# is used for GUI. I am calling my python script within c# + process parameters (username password, ...
-4
votes
1answer
121 views

C-type classes in C++

I have written some improved C-type classes in C++ and wondered whether these are suitable for professional use or in which way they would have to be improved to be professional or more powerful. ...
2
votes
1answer
45 views

Merging multiple sorted arrays into one sorted array

I would like to merge multiple arrays that are already sorted, into one sorted array. My arrays look like this : ...

15 30 50 per page