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:
while(userNum>=1){
System.out.print(userNum/2+" ");
userNum--;
}
Explanation:
This is implemented in Java programming language. Below is a complete code which prompts a user for the number, receives and stores this number in the variable userNum.
<em>import java.util.Scanner;</em>
<em>public class TestClock {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner (System.in);</em>
<em> System.out.println("Enter the number");</em>
<em> int userNum = in.nextInt();</em>
<em> while(userNum>=1){</em>
<em> System.out.print(userNum/2+" ");</em>
<em> userNum--;</em>
<em> }</em>
<em> }</em>
<em>}</em>
The condition for the while statement is userNum>=1 and after each iteration we subtract 1 from the value of userNum until reaching 1 (Hence userNum>=1)
Multiple answers. Attachment and practice of sending unwanted messages
It cannot be database programs because database programs can not
store and organize data.
create graphics.
communicate data.
alleviate information overload.
It cannot be spreadsheets because a spreadsheet or worksheet is a file made of rows and columns that help sort data, arrange data easily, and calculate numerical data. What makes a spreadsheet software program unique is its ability to calculate values using mathematical formulas and the data in cells.
It cannot be word processing tools because a word processor is software or a device that allows users to create, edit, and print documents. It enables you to write text, store it electronically, display it on a screen, modify it by entering commands and characters from the keyboard, and print it.
Therefore the answer is C. Web design programs.
Hope this helps.