Questions tagged [beginner]

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
99 views

Small Javascript Lib to draw SVG file

I'm new to JavaScript and I decided to make a script that allows other developers to show SVG elements in the web browser. (It is just for learning purposes), and it is still under development. I ...
3
votes
1answer
219 views

CS50 pset4 filter - Image Filters in C

I started the CS50 and am at pset4. I completed both the less and more parts for the filter app that takes an image and applies a filter to it. In this pset we need to write the filters code only(...
2
votes
2answers
97 views

Yraglac's transit woes

I decided to dive into the world of functional programming since my programming so far has been mostly in C/C++, Java, and Python. I've gone through a couple Haskell tutorials and played around in ...
3
votes
1answer
110 views

Chrome Dinosaur Game in C++ Applying OOPs

I am gaining a lot of interest in Game development. I created Chrome Dinosaur game in C++. I have not paid much attention to UI/UX, just trying to see if i can apply some OOPs in game programming. ...
2
votes
1answer
95 views

Suggestion for improving this code to be more readable and easy for beginners? [closed]

I'm a JavaScript beginner trying to learn by doing. Here I have a table with different values: I have used two for loops. Is there an easier way to achieve this? For example having just one for loop, ...
2
votes
1answer
60 views

My first battle simulator (updated)

I am new and trying to learn programming and have been working on a battle simulator that I hope to eventually develop into a RPG game with characters, areas to explore, etc. I have been working on ...
1
vote
1answer
47 views

Looping through lines of floats/int [closed]

I'm new to programming and started with some tutorials about C++ on YouTube. Now I was wondering how I should continue solving below. It does work but already it has been like a lot of code to write. ...
4
votes
2answers
107 views

Increment values in a dictionary

In my continued venture to teach myself C# I came across an exercise using Dictionary. I created a class that has a method. In that method it creates a dictionary with keys/values. A string is ...
3
votes
1answer
50 views

(Python) Random Number Guessing Game

I'm a beginner currently learning Python. I made a simple program, a random number guessing game, to apply in practice what I have already learned (not much) and hopefully be able to get a better ...
2
votes
1answer
75 views

Dice roller - python

I am about to graduate with my Associates degree in Math and will soon go for my bachelors. I've decided with two years of school left its best if I start learning to program. I am starting with ...
1
vote
0answers
78 views

Grocery list with Python tkinter

I wrote a small program that generates a GUI for a grocery list (any list honestly). The GUI has the capacity to open a file, save a file, and save then exit the GUI from a file menu. The grocery ...
3
votes
1answer
61 views

Paint Program in HTML

I have written a little Paint-Program in HTML. You can also save and load your wonderful paintings. My code works, but my heart says that my code is not so beautiful. I dont use JS/HTML/CSS very often ...
3
votes
1answer
52 views

python password hashing

I simply made this for practice. But I want to know if it can be used in the realworld or not. Please point out any bad programming practices and how I can change them and look out for them next time. ...
7
votes
2answers
89 views

My first battle simulator

This is my code I wrote completely on my own. Its one of my first real programs that I have written using booleans, functions, and loops if anyone could give me some feedback about how its structured ...
4
votes
5answers
1k views

Asking for Fibonacci numbers, up till 50

I am learning Python, and this is one of the program assignments I have to do. I need to write code to prompt user to enter Fibonacci numbers continuously until it's greater than 50. If everything ...
2
votes
2answers
84 views

Rock Paper Scissors in Java (I just want to know whatever feedback you have :) Thank you!)

Any feedback on this code would be greatly appreciated! I am just trying to improve so I can move on to bigger projects. Thank you so much! ...
0
votes
1answer
74 views

Python User Input [closed]

I have recently completed the code challenge for exercise 48 in Learn Python3 the Hard Way. I was looking for any feedback on my solution and any ideas for improvement! The full task can be found ...
3
votes
0answers
57 views

Simulating the orbits of the Earth, Moon and Sun together in Fortran

This has been racking my brain for hours now. I will try to explain as much as I can. I'm aware this code is horrendously ungraceful, but I'm new to Fortran and making things more efficient is not ...
3
votes
0answers
42 views

POLYMORPHISM - Design a database connection and command

> Exercise 1: Design a database connection To access a database, we need to open a connection to it first and close it once our job is done. Connecting to a database depends on the type of the ...
23
votes
2answers
1k views

Zork-like text adventure w/ Python

I've been using Python for around 3 months and decided to make a simple text adventure game for fun and to exercise a lot of ideas I've been learning about. I've just recently learned about classes ...
5
votes
2answers
99 views

Code to support different measurement systems

I am developing an application in which the user can use different measurement systems. Currently, there is support for the metric and imperial measurement systems. To support these systems, I wrote ...
3
votes
2answers
70 views

Mastermind game

I've just finished one of my first projects with a GUI using PyQt5 and I recreated Mastermind, the board game. The game is played by inputting 4 numbers and getting a return of how many of the ...
2
votes
2answers
103 views

Reading and Storing Integer from Serial Monitor

Description I wanted to understand how integers can be written and stored inside variables without the use of Serial.parseInt(). I couldn't find any code examples about this. Perhaps this is the ...
2
votes
1answer
27 views

Find How Many Times Numbers Repeat on a Digital Clock

Project Overview: See how many times numbers would repeat x times on a digital clock output. This particular code only counts from 12:00 to 11:59, so it's technically only half of a day, I could take ...
0
votes
0answers
37 views

Custom view to select a value

I created a Custom view to select a value. I use horizontal Recyclerview to select an integer value and 2 buttons that decrease or increase the values. Could you consider the code and tell how it can ...
3
votes
1answer
72 views

Optimizing performance of hashing array algorithm's implementation

I wrote the following C++ code and since I am a novice in C++ and do not really have anybody who can give me advice, I think this site would be a good place to ask. The algorithm takes the first two ...
10
votes
3answers
981 views

Python Flashcards

I have made a flashcard program. It opens a small window and displays a series of questions. Since I am new to programming, how can my code be improved? ...
15
votes
2answers
1k views

Calculate the Degrees of a Clock Hand Based on Input Time

I'm a novice programmer. I started with Java years back and now mostly use VBA to automate tasks for my internships. I want to graduate from VBA and get into Python/R to properly automate tasks. The ...
3
votes
2answers
113 views

Sorting an array using a Binary Search Tree with C++

Given an array of integer (all different from each other), this program creates a BST with the array elements in order to sort them and put them back into the array, using the BST properties. ...
2
votes
2answers
79 views

Prefix expression evaluator [C++] [closed]

Here's my code for this' weeks homework I had. The code should take an expression , preferably in prefix notation ( otherwise throws exception ), that evaluate prefix expression. I've given three ...
5
votes
1answer
114 views

Roman numerals isomorphic conversion in Go

I always try to port the roman numeral conversion algorithm to learn new languages. Reading the Go manual as a beginner, this is the most idiomatic way I've been able to write it. I would love it if ...
13
votes
4answers
2k views

Basic Blackjack game in Python

I've only been learning Python for a few days after a Humble Bundle book sale, but I made a functional Blackjack game on which I'd like some constructive criticism as far as my coding structure and ...
9
votes
2answers
463 views

Calculate the intersection area of two rectangles

I want to calculate the intersection of two squares where the coordinates of the input square are given by the bottom left corner and the top right corner. The other square is 6 units wide and has a ...
2
votes
1answer
118 views

Simple GUI unit converter with tkinter

I happened to delve into tkinter and created a couple of mini projects so I could get more familiar with it. I was wondering if there was any portion of my code or code structure that is sloppily ...
3
votes
2answers
104 views

Implementation of a Smart To-do List Algorithm

This is a small program to implement the FVP algorithm (outlined here). I'm still quite new to C++ and don't have a strong grasp of basically any concepts. Concepts I tried to use in this program: ...
2
votes
1answer
47 views

Simple Book List App

I've built a simple Book list app. It allows users to enter the name, author and isbn of a book into a form. Then when this is submitted successfully, the details get added to a new row in the table. ...
5
votes
1answer
166 views

Simulation of virus growth

The gist of my program is to simulate the growth of some virus. I used (attempted) OOP concepts to break down the problem into chunks and have the chunks talk to each other. Not sure if my ...
1
vote
2answers
69 views

integer log base 10 function without using java.lang.Math?

I am assigned to a task of creating a function int logBase10Estimate(int n) that returns the log of a number base 10. The answer is integer part only.(w/o using the Math class) Is this okay? ...
1
vote
0answers
32 views

Sudoku seed generator

The code returns a string ready to seed at sites like sudoku-solutions.com. It works great but as I couldn't find other simple examples for my level I hope for some insights on this and ways to ...
1
vote
1answer
45 views

ROT(ation) by Index

I have written a few C++ functions that should: take in a string transform it based on index transform it based on number of alphabetic characters seen return the transformed string Example first, ...
1
vote
4answers
252 views

Exercise: Design a Stack

Exercise: Design a Stack A Stack is a data structure for storing a list of elements in a LIFO (last in, first out) fashion. Design a class called Stack with three methods. ...
2
votes
1answer
318 views

Find the Percentage from HackerRank

I am learning python by solving python module from HackerRank. This problem is Find the Percentage. You have a record of N students. Each record contains the student's name, and their percent ...
7
votes
1answer
155 views

C# random math questions project

I made a C# console math project where the user answers addition, subtraction, multiplication, division, power or square-root questions based on the difficulty they choose! However, I am struggling ...
0
votes
2answers
85 views

Comma separated string for list [closed]

I do not have an intention to ask for an answer, but I want to know if my answer is good for a two-week Python beginner? Question: (Automate the Boring Stuff with Python/ page 102) Comma Code Say ...
2
votes
0answers
60 views

Yet another Fahrenheit and Celsius converter

Introduction I am recently learning Rust by reading The Rust Programming Language (a.k.a. the book). I have finished the first three chapters so far, and this is my attempt for the first exercise ...
2
votes
1answer
55 views

Nested Lists from HackerRank

I am a beginner in python. This is the Nested Lists problem from HaackerRank. Given the names and grades for each student in a Physics class of N students, store them in a nested list and print ...
5
votes
4answers
152 views

Check whether a permutation with one fixed point can be rotated into one with two fixed points

A friend gave me the following riddle: Given n people with n distinct names, you place n names tags on a round table with n seats. If the n people now sit at those seats randomly such that exactly ...
0
votes
1answer
50 views

My first code - looking for feedback on best practices and things I should avoid doing in the future

After just learning a bit of Python I tried coding something myself. I attempted to do a game of Blackjack, which is far from perfect, and still doesn't have some rules a real game has (in my game an ...
7
votes
3answers
327 views

I made a guess the number game in Python

I just started programming a week ago. Online tutorials aren't my thing, so I decided to just start projects and learn what I need for the project. My first project is a guess the number game. The ...
1
vote
2answers
84 views

Monte-Carlo method to check triangle inequality

This is code for finding if inequality \$abc > 2(\text{area of triangle})\$ where \$a\$, \$b\$ and \$c\$ are the sides of any triangle. The below, and repl, code work as intended. However they ...