Answer:
26
Explanation:
I just know it ok; rjkhshwnwjk
First, we have to understand what scope is. When variables are declared, they are only available in the code block they're declared in, unless they're global variables (this doesn't apply here).
strFirst is declared in usernameMaker and that is the only place it is available in.
Answer:
It's good to consider this as a dictionary, with key-value pair, or as a two-dimensional array.
And in the first case, the code will be as below:
day_i={'Bob':'100', 'Alice':'100','Celia':'110','Bob':'200'}
for k, v in day_i.items():
print(k, v)
Explanation:
The above code reads through each day, and each customer purchase amount in the form of Dictionary, and prints each customer name and purchase amount. And with little enhancement, we can create each day data, and print details of the day, as being asked by the user.
Answer:
a. The network will not satisfy the customers because the required addresses is 128 but what can be offered is 126.
b. 195.200.0.0/22
Explanation:
195.200.0.0/16
The number of bits to give 512 is 9
2^9=512
2^8=256 which is not up to our expected 320 customers that requires a network ip
Note we have to use a bit number that is equal or higher than our required number of networks.
The number of host per each subnet of the network (195.200.0.0/25) is (2^7)-2= 128-2=126
The network will not satisfy the customers because the required addresses is 128 but what can be offered is 126.
b. 64 customers requires 6 bits to be taken from the host bit to the network bit
i.e 2^6 = 64
195.200.0.0/22
The number of host per each subnet of the network (195.200.0.0/22) is (2^10)-2=1024 - 2 = 1022 hosts per subnet
This network meet the requirement " 64 customers want 128 addresses/customer "
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The symbol asterisk (*) in a select query retrieve all result of column in the table. For example, table named "employee" has three column such as <em>id, name, address</em>.
To apply the symbol asterisk (*) in select querry select all the columns in the result.
for example:
select * employee;
this query statement selects all columns of table "employee" in the result.