Thread: Completely lost in C#

  1. #1
    C# n00b
    Join Date
    Oct 2005
    Location
    Springfield, Ohio
    Posts
    2

    Completely lost in C#

    I just started college and am trying to learn some C#. the only problem is I can't learn it. I know the stuff I am stumped on is relatively easy so I'm asking if someone would be able to give me a walkthrough on a question. My instructor just reads straight from slides and if you ask me he doesn't know what he's talking about. But what I do I know, he's a college professor and I'm posting on a message board trying to figure out how to do this stuff.

    The problem I am stumped on:
    a.) Create a class named Numbers whose Main() method holds two integer variables. Assign values to the variables. Within the class, create two methods, Sum() and Difference(), that compute the sum of and difference between the values of th two variables, respectively. Each method shold perform the computatioon and display the results. In turn, call each of the two methods from Main(), passing the values of the two integer variables.

    b.) Add a method named Product() to the Numbers class. This method should compute the multiplication product of two integers, but not display teh answer. Instead, it should return the answer to the calling Main() program, which displays the answer.


    Something tells me this is kindergarden stuff but I am completely lost adn have no clue what is going on. 'm not going to make this a daily thing and just come on here and expect someone to give me answers to my homewrok questions.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    We dont help with homework at all.

    I can only suggest that you take it up with your professor, and ask for guidance. If he doesnt understand the work himself, then I cant see how he will be in a position to mark the work you hand in.

  3. #3
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204
    I know how hard it is for a starter(Especially if your learning OOP). But i dont think your prof would give this assignment if he havent teach you about it already. You probably didnt listen when he was lecturing.

    A C# book would be a good resource. Or probably search the web for introduction for C#.

  4. #4
    ♥Sexy Coding Hunk♥ CartoonLarry's Avatar
    Join Date
    Dec 2003
    Location
    Michigan
    Posts
    50

  5. #5
    C# n00b
    Join Date
    Oct 2005
    Location
    Springfield, Ohio
    Posts
    2
    I have a C# book. Microsoft Visual C#.NET
    ISBN = 0619062738 if you wanna see which book it is.

    Anyway I decided that hands on experience would be the best instead of just thinking and thinking about it. I'm going with the old trial and error.

    If I have any problems I'll ask around.
    Last edited by rvbalplaya; 10-13-2005 at 02:56 PM.

  6. #6
    Registered User
    Join Date
    Apr 2005
    Posts
    21
    Hey there, I know how you feel man. I was in the same boat as you not too long ago. Post your code here and I'll see if I can help you out. But I will say that we really can't just give you answers, the best I can do is just point you in the right direction. You'll appreciate it a lot more when you figure it out though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial port: How to know when data has been completely sent
    By arjunajay in forum Windows Programming
    Replies: 8
    Last Post: 03-25-2009, 08:18 AM
  2. Lost devices in Direct3D
    By VirtualAce in forum Game Programming
    Replies: 10
    Last Post: 12-09-2006, 07:41 AM
  3. I lost my laptop, DVD and money
    By Sang-drax in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-01-2004, 07:13 PM
  4. Lost ID number
    By ripper079 in forum C++ Programming
    Replies: 13
    Last Post: 10-04-2002, 12:51 PM
  5. API, LOST... help
    By Unregistered in forum Windows Programming
    Replies: 5
    Last Post: 03-13-2002, 03:19 PM