All Questions
127 questions
9
votes
2
answers
250
views
Blackjack game for assignment
I’m a first-year IT student, and I’ve completed a working Blackjack game in Python as part of an assignment. I’d love to get some feedback on my code structure, readability, and comments to improve my ...
5
votes
2
answers
230
views
Binary tree struct in C
Its been done to death, but the particular prompt (see Assignment 4) guiding me has strict+simple requirements that lead to a nice reduced environment to critique poor form. The project implements a ...
3
votes
2
answers
150
views
Covid Data Base Hash Map in C++
This is a follow up question to Date Checking in C++
I have these two function prototypes:
void CovidDB::add_covid_data(std::string const COVID_FILE)
...
6
votes
1
answer
665
views
Crossword puzzle app
I was hoping someone could give me any tips or advice on this program I wrote for my high school class. The point of the program is to create a workable crossword puzzle in the console. If it works ...
7
votes
6
answers
9k
views
Printing a Hollow Butterfly pattern
I am a beginner to Java and have studied up to loops only. After loops lecture above pattern was given to print as homework. I have successfully managed to print this pattern with following code:
<...
2
votes
2
answers
209
views
Algorithm that prints day, when submitted date
I would love to know your opinion about this algorithm that we wrote in class. I was thinking about how I can optimize it (in terms of size of code/complexity) without using library functions (...
2
votes
4
answers
507
views
Beginner Python program assignment: calculate the total number of bugs collected in a week using a while loop
Beginning of program assignment has a bug collector input the amount of bugs collected each day of the week then outputs the total number of bugs in a print statement. My professor has forbid us from ...
7
votes
4
answers
234
views
Sum and bubble-sort student scores
I am a beginner in C language.
I studied all night and did my assignment.
But I wonder if there is a more efficient way.
The original structure is this.
...
2
votes
2
answers
238
views
3 dimensional python battleship game
I have an assignment in a python course. We were instructed to make a 3D Battleships game for 2 players on the same computer. I've written a code that works, according to the assignment instructions, ...
2
votes
1
answer
568
views
Implementation of an algorithm to calculate a check digit for a five-digit number
I'm a newbie in programming, just started about 6 months ago and just finding my way around in C# (clean) code. This is the toy task we have received from our teacher.
This is what it should do:
New ...
3
votes
1
answer
1k
views
Generate and display usernames
Everything currently works exactly as requested by the instructor, I've included as much possible commented documentation as I can think of to make it easier for people to see what the required ...
3
votes
1
answer
1k
views
Monte Carlo Simulation of 7 Card Stud Poker
I've completed this as part of an online programming course (in which code review is supposed to be done by fellow learners, but it's been a very long time and none of them have reviewed this), and ...
8
votes
1
answer
3k
views
Parsing and Simple Shell in C
I wrote this simple shell in C for a university assignment on operating systems
(My guess is that it's just the beginning and the next assignments will add to this code).
The program prints the prompt ...
3
votes
1
answer
251
views
Date program for xv6- improvement and testing
This is my first post on this forum. I have read the guidelines and will try to adhere to them, but I apologize if I miss something. The code I am posting is intended to duplicate the output of &...
-1
votes
2
answers
110
views
Remove duplicates from array and save it to another one [duplicate]
I have been tasked to make an array without duplicated values from another existing array.
So I did it, but I want to know is there some other better way to do that.
Example input/output
...