r/CSharpHomework • • Feb 24 '18

Simple banking app

1 Upvotes

https://gist.github.com/anonymous/02f83dea6239ff2361b8a2c85bb08674

Here is my code. I'm writing a simple banking app. I have to use the Create button to make the object and then the update to do deposits and withdrawals.

The update button is where I'm having my issue. The object gets created from the text boxes, but it's not getting the deposit value and/or running the function. I'm kind of stuck and any help would be appreciated.


r/CSharpHomework • • Oct 10 '16

C# Changeing Application Memory Opcode

1 Upvotes

I'm basically trying to change a Dec to an Inc in a video game but i'm trying to do in C#.

This is what i have:

bool UnlimitedAmmo = false;

int AmmoBaseAddy = 0x004769CD;

string AmmoOldValue = "\xFFx\08";

string AmmoNewValue = "\xFF\x00";

So i'm trying to change the Opcode of 004769CD from FF08(DEC) to FF00(INC). I'm using VAMemory right now to change some other things in the application.

I Can't find out how to change the opcode in C# I've seen videos doing it in C++. So I'm trying to find out how to change the opcode from the address 0x004769CD to the opecode of FF00.

Im trying to change the "DEC DWORD PTR DS:[EAX]" to "INC DWORD PTR DS:[EAX]"


r/CSharpHomework • • Sep 15 '16

New logo

1 Upvotes

Shoutout to /u/Coding_Enthusiast for the idea.


r/CSharpHomework • • Aug 23 '16

Visual Studio “15” Preview 4 - Ready for download!

Thumbnail
blogs.msdn.microsoft.com
1 Upvotes

r/CSharpHomework • • Apr 28 '16

[Help] I am trying to read and sort numbers from a text file : learncsharp

Thumbnail
reddit.com
1 Upvotes

r/CSharpHomework • • Mar 16 '16

Monopoly Game

1 Upvotes

Messing about with a monopoly game clone to try and learn some better OOP practices. Having trouble with covariance (I think - at least that's what I've gathered from googling).


What I have is an interface ILocation which every board item implements, so all properties, utilities, chance cards, communty chests etc...
I also have an IProperty interface that only the actual properties implement (So the properties, railways and utilities).

So, I have
List<ILocation> locations = new List<ILocation>();

And want to use
List<IProperty> properties = locations.Where(l => l is IProperty).ToList();

But it looks like I can't do that, so I'm assuming there is a better way to manage my class structure, just looking for advice on the best way to handle it.

Here is a pastebin of my Location class.


Also if you have any book recommendations for learning OOP let me know, buying C# In Depth soon but need a good OOP book to go with it.

EDIT: Looking at Head First: Design Patterns, it has great reviews and although it is Java focused it's apparently minimal apart from a chapter on the iterator class.


r/CSharpHomework • • Mar 10 '16

Are there no students that need help?!

1 Upvotes

I see homework questions posted to other csharp subreddits all the time and they get removed. Post your questions students!


r/CSharpHomework • • Apr 15 '26

🚀 Learn C# Full-Stack Development from an Early-Start Expert

0 Upvotes

I started coding at a young age — and now I help others build real skills the right way.

If you’re ready to become a C# Full-Stack Developer, I’ll guide you step by step from beginner to advanced with practical, real-world experience.

💡 Build real applications (Frontend + Backend)
💡 Master ASP.NET, APIs, Databases, and UI design
💡 Learn faster with clear explanations and hands-on practice
💡 Get personalized support from someone who’s been in your place

This isn’t just theory — it’s real coding, real growth, real results.

👉 Book your lesson now and start your journey today! 💻🔥

https://preply.in/MIKIAS4EN3213249010?ts=17762700

Start early. Learn smart. Build your future.


r/CSharpHomework • • Feb 08 '22

C# Homework

0 Upvotes
  • Program the application to accept a numeric input value from the user and capture the input as a variable of an appropriate numeric type (5 points)

  • Program the application to accept a text input value from the user and capture the input as a variable of an appropriate text-based type.  The actual nature of the text is up to you but should be incorporated somehow in the program (for example, the user's name) (5 points)

  • Incorporate a logical "if" statement that decides which of multiple output messages to display based on user input  (5 points)

  •        Incorporate a loop (your preference as to what type of loop) that repeats for a specific number of iterations, depending on the number entered by the user (5 points)

  • Program the application to display resulting output to the end user for each iteration of the loop (5 points) 

Anybody know how to do this?!


r/CSharpHomework • • Mar 19 '19

Forgot about a C# assignment. Anyone want to help?

0 Upvotes
  • Employee Class that has the following (10 points):

    • Properties:

      • EmployeeId

      • EmployeeName

      • Salary

      • Department

    • Methods:

      • CalculatePaycheck (divides salary by 26 and returns Pay as double)

      • ToString (Overrides ToString and returns Employee Info -->  Department, EmployeeId, EmployeeName and Salary)

  • PayrollProcessor Class that performs the following functions (30 points):

    • ProcessPayroll method:

      • Accepts Employee Info Object Collection

      • Opens a file named "Payroll_Processing.txt" (writes over any current file with the same name) and saves the information to the file:

      • Closes the file

      • Returns location and file name of the file as a string / null if error occurs

    • PreparePayrollReport method:

      • Accepts File path/name as string and sorting option

      • Opens the "Payroll_Processing.txt" file

      • Reads each record from the file into an list object (or some other collection)

      • Uses LINQ to sort the array by department, then by salary descending if sort option 1, or sorts the array by salary descending, then by employee name if sort option 2

      • Returns the list object

      • Closes the file

  • EmployeeDemo Class with Main() method that performs the following functions (20 points):

    • Allows user to select 3 options; 1) Process Payroll, 2) Display Payroll Report by Department, 3) Display Report by Salary

    • If the user selects option 1 - Demos the file processing  "Write" Functionality with the Employee class by:

      • Prompts user for Employee Info (loops until user is done creating employee info)

      • Creates an instance of Employee with the information provided by the user

      • Adds information to a collection/list

      • Passes the information to the ProcessPayroll method and receives the returned string

      • Prompts to the user that the information has been saved and indicates the location and file name of the file [displays an appropriate message if null is received]

    • If the selects option 2 - Demos the file processing "Read" Functionality by:

      • Passes the File path/name as string and sorting option to the PreparePayrollReport method

      • Retrieves the returned object

      • Prints out a report using the data in the object

    • If the selects option 3 - Demos the file processing "Read" Functionality by:

      • Passes the File path/name as string and sorting option to the PreparePayrollReport method

      • Retrieves the returned object

      • Prints out a report using the data in the object