The answer is c carbonation
Answer:
//get the sentence from the user
Console.WriteLine("Enter your sentence");
//read the user information
string ans = Console.ReadLine();
//check if sentence ends with period
if(!ans.EndsWith("."))
{
Console.WriteLine("Sentence should end with period");
Environment.Exit(0);
}
//declear empty string firstword
string firstWord = "";
//split the requested sentence using single space character
string[] splitans = ans.Split(' ');
//assign firstword
firstWord = splitans[0];
//print out firstword
Console.WriteLine(firstWord);
Explanation:
The program uses c#.
Be able to contact and connect with other users. be able to share what your doing.
Answer:
Certain country in the Caribbean Sea recently held an election to choose its president. Every vote cast was electronic, but unfortunately, a recent power surge caused a malfunction in the system just before votes were counted. The only information saved consists of the following facts:
Explanation:
• All the N citizens casted their vote.
• Exactly one candidate received more than N/2 votes.
• We don’t know how many candidates there were.
You are hired to help using your expertise in algorithms.