Well I've reached another one of my practice programs at the end of my book that I'm trying to figure out and need some help again fellas. Here are my instructions.
Write a Console application that lets the user decide if they want to make a Rectangle or a Box. Depending on their answer, prompt them for the necessary values (length and width or length, width and height) and then create an object of that type. Once this is complete, use the ToString method to print a description of the object and then the value of either the area or volume of the object to the Console.
Although not required to look this way, your program output might look like:
Would you like to create a Rectangle or a Box (r or b): b
Please enter the length: 4
Please enter the width: 23
Please enter the height: 3
This object has length: 4 and width: 23 and height: 3
This box has volume: 276
Last edited by a moderator: