Answer:
The program in Python is as follows:
num1 = int(input())
num2 = int(input())
if num1 >=0 and num2 >= 0:
print(num1+num2)
elif num1 <0 and num2 < 0:
print(num1*num2)
else:
if num1>=0:
print(num1**2)
else:
print(num2**2)
Explanation:
This gets input for both numbers
num1 = int(input())
num2 = int(input())
If both are positive, the sum is calculated and printed
<em>if num1 >=0 and num2 >= 0:</em>
<em> print(num1+num2)</em>
If both are negative, the products is calculated and printed
<em>elif num1 <0 and num2 < 0:</em>
<em> print(num1*num2)</em>
If only one of them is positive
else:
Calculate and print the square of num1 if positive
<em> if num1>=0:</em>
<em> print(num1**2)</em>
Calculate and print the square of num2 if positive
<em> else:</em>
<em> print(num2**2)</em>
Answer:
name = input("Enter name: ")
droids = int(input("How many droids you want to meet? "))
wookies = int(input("How many Wookies you want to meet? "))
print(name + " wants to meet " + str(droids) + " droids, and " + str(wookies) + " Wookies")
Explanation:
*The code is in Python.
Ask the user to enter the name, number of the droids and number of the Wookies
Print the name, number of the droids, and number of the Wookies
Note that while getting the input for the droids and wookies, you need to typecast the input the int (Since the values are int). Also, to print these variables, you need to typecast them as string in that format.
Answer:
Option C is the correct option.
Explanation:
When any email or message is received from the FBI in the user's computer system and the following message is about the user's computer system has been locked and they demand some amount to unlock their data or information.
So, the following scenario is about the ransomware because they ransom money to retrieve their data and information from the system.
Hello!
The considerations that go into representing data digitally is that the data can be easily sent and interprated to people all over the world. However, one of the trade-offs of representing data digitally is that the information loses a "human" aspect. Instead of experimenting the data, you are simply reading it.
I hope you found this helpful! :)
Answer:
Network TOPOLOGY is a passage way network is arranged, including the logical description of links and how they are set up to relate with each other.
Examples of network topology are:
a) Star ring
b) Star bus network.
Explanation:
Hope it helps.