in C# i need to  Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf. Create an interface named ITurnable that contains a single method named Turn(). The classes named Page, Corner, Pancake, and Leaf implement ITurnable. Create each class’s Turn() method to display an appropriate message. For example: The Page’s Turn() method should display You turn a page in a book. The Corner’s Turn() method should display You turn corners to go around the block. The Pancake's Turn() method should display You turn a pancake when it's done on one side. The Leaf's Turn() method should display A leaf turns colors in the fall. but I keep getting errors witch are  Build Status Build Failed Build Output Compilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem' Unit TestIncomplete Leaf class defined Build Status Build Failed Build OutputCompilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'   Compilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'   Unit TestIncomplete Corner class defined Build Status Build Failed Build OutputCompilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem' my code so far is  using System; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Treading.Tasks; namespaceTurningDemo {   publicinterfaceITurnable   {     string Turn(); } classPage : ITurnable {   publicstring Turn()   {     return"You turn a page in the book";   } } classCorner : ITurnable {   publicstring Turn(){     return"You turn at the corner";   } } classPancake : ITurnable {   publicstring Turn()   {     return"You turn a pancake";   } } classLeaf : ITurnable { publicstring Turn() { return"You turn a leaf."; } } classProgram {   staticvoid Main(string[] args)   {     Page 01 = newPage();     Corner 02 = newCorner();     Pancake 03 = newPancake();     Leaf 04 = newLeaf();     Console.WriteLine("01 says" + 01.Turn());     Console.WriteLine("02 says " + 02.Turn());     Console.WriteLine("03 says" + 03.Turn());     Console.WriteLine("04 says" + 04.Turn());   }  } }

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 8E: Create an application named TurningDemo that creates instances of four classes: Page, Corner,...
icon
Related questions
Question

in C# i need to 

Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf.

Create an interface named ITurnable that contains a single method named Turn(). The classes named Page, Corner, Pancake, and Leaf implement ITurnable.

Create each class’s Turn() method to display an appropriate message. For example:

The Page’s Turn() method should display You turn a page in a book.
The Corner’s Turn() method should display You turn corners to go around the block.
The Pancake's Turn() method should display You turn a pancake when it's done on one side.
The Leaf's Turn() method should display A leaf turns colors in the fall.

but I keep getting errors witch are 

Build Status
Build Failed
Build Output
Compilation failed: 1 error(s), 0 warnings

TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'

Unit TestIncomplete

Leaf class defined

Build Status
Build Failed
Build OutputCompilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'
 
Compilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'
 
Unit TestIncomplete

Corner class defined

Build Status
Build Failed
Build OutputCompilation failed: 1 error(s), 0 warnings TurningDemo.cs(2,0): error CS1525: Unexpected symbol `usingSystem'

my code so far is 

using System;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Treading.Tasks;

namespaceTurningDemo
{
  publicinterfaceITurnable
  {
    string Turn();
}
classPage : ITurnable
{
  publicstring Turn()
  {
    return"You turn a page in the book";
  }
}
classCorner : ITurnable
{
  publicstring Turn(){
    return"You turn at the corner";

  }
}
classPancake : ITurnable
{
  publicstring Turn()
  {
    return"You turn a pancake";
  }
}
classLeaf : ITurnable
{
publicstring Turn()
{
return"You turn a leaf.";
}
}
classProgram
{
  staticvoid Main(string[] args)
  {
    Page 01 = newPage();
    Corner 02 = newCorner();
    Pancake 03 = newPancake();
    Leaf 04 = newLeaf();
    Console.WriteLine("01 says" + 01.Turn());
    Console.WriteLine("02 says " + 02.Turn());
    Console.WriteLine("03 says" + 03.Turn());
    Console.WriteLine("04 says" + 04.Turn());
  }
 }
}
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT