In order to receive credit for this assignment, your solution must be submitted, using the handin command, by 8AM Tuesday, May 27th, 2008. I will zip your files and move them to my directory at that time. You may submit your solution before the deadline as many times as you like; only your final submission will be considered. However, for multiple submissions, it's best to use the same names for files, since only those will be overwritten by your submission.
This assignment will help you to begin to become familiar with the C# language and the Microsoft Integrated Development Environment. You will also experience overloaded operators, the ToString method and, you should try to use the Collection classes included in the C# language.
Your assignment is to write a C# program that implements an abstraction for binary numbers. Your program should contain a class Binary with overloaded operators for addition and multiplication and an implementation of ToString to enable you to output the Binary numbers in the usual format. Please use the following class for your main program:
class Program
{
static void Main(string[] args)
{
Binary x = new Binary(7);
Binary y = new Binary(2);
Console.WriteLine(x);
Console.WriteLine(x + y);
Console.WriteLine(x * y);
}
}
To submit your assignment, use the handin command:
handin.372.1 1 *