Answer:
Explanation:
The question above is missing many details and are actually various questions in one. I will answer each one seperately below...
A. The piece of code to get the ID in this code snippet that needs to replace XXX would be the following ... System.out.println("Student ID: " + s.getID());
B. A static main() can declare and create objects. Once these objects are created their instance methods can then be called.
C. Integer score1 = 72;
int score2 = 85;
Character grade = 'C';
In the above code snippet, the information stored in score1, score2, and grade are the following... obj reference, 85, obj reference. This is becasue both Integer and Character are classes and the values being passed to their variables are referencing that object class, while score2 is a primitive type of int and is therefore simply a number.
D. The statement that is true is ... Contents of a Double instance can be modified after initialization. Objects can be modified by calling its setter methods after initializing it.
The report footer section appears at the bottom of the last page. The correct option is b.
<h3>What is a report footer section?</h3>
The report footer is that contain the report items. It is placed in the last page or the bottom of the report border. It is present only one time exactly at the last page.
Thus, the correct option is b, at the bottom of the last page.
Learn more about report footer section
brainly.com/question/13261774
#SPJ1
Answer:
c. An active attack
d. A passive attack
Explanation:
Traffic flow analysis is a cyber attack method of acquiring information by intercepting and examining messages so as to decode them by analysing patterns in the way the messages are communicated.
Traffic flow analysis can either be active or passive depending on if the attacker alters communication in the case of active analysis or simply extracts information in case of passive analysis.
Answer:
<u>algorithm</u>
original = float(raw_input("Enter initial balance: "))
interest = float(raw_input("Enter promised return: "))
expenses = float(raw_input("Enter monthly expenses: "))
interest = interest / 100 / 12
month = 0
balance = original
if balance * interest - expenses >= 0:
print "You don't need to worry."
else:
while balance + balance * interest - expenses >= 0: # negation of the if condition
balance = balance + interest * balance # in one month
balance = balance - expenses
month = month + 1
print month, balance
print month / 12, "years and", month % 12, "months"
Answer:
Explanation:
The following code is written in Python and it is a function called filter, which takes in the requested inputs. It then places the threshold in its own variable and pops it out of the array of inputs. Then it loops through the array comparing each element with the threshold and printing out all of the ones that are less than or equal to the threshold.
def filter():
num_of_elements = input("Enter a number: ")
count = 0
arr_of_nums = []
while count <= int(num_of_elements):
arr_of_nums.append(input("Enter a number: "))
count += 1
threshold = arr_of_nums[-1]
arr_of_nums.pop(-1)
print(threshold)
for element in arr_of_nums:
if int(element) < int(threshold):
print(element)
else:
continue