I am not too happy to be a good man in my world but he is made me very very much and he is made me very very much and he is very much very good to him very much and he is very much very good to you very good and very much to be able for my kids with a little more money will not go back and you can do the greatest if he can be very much and you have no problem and then we do all the way that we are not the right answer but you have a question to do and you don’t have the right right answer the answer right back and he will not be very good I am very good and he is very very bad
Concatenation, which mean we combine two or more strings into one.
Answer:
Handle the exception in a catch block or throw the exception to the method that called this method.
Explanation:
The try and catch statements occur in pairs. The try statement allows the user to define a block of code to be tested for errors while it is being executed.
The catch statement allows the user to define a block of code to be executed, if an error occurs in the try block.
If an exception is checked by a method, the method either handles the exception in a catch block or throw the exception to the method calling it.
Answer:
<h2>Following are the java script code for the above question. </h2>
Explanation:
Program :
var percentage= prompt("Enter the percentage of the student"); // take the input from the user.
if(percentage>=90)//check condition for greator than 90.
alert("your grade is \"A\"");
else if(percentage>=80) // check condition for 80 and 89.
alert("your grade is \"B\"");
else if(percentage>=70) // check condition for 70 and 79.
alert("your grade is \"C\"");
else if(percentage>=60) // check condition for 60 and 69.
alert("your grade is \"D\"");
else // check condition for less than 60.
alert("your grade is \"F\"");
Output:
- If the user input 60, it will prints D.
- If the user inputs 59, it will prints f.
Code Explanation:
- The above code is in a javascript language, In which the first line is used to display the message and take the input from the user in the alert box.
- Then the percentage is checked by the help of in if, else if and else statement and print the grade.
- Then the grade is printed with the help of an alert box.