Questions tagged [homework]
Questions requesting help with school homework. This tag lets potential answerers know that they should GUIDE the student in solving the problem, rather than showing a complete solution. CAUTION: Before posting, consider that classmates may be tempted to reuse code from your post. (Read the tag wiki.)
567 questions
9
votes
2
answers
270
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 ...
7
votes
3
answers
1k
views
Multiplying binary strings using divide and conquer in C++
Just to clarify at the outset: the examination is over and I cannot modify my submission by any means at the time of posting.
Today I had an Algorithms Lab midterm exam, and the question was the ...
4
votes
3
answers
947
views
TODO application
The assignment was the following:
Users can add at a new Item/Card with Title and Description. Everytime an item is created, it is automatically placed in the TODO column
At any point in time items ...
4
votes
4
answers
1k
views
Creating an O(n) algorithm for an array of integers
To avoid plagiarism in my university, I am going to modify the problem.
Henry likes to jump from building to building. The heights of each building are given as a list of H numbers. We also number ...
5
votes
2
answers
266
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 ...
10
votes
1
answer
3k
views
COBOL Database Program
For a school project I've created a database program in COBOL and now that I'm finished, I have to write a report on the project.
As one aspect of the report, we have to discuss whether the product (...
1
vote
1
answer
183
views
Parsing Tokens in a Toy Interpreter
I'm working on a homework writing a toy interpreter. All the expressions in this language are prefix expressions. The language has a lot of lexical tokens and I wrote code as follows:
...
2
votes
2
answers
730
views
Fast OrderBook Implementation - Follow Up
Following up from: Fast OrderBook Implementation
Here is the updated version (I've also implemented some extra functionality)
==> Order.hpp <==
...
4
votes
2
answers
813
views
Plotting in Python
This is a Part2 to this question where the task was to plot the data that I got from my time measurements.
I've never worked with Jupyter Notebooks (ipynb) since ...
4
votes
3
answers
2k
views
O(NlogN) sorting algorithms in C++
The following code is my lab which focused on implementing any 3 known sorting algorithms out there. Since the professor gave us a choice to pick any of them and compare their execution time I chose <...
3
votes
2
answers
176
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
693
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 ...
4
votes
1
answer
208
views
Perform a permutation on an array in MIPS assembly
I’m currently studying computer science at university and I’d been tasked with writing a MIPS assembly program that performs a permutation on an array. I’m asking here because my code actually worked ...
1
vote
2
answers
130
views
Python code that checks the valid phrases in input string
Determine if all the phrases are found within the input string.
If they're all found (using distance as a measure of leeway) return True. Else False.
Example:
input = 'can i go to the bathroom in the ...
2
votes
1
answer
329
views
Intrusive smart pointer implementation
I have homework in college to implement intrusive smart pointers.
...