Answer:
getline(cin, address);
Explanation:
Given
String object: address
Required
Statement that reads the entire line
The list of given options shows that the programming language is c++.
Analysing each option (a) to (e):
a. cin<<address;
The above instruction will read the string object until the first blank space.
Take for instance:
The user supplied "Lagos state" as input, only "Lagos" will be saved in address using this option.
b. cin address:
This is an incorrect syntax
c. getline(cin,address);
Using the same instance as (a) above, this reads the complete line and "Lagos state" will be saved in variable address
d. cin.get(address);
address is created as a string object and the above instruction will only work for character pointers (i.e. char*)
<em>From the above analysis, option (c) is correct.</em>
Answer:
Its the printer. The details shown on screen can be tested on monitor using the software like PDF and word processor. And from there you can format and finally get the hard copy of the document via printers.
Explanation:
Various kinds of the printers are available. And all of them take the text and pictures on the computer screen, and then print that on the paper. The details are in the answer section. And some of the examples of the printers are like dot matrix printer, laser printer etc.
Answer:
artistic
Explanation:
because being it is considered a art
A complete program with the method ShowCar:
import java.util.Scanner; // header file
public class ShowChar
{
public static void main(String[] args)
{
String lnOfText;
int i;
Scanner input = new Scanner(System.in);
System.out.print("Enter a line of text:");
lnOfText = input.nextLine();
System.out.print(" Enter your index: ");
i = input.nextInt();
show_Char(lnOfText,i);
}
public static void show_Char(String str_a, int i)
{
System.out.print(str_a.charAt(i));
}
}
In this program, both the inputs ie. a sentence or line of text as well as the index position is obtained. A method is written to find the string at that particular position. Finally the method prints that character at the particular index.