Question: Create a new Console Application project (C#, .NET Core) called Question02 (without quotes). In your Program.cs file, inside your Question02 namespace and outside the Program
Create a new Console Application project (C#, .NET Core) called "Question02" (without quotes). In your Program.cs file, inside your Question02 namespace and outside the Program class, create a new class called Computer. In this class, you must define at least 8 properties that describe attributes that a computer has. You are free to come up with your own properties, but you must use at least one instance of each of the following data types: string, int, DateTime, boolean, and an enumerator of your making. Your first property must be a string AssetID, which is initialized (in the constructor) to a value that is guaranteed to be unique. The Computer class must have only one constructor, which is parameterless. In your Computer class, override the ToString method, so that it returns a string that contains meaningful information on the object. Once you are done, write the test harness in the Main method of your Program class, ensuring your code is fully functional as per requirements. In other words, define two or three random Computer objects in your Main method, and display their information in the Console. You can create your computers freely. For full marks, ensure at least one of your properties is automatically calculated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
