Answer:
Algorithm for the above problem:
- Take a string from the user input.
- store the input string on any variable.
- Reverse the string and store it on the other variable.
- Compare both strings (character by character) using any loop.
- If all the character of the string matched then print that the "Input string is a palindrome".
- Otherwise, print "The inputted string is not a palindrome."
Output:
- If the user inputs "ababa", then it prints that the "Input string is palindrome"
- If the user inputs "ababaff", then it prints that the "Input string is not palindrome"
Explanation:
- The above-defined line is a set of an algorithm to check the number is palindrome or not.
- It is defined in English because the algorithm is a finite set of instructions written in any language used to solve the problem.
- The above algorithm takes input from the user, compare that string with its reverse and print palindrome, if the match is found.
A bar graph is a great graphical representation of disributiation of data
Answer:
num1 = int(input("Enter value: "))
num2 = int(input("Enter value: "))
if num1 == num2:
print("Equals.")
else:
print("Unequal.")
Explanation:
Answer:
The flashdrive can hold 35389 400-pages-books
Explanation:
If
of a page occupies 1 kB of memory, we can calculate how much memory a book will take

Now that we know that a book average file size is about 266,67 kB, we calculate how many of them can a 9 GB flash drive hold.
To do the calculation, we have to know how many kilobytes are in 9 gigabytes.
There is 1024 kilobytes in a megabyte, and 1024 megabytes in a gigabyte, so:

Finally, knowing the average file size of a book and how much memory in kilobytes the 9 GB flash drive holds, we calculate how many books can it hold.

The flashdrive can hold 35389 400-pages-books, or 14155776 pages of typical text.
Answer:
function createAndFillBufferObject(gl, data) {
var buffer_id;
// Create a buffer object
buffer_id = gl.createBuffer();
if (!buffer_id) {
out.displayError('Failed to create the buffer object for ' + model_name);
return null;
}
// Make the buffer object the active buffer.
gl.bindBuffer(gl.ARRAY_BUFFER, buffer_id);
// Upload the data for this buffer object to the GPU.
gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW);
return buffer_id;
}