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#.
Answer:
The method in Java is as follows:
public static int numUnique(int list[]) {
int unique = 1;
for (int i = 1; i < list.length; i++) {
int j = 0;
for (j = 0; j < i; j++) {
if (list[i] == list[j])
break;
}
if (i == j)
unique++;
}
return unique;
}
Explanation:
This line defines the numUnique method
public static int numUnique(int list[]) {
This initializes the number of unique elements to 1
int unique = 1;
This iterates through the list
for (int i = 1; i < list.length; i++) {
The following iteration checks for unique items
int j = 0;
<em> for (j = 0; j < i; j++) {
</em>
<em> if (list[i] == list[j]) </em><em>If current element is unique, break the iteration</em><em>
</em>
<em> break; </em>
<em> }
</em>
if (i == j)
unique++;
}
This returns the number of unique items in the list
return unique;
}
Answer:
One angle
Explanation:
I have seen several scripts with various directions such as "Close on" "from another angle", etc. And other scripts without such notations. I have seen conflicting comments concerning this practice---Some producers I have contacted say they want this IN the "finished script" they get and others, feel, like I do, that camera angles and lighting and such are up to the director in the production phase. I have also read that Spec Scripts do not have such notations. So what should I include or not, in this respect, in a Spec Script.
Answer:
Explanation:
preventive maintenance tips in using tools and equipment.
1. Inspect tools and equipment on a regular basis so as to avoid unexpected breakdown.
2. Clean tools and equipment immediately after use. It is important to wash or clean tools after using them in order to avoid clogging of dirts on them
3. Replace tools and equipment back to their respective storage place immediately after using them
4. Lubricate your tools and equipment to avoid rusting. Lubrication means to oil especially metal tools and equipments.
5. Always follow the instructions of use and maintenance of tools and equipments as stated by the manufacturer.
Answer:
Hubs, switches, and routers are all devices that let you connect one or more computers to other computers, networked devices, or even other networks. Each has two or more connectors called ports, into which you plug the cables to make the connection. A switch does what a hub does, but more efficiently. By paying attention to the traffic that comes across it, it learns which computers are connected to which port.
Initially, a switch knows nothing, and simply sends on incoming messages to all ports.
A router is the smartest and most complicated of the three. Routers come in all shapes and sizes, from small, four-port broadband routers to large industrial-strength devices that drive the internet itself.One way to think of a router is as a computer2 that can be programmed to understand, manipulate, and act on the data it handles.A router operates as a switch for basic routing: it learns the location of the computers sending traffic, and routes information only to the necessary connections.Consumer-grade routers perform (at minimum) two additional and important tasks: DHCP and NAT.DHCP — Dynamic Host Configuration Protocol — is how dynamic IP addresses are assigned. When it first connects to the network, a device asks for an IP address to be assigned to it, and a DHCP server responds with an IP address assignment. A router connected to your ISP-provided internet connection will ask your ISP’s server for an IP address; this will be your IP address on the internet. Your local computers, on the other hand, will ask the router for an IP address, and these addresses are local to your network.
Explanation: