Answer:
The code segment is written in Java.
- boolean rsvp = true;
- int selection;
- String option1;
- String option2;
-
- if(rsvp == true){
- System.out.println("attending");
- }else{
- System.out.println("not attending");
- }
Explanation:
Declare all the variables as required by the question (Line 1 - 4).
Create a control structure using if-else statements so that when rsvp equal to true, the program will display "attending" else it will display "not attending".
Answer:
Algorithm
Explanation:
Algorithm is a set of instructions designed to perform a specific task, an independent sequence of actions to be perform to solve a problem and instruction for performing a computation.
Algorithm is A(n) key set of steps used to convert an unencrypted message into an encrypted sequence of bits that represent the message; it sometimes refers to the programs that enable the cryptographic processes.
If I am correct, it should be D. Hopefully I was helpful.
Communication should be civil and respectful of one another