Question: The following code must be written in C# I have a list with objects of the type below One parameters identifies the speaker and the
The following code must be written in C#
I have a list with objects of the type below
One parameters identifies the speaker and the other what the speaker says
There could be many speakers which does not necessarily takes turn, i.e. one speaker can say things three times in a row etc.The task is to write a method which extract a block of 4 more than sentences. moreover the speaker must take turn so that if speaker 1 says one thing, speaker 2 must say the next thing and so on. This must be done using standard methods in C#.
Write a method
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SomeApplication
{
public class Conversation
{
public string Talking{ get; set; }
public string Say{ get; set; }
public SpeakerUtterance(string talking, string say)
{
Talking = talking;
Say = say;
}
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
