RAM is memory in the computer
Answer:
Explanation:
The following code is written in Java and first checks to see if the class name starts with the character " [ " which would indicate it is indeed an Array. If it is it prints out that it is an Array and then Prints out the number of respondents/entries that the array has. If it is not an Array it prints out that it is not an array.
if (HairEyeColor.getClass().getName().charAt(0) == '[') {
System.out.println("Yes, it is an Array");
System.out.println("HairEyeColor has " + (HairEyeColor.length+1) + " respondents");
} else {
System.out.println("It is NOT an Array");
}
Answer:
Explanation:
For the first questions the variable's name is <u>Today,</u> and is declared like a date variable, this will be returned a date value.
For the second question, where the browser will show today's date because with the variable Today, we get the date and with the document.write(Today) is shown the variable information.
With the third question, the result will be "Hello!", because the August is the 8 month, and July the 7, in this case the IF is False and for that will show "Hello!".
Answer:
Sales=float(input("enter the amount of annual sales: ")) #Take the value from the user.
print("The annual profit is : ",Sales*0.23)# print the value of profit.
Output :
- If the user input as 12, then the output is "2.7600000000000002".
- If the user input as 34, then the output is "7.82".
Explanation:
- The above code is in python language, in which the first line is used to instruct the user for the input, then take the input from the user and store it into the Sales variable after converting it into float data type.
- Then the second statement prints the profit value after multiplied with 0.23 with the help of print function.
- The above code uses 0.23 because 23/100 becomes 0.23.