logo

Visual Studio Project | Assignment On C# Console Application

   

Added on  2019-09-30

3 Pages1002 Words81 Views
Setup:You will be creating a new Visual Studio project named "FirstnameLastname_CE03" using the C# Console Application template.Grading:Please refer to the CE:03 tab of this rubric to understand the grading procedures for this assignment.Deliverables:You will compress and upload a file named "FirstnameLastname_CE03.zip" with the following contents with the following names:Project - Folder containing your entire project and all files necessary to build the project(csproj, .cs files, App.config, and Properties folder).Be sure to upload the correct project and all required files the first time as only one submission will be allowed. No extra time or consideration will be given if the wrong files are uploaded.Instructions:For this assignment you will want to start with a Character class that contains at least a name string, a health int, and a statusEffect string. You will need an IUsable interface that has aUse method that doesn’t return anything, but takes in a Character as a parameter. An abstract Item class will implement this IUsable interface. The Item class will need a minimum of an intEffect int, a strEffect string, and a description string. The Item class shouldn’t have an implementation for the Use method, you will need to use the abstract keyword with the method signature to avoid errors for not having a method body.Two classes will inherit from the Item class: Potion and StatusMedicine. Potion’s Use method will add its int effect value to the Character parameter’s health and set this new value asthe Character’s health. The StatusMedicine’s Use method will make the Character parameter’s statusEffect string an empty string if the StatusMedicine’s string effect value matches the Character’s statusEffect value, or if the StatusMedicine’s string effect value is “all” then it will always set the Character parameter’s statusEffect to an empty string.The Program.cs Main method will be used to give the user access to this functionality. Similar to your previous code exercise, you will need to give the user several options and acceptinput from the user for a selection. The Program will need a Character to be the target of these options. The following options will need to be available: giving the Character a status effect(setting the statusEffect member), using a Potion on the Character(instantiates a Potion and calls that Potion’s Use method), using a StatusMedicine on the Character(instantiates a StatusMedicine and calls that StatusMedicine’s Use method).

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
CIS 120 Exam 2 Programming Question.
|1
|467
|165

Movie Project
|8
|598
|172

Database Application to a GUI Application Assignment
|3
|1080
|251

Python module for Cat class with methods and user input simulation
|6
|1347
|68

CSIS 294: Project 2 - Drone Recon Data Collection and Storage
|3
|872
|221

Representation of Mobile Phone and MP3 Player Assignment
|2
|1076
|633