Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# constructors et C# Console and Windows Proarammina usina Visual Ctt, class Book private string author ate string name, town, animal, weapon, job; public static
C# constructors
et C# Console and Windows Proarammina usina Visual Ctt, class Book private string author ate string name, town, animal, weapon, job; public static void Main) //program starts executing here Book myBook = myBook.getDetails() myBook.writeChapter1; create a new Book object call its getDetails() method new Book(): //call its write Chapter10 method The public string ask(string prompt) use prompt to ask string answer, Console.Write(prompt); answer = Console.ReadLine(); return answer; public void getDetails0) // keep using ask) to get information author = ask("Please type your name : "); name ask("Please type a friend's name:"); town ask("Now give me the name of a town: "); animal ask("Now a type of animal: ") job ask("Now a type of job:"); weapon ask( And your weapon of choice: "); //write chapter using information gathered Console.Clear(): Console.WriteLine("A Horror Story : by"+author); Console.WriteLine(" Console.WriteLine("It was a dark night in" + town+ "and"+ name +"could hear" + animal + "s screaming in the distance."); Console.Write Line(name + "staggered terrified through the streets of " + town + ", realising he had been followed.") Console.Write Line("In the shadow of a doorway, a demented " + job + "waited, clutching a menacing " + weapon + "in his hand.")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started