Answer:
Verbatim Identifier
Explanation:
- Verbatim Identifier contains @ symbol as a prefix by which enables you to use reserved words of a programming language as identifier. For example the keywords like int, double, goto, char, else, while, for, float etc can be used as strings or variable names if @ symbol is added before these words e.g. @char, @while, @void, @int etc.
- The compiler of a language will recognize such identifiers as verbatim identifiers and compiles them without giving an error that these are reserved words.
- Verbatim identifier is used for program that is written in other languages and those languages don't have same reserved words.
- For example: cout<<"use of verbatim identifier";<<@for; In this statement, for keyword which is used in for loop can be used as an identifier with @ in the prefix.
- The escape sequences if used with @ symbol in prefix then they are interpreted in a different way. For example in C#
string a = "\\C:\torrent\new\file";
Console.WriteLine(a);
This statement will give the following output:
\C: orrent
ewfile
This means that the \t in the start of torrent and \n in the start of new word is taken as an escape sequence and output displayed is giving tab space because of \t and prints the rest of the words in new line because of \n escape sequence.
Now lets use this with the @ symbol
string a = @"\\C:\torrent\new\file";
Console.WriteLine(a);
The output will now be:
\\C:\torrent\new\file
\t and \n are not taken as escape sequences by the compiler because of @ symbol.
Answer:
To be honest why would you want to enter one character. Anyways the answer is option 4
The basic purpose of a google calendar is basically the same as a regular calendar. it is used to keep track life's important events all in one place.
Answer:
for (scores.Entry<String, Integer> entry : scores.entrySet()) {
int value=0; String key="Rambo";
String k = entry.getKey();
int v = entry.getValue();
if (v>value)
{
value =v;
}
else
{
value=value;
}
}
for( scores.Entry<String, Integer> entry : scores.entrySet())
{
if( entry.getValue()==value)
System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
Explanation:
The above scores are an object of Map type. And this is a parameter of findUopStudent function. So scores is a Map, and entry is an item. And we get its key and value. Now we compare each value using senteniel method and find the maximum value. Now we iterate through the scores using for the look and check the value of each entry against the maximum value found, and we print out the entry with maximum value. And that is the top student, which is required.
Answer:
#part 1
#read the amount
amount=int(input("enter the amount:"))
#find the dollars
doll=int(amount/100)
// find the cents
cent=amount%100
#print output
print("{} dollars and {} cents.".format(doll,cent))
#part 2
#read a floating point
temperature=float(input("enter the temperature:"))
#part 3
#read a word
firstWord=input("enter a word:")
Explanation:
In part 1, read amount and the find the dollars with the help of "/" operator. Then find the cents with "%" operator and print both.In part 2, read a point and cast it to float then assign it to variable "temperature".In part 3,Read a word and assign it to variable "firstWord".
Output:
enter the amount:4321
43 dollars and 21 cents.
enter the temperature:12.5
enter a word:hello