5
votes
1answer
113 views

Build object from database without a discriminator column?

I currently have a basic application that has a database backing it. I originally connected to the database with Entity Framework, but my tutor has requested from me to recreate the functionality with ...
3
votes
1answer
317 views

Homework assignment needs review

Will someone look over my code for an exercise I was assigned. The program runs, but my instructor is pretty tough at grading. Anything I can improve on? The exercise is as follows: Create a class ...
4
votes
1answer
424 views

Everything's done, just need to write in a different way [closed]

Hey guys, the goal of my assignment is simple, here it is: Write a program that converts a given text to "Pig Latin". Pig Latin consists of removing the first letter of each word in a sentence ...
2
votes
2answers
195 views

Where to start refactoring?

I am currently programming, but i messed up my code, what is the best way to clean my code. I really need to know this, next week i must be done with the assignment, but the teacher said that the ...
3
votes
3answers
1k views

Iterating through a dictionary in C#

I am trying to get my dictionary to iterate seven times after the dateTime is found. I want to iterate through the next week of objects in my dictionary ...
2
votes
2answers
687 views

Alphabetically-sorted word lookup

The goal of this code is to save a list of 250000 words with a number that indicates its frequency. The 250000 are sorted alphabetically but the frequency is unsorted. The idea is that a user must ...
6
votes
4answers
506 views

C# Homework Review - Can you guys check my work?

I have an assignment where I am required to verify if a car is a sports car or not by minimum max speed and minimum horse power. I have finished the program and it works great. I was just wanting to ...
0
votes
2answers
175 views

What situation did I miss in this postoffice queue algorithm? [closed]

UPDATE SOLVED: So the situation I didn't think about was when two postoffice workers / counters are free at the same time so two people from the queue could be helped. I only checked for one free ...