Question: 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

C# constructors et C# Console and Windows Proarammina usina Visual Ctt, class

Book private string author ate string name, town, animal, weapon, job; public

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!