Answer:
The correct option to the following question is option (A).
Explanation:
SISD is used in the uni-processors systems which executes an individual instruction streams at a time by which we control an individual memory for the storage of data.
It is the flow or the sequence of an individual data or instructions which controlled on the systems.
Whereas SISD is different from the SMID and it is not used in the Uni-processor systems
Answer:
The following fix were made to the program
- Change void main() to int main(), then set a return value at the end of the main function; e.g. return 0
- Remove system("pause"); It's not needed
- For each of the array, change their lengths to 5 i.e. int votes[5]; string name[5]; and float percent[5];
- Lastly, calculate the percentage using: percent[i]=((votes[i]*100.0/total))
Explanation:
(1) void main implies that the main function will not return any value. So, you change it to int main() and then set the return value
(2) There is no need to pause the program, so system.("pause") is not necessary.
(3) The question says there are 5 candidates. So, we set the arrays to accommodate inputs for 5 values
(4) percent array is declared as float; 100.0 will ensure that it calculates the percentage as a float value.
<em>See attachment for updated code</em>
Answer:
Option (d) Software firewall is placed between the normal application and the networking components of the operating system
Explanation:
- Software Firewalls protect the computer from trojans and malicious content which can arise from unsafe applications.
- It also protect the computer from external network.
- It filters the data to and from a software application in the desktop.
- It also filters the data to and from a network.
- It safeguards the computer from not loosing access to the attackers.
- It is customizable software and has to be monitored like installing updates and storage spaces etc.
- Software Firewall in conjunction with the Hardware Firewall must be used for the security of the desktop and the networks.
def missing_num(lst):
for n in range(1,11):
if n not in lst:
print(n)
lst = (1,3,4,5,6,7,8,9,10)
missing_num(lst)
I hope this helps!