Answer:
Digital technology is easy to understand once you know how to properly use it.
Explanation:
C++ automatically places a '/0' character at the end of a string literal. This character represents null and is used o represent the end of the string. As a string in c++ is represented as an array of characters it will iterate through the array until reaching the null terminator which indicates it is at the end of the string and can stop.
I think D. To save money cuz thats how financially stable people stay financially stable
Answer:
1. Logical error.
2. Syntax error.
3. Runtime error.
Explanation:
A compiler can be defined as a software program or application designed to read sets of sequential instructions written by programmers and to translate these set of instructions into binary digits for the execution of commands on the central processing unit (CPU) of a computer system.
The three (3) main types of error experienced by a compiler are;
1. <u>Logical error</u>: occurs when the result is wrong because of the programmer's mistake, such as multiplying two numbers when they should have been added
2. <u>Syntax error</u>: occurs when you use the wrong punctuation, such as print 'hello' without parentheses
3. <u>Runtime error</u>: occurs when the program starts running, but encounters an error such as trying to divide by zero
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.