Answer:
Computer ethics is a field of applied ethics that addresses ethical issues in the use, design and management of information technology and in the formulation of ethical policies for its regulation in society.
(My opinion) Naruto! (then Boruto is on it's way to becoming good)
but other people might say my hero academia or any of the dragon ball saga
Answer:
Option (D) using the private access specifier on the class fields
Explanation:
- The private access modifier can be used to hide the data.
- Methods and data variables ( fields ) can be declared with the private access modifier.
- Data hiding is a OOPS Concept which can be achieved with the private keyword (private access modifier).
- The access modifiers are of types Public, Private, Protected and Default ( no access modifier - no need to explicitly specify the default keyword).
- Data hiding means to hide the data, the data is contained in the class variables.So, option (d) using private access modifier on the class fields is correct option.
- Option (A) is wrong as the using the public access modifier doesn't hide anything. It is public and is visible to the public.
- Option (B) is wrong as using the private access modifier on the methods means it is hiding the implementation of the methods not the data.
- Option (C) is wrong as using private access modifiers on class definition means making the classes not visible to other classes it doesn't mean data hiding as the data is contained in the class variables.
Answer:
The program in Python is as follows:
total = 0
count = 0
for i in range(8):
num = float(input())
if num < 10.5:
total+=num
count+=1
print("Average: ",total/count)
Explanation:
This initializes the total to 0
total = 0
This initializes the count to 0
count = 0
This loop is executed 8 times
for i in range(8):
This request for float number
num = float(input())
If input is less than 10.5
if num < 10.5:
The sum is taken
total+=num
And count is incremented by 1
count+=1
The loop ends here
This calculates and prints the average
print("Average: ",total/count)