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
6 votes
2 answers
128 views

An electron configuration writer given the number of electrons

I'm new to programming, especially Python (started in python3) and I want to ask if this piece of code is good enough or not. This is part of my personal project, that is, to make a personal library ...
user avatar
  • 163
2 votes
3 answers
94 views

Find prime numbers

I wanted to create a program that lists all prime numbers to a given upper bound and that will also provide the amount of primes in the set. After many hours of trial and error I was able to solve it. ...
user avatar
  • 21
0 votes
2 answers
54 views

C - Linked List Practice

Been studying data structures in C to get more grasp on the fundamentals as a freshman at uni. This is a coding-challenge that I've given to myself to understand Linked Lists better. Basically, my aim ...
user avatar
1 vote
0 answers
40 views

This code allows people to navigate through some artworks

I am new to coding and I have finished a code for a project I have given myself. Everything is functioning the way I want but I was wondering if maybe I could have done some things differently in a ...
user avatar
  • 11
6 votes
3 answers
216 views

Produce an arithmetic progression

I have made a function which takes in an end point and a step, then produces a list of integers with the step in mind. For example, if the end point is 10 and the step is 2, the function should return ...
user avatar
1 vote
1 answer
190 views

Calculate the average score of students

Problem : Imagine you are a developer and get a job in which you need to create a program for a teacher. He needs a program written in c# that calculates the average score of his students. So he wants ...
user avatar
2 votes
2 answers
116 views

Login and Register program

This is my first program i write after i finished the c++ tutorials, that program can login and register, the program ask the user to choice login or register after user choice and write his username ...
user avatar
8 votes
3 answers
799 views

Finding the perfect statline for a roleplaying game using Python

I made a program for fun that tries to roll a perfect statline, i.e a statline with two groups of only 18s, for a role-playing game. I'm still a newbie in python so mainly trying to learn how to make ...
user avatar
3 votes
2 answers
141 views

Python random number guessing game

I've been learning Python for about 4 days now. Python is my first programming language, so I'm not that good at coding yet. I have been programming a little random number game as my first project and ...
user avatar
0 votes
1 answer
74 views

Outputting a graphic using functions

How would you make this piece of code more simple/efficient? The problem should not be solved with one print statement, rather with functions Could you also give me any advice how I can come to your ...
user avatar
0 votes
1 answer
82 views

basic tic tac toe

I looked a little into HTML a year ago but decided to try python yesterday and came up with this for tic-tac-toe. I have no programming experience and I haven't yet looked at other peoples versions of ...
user avatar
  • 11
2 votes
1 answer
109 views

Finding the next palindrome number

I wrote a piece of code that generates the next palindromic number and that works fine. However I feel like my code isn't as efficient as it could be. Are there any tweaks that I could implement to ...
user avatar
  • 41
8 votes
1 answer
353 views

Program to add or subtract a pair of numbers

Newbie here :) I have been working on a program that reads a pair of numbers from standard input, along with a mathematical operation and an initial capacity for storing the numbers; and using this ...
user avatar
2 votes
2 answers
228 views

Simple Console Banking System Java

This is a code that I just wrote is a simple application of a banking system I would like you all to review it all tell me where could I improve it, please feel free to critique it, but be aware that ...
user avatar
3 votes
1 answer
84 views

Blackjack game in python w/ bot

I am a beginner programmer and this is my first project, a blackjack game with a functioning dealer in python. Any feedback would be appreciated (especially if its about bot improvement). ...
user avatar
2 votes
1 answer
212 views

Tic Tac Toe game v2

I made the changes that were suggested to improve the program in the previous version. I would like to know if there is anything to improve in terms of handling object oriented programming, variable/...
user avatar
2 votes
2 answers
134 views

Simple Number guessing game

The question is: Write a C++ program to play a simple number guessing game against a computer opponent. The rules of the games are as follows: The computer randomly selects a secret number between ...
user avatar
0 votes
1 answer
86 views

Calculating the value of a stock-portfolio over time using Python Pandas

I am quite at the beginning of learning Python and decided to start my own little coding project to improve my skills. The goal of my project is to simulate the past growth of a stock portfolio based ...
user avatar
5 votes
1 answer
79 views

Validate Finnish IBANs

I am currently studying an online course in Haskell and there are no "model examples" of the assignments after finishing them. I'm slowly getting the hang of this, but I'd like some feedback ...
user avatar
  • 87
3 votes
1 answer
209 views

Tic Tac Toe in Python with OOP

I programmed the tic-tac-toe game in Python using object oriented programming and I wanted to share it here to get some feedback ...
user avatar
3 votes
1 answer
350 views

Tic Tac Toe game in Java FX

I have programmed a Tic Tac Toe game in JavaFX and would appreciate feedback. Have I gone wrong anywhere? One issue I found and fixed was that I encountered a "Effectively final" error when ...
user avatar
  • 31
4 votes
2 answers
125 views

OOP Matchsticks Game [Update]

I made the changes that were suggested to improve the program in the previous version. I would like to know if it is decent now or is there something to tweak. ...
user avatar
8 votes
2 answers
464 views

File Concordance

I am working on this Python project, and I pretty much have it done, I just wanted to get a second opinion, to make sure it looks good, and to see if anyone had any tips for it. I also was a little ...
user avatar
7 votes
2 answers
358 views

Rock, Paper, Scissors game in Python with OOP

I am still practising object oriented programming and I decided to do the rock-paper-scissors game as a project. I listen to constructive criticism to improve the program. ...
user avatar
7 votes
1 answer
168 views

Download artifacts using HTTP

The public code is SaveAsFile(). It takes a URL, checksum and authentication info, and downloads the artifact and its hash using HTTP. It saves the content as a ...
user avatar
  • 173
1 vote
2 answers
88 views

Progressively erase tail of a Python list

Hey I started programming in python few days ago and decided to write a programme without any tutorial. You give it a list and then my programme erases last item of list until there's only one item. I ...
user avatar
0 votes
1 answer
34 views

How would I put this set of javascript if statements with varying IDs and Values in one smaller statement? [closed]

I'm wanting to reduce the amount of code in this set of statements, as it seems quite repetitive: ...
user avatar
6 votes
2 answers
246 views

User input is vowel or consonant: first C steps

Background Just got started with C and now am testing a few pages and simple problems to get the syntax right. On Programiz they provide a few very easy problems with solutions. This program checks if ...
user avatar
  • 217
6 votes
4 answers
1k views

Python budget calculator

I have, after years of excuses, started programming. Well honestly, I was not able to find any one interested in helping me with my start-up idea. So I had no choice but to ask myself 'How hard can ...
user avatar
4 votes
3 answers
597 views

Wordle puzzle game

I am a beginner programmer with not much experience, the little I do have is with Python specifically. With all the fuss going around about the popular word game "Wordle" I wanted to ...
user avatar
1 vote
1 answer
44 views

Another generic dynamic arrays in C

Wrote this (and others not here) as an exercise to explore how generics could be implemented in C. Question -- if I were to support out-of-band error setting, how would that look like for ...
user avatar
5 votes
1 answer
182 views

Matchsticks game in Python

I made the following game in Python applying object oriented programming and I would like to know if there is something to improve. PS: My native language is Spanish, if you see something wrong ...
user avatar
2 votes
1 answer
39 views

Text-Based TicTacToe in c++

The goal of this program is to create text based tic-tac-toe What I know: Base level java (till arrays & functions) The same goes for c++ What I did: I) Variable count: This used to count the ...
user avatar
  • 21
2 votes
1 answer
114 views

Hangman game in Python with OOP

I made the hangman game using OOP. It is the first "big" project I do using OOP. I would like to know if there is something to improve in the program I made. This is the code: ...
user avatar
6 votes
2 answers
166 views

Command Line Parser for my VBA package manager written in Python

As the title suggests, I'm creating a package manager for VBA which is modelled loosely on conda/ poetry, allowing you to install VBA modules potentially into "environments", but certainly ...
user avatar
  • 2,050
0 votes
2 answers
142 views

Create a formatted calendar

I'm working on a project that creates a calendar based on user input of a month and a year. With that information, the code should count the number of days in that month and output a calendar. I would ...
user avatar
3 votes
3 answers
81 views

String Reversal in C - K&R Book Exercise 1-19

I'm a Python programmer / teacher who was a CIS major in college. I'm going back to school to get my masters in CS probably, and the first course is a prerequisite Intro to Programming in C / C++. I'...
user avatar
2 votes
2 answers
661 views

Calculating Discount C++

The following question is from the book Problem Solving With C++. This is given as an exercise in the chapter "Functions for all subtasks": Write a function that calculates a discount ...
user avatar
8 votes
2 answers
841 views

Face tracking with recognition and age/gender detection

This program loads a video, detects and tracks faces in the video and detects the estimated age and gender of each person. The objective is to collect data on the number of unique people in a video ...
user avatar
  • 81
1 vote
1 answer
37 views

Define multiple buttons for Windows commands

I'm teaching myself Python. I wrote this code for work to help me troubleshoot end users PCs. It opens a GUI with a selection of buttons. It's written in python using pyinstaller to convert it to an ...
user avatar
8 votes
1 answer
420 views

(Beginner) Mastermind game in Python

After completing an introduction to Python tutorial, I wanted to put my basic knowledge of control flow and data structures to use, and felt this was a great choice for my first program. I created the ...
user avatar
  • 83
0 votes
0 answers
25 views

Initialize and run/stop subprograms in ViewModels

I make WPF application and I need start "subprograms" (scan directory & send to the API for now, in future - accept incoming files) in MainViewModel, ...
user avatar
2 votes
1 answer
57 views

Advent of Code 2021 Day 4

Here is my attempt at Advent of Code Day 4 using Haskell. A file contains list of number in first line. And subsequent lines have the bingo Cards ...
user avatar
  • 237
0 votes
0 answers
64 views

Sim Registration Script for access to Internet

Details: Based on the input parameter to return corresponding output which is needed for setting & accessing Internet over interface [ppp0]. If the SIM is registered[ status = 1]. This script will ...
user avatar
  • 1
1 vote
1 answer
108 views

Try-catch-finally with 'using' in ADO.NET

I want to check if I'm correctly disposing of resources using Ado.NET. I'm not sure when the 'using' statement makes .Dispose() irrelevant. Please bear in mind I'm aware I shouldn't hardcode my SQL ...
user avatar
1 vote
1 answer
42 views

Multiple grouped value select component

I've been designing a React component to select countries that a user has visited, grouped by continent. This component is a part of larger project but is relatively self contained. This is my first ...
user avatar
  • 63
-3 votes
3 answers
143 views

CodeForce 230 Dragon Fighting, Sorting without using array

Problem: https://codeforces.com/problemset/problem/230/A Kirito is stuck on a level of the MMORPG he is playing now. To move on in the game, he's got to defeat all \$n\$ dragons that live on this ...
user avatar
1 vote
2 answers
47 views

Student Registry Program

Or in other words, a student database program. What does the code do? Checks if there is a text file - if not, creates one with table such as: student's name student's surname student's id and so on....
user avatar
6 votes
4 answers
856 views

Converting lengths and weights using functions in C++

Question is: Write a program that asks the user if he or she wants to convert lengths or weights. If the user chooses lengths, then the program asks the user if he or she wants to convert from feet ...
user avatar
1 vote
1 answer
56 views

CS50 mario printing pyramids without using "CS50 library"

I am new to programming and I've only learnt basics of C as far as functions. I decided to solve this problem given in Harvard CS50 course. Please review my code. We had to write a program which takes ...
user avatar
  • 89