locked
Rookie C#er... Need Help! RRS feed

  • Question

  • I am taking a C# class in college, and I have to write a program using a double and a decimal. The double and the decimal have to have the same value, and the decimal needs to get an error message saying the value is out of range, but is still able to compile.

    I cannot figure this out to save my life. Any help would be appreciated.
    Tuesday, September 16, 2008 3:23 PM

Answers

  • mabwriter,

    You need to figure this one out on your own.  There might be some material in your textbook or in your lecture notes.  Other than that, we really can't write your program for you.  It wouldn't help you learn.


    David Morton - http://blog.davemorton.net/
    • Marked as answer by jack 321 Thursday, September 18, 2008 9:47 AM
    Tuesday, September 16, 2008 3:43 PM
  • http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3883579&SiteID=1


    mabwriter said:

    I am taking a C# class in college, and I have to write a program using a double and a decimal. The double and the decimal have to have the same value, and the decimal needs to get an error message saying the value is out of range, but is still able to compile.

    I cannot figure this out to save my life. Any help would be appreciated.


    Duplicate post.



    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by jack 321 Thursday, September 18, 2008 9:48 AM
    Tuesday, September 16, 2008 4:43 PM

All replies

  • mabwriter,

    You need to figure this one out on your own.  There might be some material in your textbook or in your lecture notes.  Other than that, we really can't write your program for you.  It wouldn't help you learn.


    David Morton - http://blog.davemorton.net/
    • Marked as answer by jack 321 Thursday, September 18, 2008 9:47 AM
    Tuesday, September 16, 2008 3:43 PM
  • http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=3883579&SiteID=1


    mabwriter said:

    I am taking a C# class in college, and I have to write a program using a double and a decimal. The double and the decimal have to have the same value, and the decimal needs to get an error message saying the value is out of range, but is still able to compile.

    I cannot figure this out to save my life. Any help would be appreciated.


    Duplicate post.



    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by jack 321 Thursday, September 18, 2008 9:48 AM
    Tuesday, September 16, 2008 4:43 PM