To determine what would be the most appropriate way to address and greet your teacher during an email, we should eliminate some greetings, such as:
"Yo wassup?", "How u doin?", or any other grammatical and socially inappropriate errors.
Let's look at our first option.
"Hi Joseph, How u doin??". This is incorrect as it is not appropriate to address anyone in such a manner and with grammatical errors.
Let's look at our second option.
"Dear Joseph Herman, how are you doing!!". This was on the right path, but didn't end well. The ending of the message, "how are you doing!!" is incorrect punctuation, and has too much excitement.
How about our third option?
"Dear Mr. Herman, I hope you're doing fine.". This is a great email. It has perfect punctuation, grammar, and is appropriate.
What about our fourth?
"Dear Joseph, i hope you are doing great.". This is a good email, but has incorrect punctuation.
Your answer is C.) Dear Mr. Herman, I hope you're doing fine.
Answer:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int intgVal; double dblVal; char chrVal; String strVal;
System.out.print("Enter integer: ");
intgVal = input.nextInt();
System.out.print("Enter double: ");
dblVal = input.nextDouble();
System.out.print("Enter character: ");
chrVal = input.next().charAt(0);
input.nextLine();
System.out.print("Enter string: ");
strVal = input.nextLine();
System.out.println(intgVal+" "+dblVal+" "+chrVal+" "+strVal);
System.out.println(strVal+" "+chrVal+" "+dblVal+" "+intgVal);
int IntValue = (int) dblVal;
System.out.print("Cast to an integer: "+IntValue);
}
}
Explanation:
See attachment for complete program where comments were used to explain each line of the program
Answer:
The code will produce:-
2.4
Explanation:
In this code the result of the arithmetic operation is stored in the variable c.On evaluating the expression it divides 12.0 by 5 which results in 2.4 and it is stored in float variable c.Then it is printed on the screen using print statement.Since the c is double variable so the result will be a decimal number.
Hence the answer is 4.
Answer: TOS
Explanation:
Terms of service is the agreement and the set of rules and regulations for the site visitors. It include all the terms and condition or the disclaimer when addressing the particular website.
Terms of service are set before designing the any type of the site and content in the system that restrict all the types of business that the users conduct in the site.