Answer:
A. delete the message without opening it.
Explanation:
Never open emails you don't know who sent it, it could be a hacker trying to get your personal/financial information.
The CPU executes arithmetic and logic operations in the arithmetic and logic unit (ALU).
<h3>What is an ALU, or an arithmetic and logic unit?</h3>
- A combinational digital circuit known as an arithmetic logic unit computes arithmetic and bitwise operations on integer binary integers.
- A floating-point unit, on the other hand, works with floating-point numbers.
- The component of a central processing unit known as an arithmetic-logic unit performs arithmetic and logic operations on the operands in computer instruction words.
- An Arithmetic Logic Unit (ALU) is a component found within computers that can execute logical operations in addition to arithmetic operations, such as AND, OR, Ex-OR, invert, etc (e.g. Addition, Subtraction, etc.).
To learn more about arithmetic and logic unit (ALU), refer to:
brainly.com/question/7994884
#SPJ4
Answer:
- public static String bothStart(String text1, String text2){
- String s = "";
-
- if(text1.length() > text2.length()) {
- for (int i = 0; i < text2.length(); i++) {
- if (text1.charAt(i) == text2.charAt(i)) {
- s += text1.charAt(i);
- }else{
- break;
- }
- }
- return s;
- }else{
- for (int i = 0; i < text1.length(); i++) {
- if (text1.charAt(i) == text2.charAt(i)) {
- s += text1.charAt(i);
- }else{
- break;
- }
- }
- return s;
- }
- }
Explanation:
Let's start with creating a static method <em>bothStart()</em> with two String type parameters, <em>text1 </em>&<em> text2</em> (Line 1).
<em />
Create a String type variable, <em>s,</em> which will hold the value of the longest substring that both inputs start with the same character (Line 2).
There are two possible situation here: either <em>text1 </em>longer than<em> text2 </em>or vice versa. Hence, we need to create if-else statements to handle these two position conditions (Line 4 & Line 13).
If the length of<em> text1</em> is longer than <em>text2</em>, the for-loop should only traverse both of strings up to the length of the <em>text2 </em>(Line 5). Within the for-loop, we can use<em> charAt()</em> method to extract individual character from the<em> text1</em> & <em>text2 </em>and compare with each other (Line 15). If they are matched, the character should be joined with the string s (Line 16). If not, break the loop.
The program logic from (Line 14 - 20) is similar to the code segment above (Line 4 -12) except for-loop traverse up to the length of <em>text1 .</em>
<em />
At the end, return the s as output (Line 21).
I would say the statement given above is true. <span>Although a variety of different styles of documentation exist for report preparation, each style requires the same basic information. Hope this answers the question. Have a nice day.</span>
Answer:
I have alot of favorite songs
Explanation: