Question: using System; using static CharacterClassDemo.Program; internal static class ProgramHelpers { static void Main ( string [ ] args ) { Console.WriteLine ( Enter character
using System;
using static CharacterClassDemo.Program;
internal static class ProgramHelpers
static void Mainstring args
Console.WriteLineEnter character information:";
Console.WriteName: ;
string name Console.ReadLine;
Console.WriteLevel: ;
int level int.ParseConsoleReadLine;
Console.WriteRace: ;
string race Console.ReadLine;
Console.WriteClass Fighter or Wizard: ;
string classType Console.ReadLine;
Character character;
if classTypeEqualsFighter StringComparison.OrdinalIgnoreCase
Console.WriteDeity: ;
string deity Console.ReadLine;
Console.WriteDivine Spell : ;
string divineSpell Console.ReadLine;
Console.WriteDivine Spell : ;
string divineSpell Console.ReadLine;
Console.WriteType of Healing: ;
string typeOfHealing Console.ReadLine;
character new Fighter
Name name,
Level level,
Race race,
Class "Fighter",
Deity deity,
DivineSpell divineSpell
DivineSpell divineSpell
TypeOfHealing typeOfHealing
;
else if classTypeEqualsWizard StringComparison.OrdinalIgnoreCase
Console.WriteSource of Power: ;
string sourceOfPower Console.ReadLine;
Console.WriteArcane Spell : ;
string arcaneSpell Console.ReadLine;
Console.WriteArcane Spell : ;
string arcaneSpell Console.ReadLine;
character new Wizard
Name name,
Level level,
Race race,
Class "Wizard",
SourceOfPower sourceOfPower,
ArcaneSpell arcaneSpell
ArcaneSpell arcaneSpell
;
else
Console.WriteLineInvalid class type.";
return;
Console.WriteLine
Character Information:";
Console.WriteLine$"Name: characterName;
Console.WriteLine$"Level: characterLevel;
Console.WriteLine$"Race: characterRace;
Console.WriteLine$"Class: characterClass;
if character is Fighter fighter
Console.WriteLine$"Deity: fighterDeity;
Console.WriteLine$"Divine Spell : fighterDivineSpell;
Console.WriteLine$"Divine Spell : fighterDivineSpell;
Console.WriteLine$"Type of Healing: fighterTypeOfHealing;
else if character is Wizard wizard
Console.WriteLine$"Source of Power: wizardSourceOfPower;
Console.WriteLine$"Arcane Spell : wizardArcaneSpell;
Console.WriteLine$"Arcane Spell : wizardArcaneSpell;
PLEASE REDO CODE FROM START TO FINISH IT'S NOT WORKING PLEASE COMPILE ALL CODES TOGETHER!!!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
