Answer:
polygon_sides = {"Triangle" : 3,"Square" : 5}
n_polygons = {}
for key in polygon_sides:
n_polygons[polygon_sides[key]] = key
print("Polygon sides: ", polygon_sides)
print("Names of polygons: ", n_polygons)
Explanation:
- Initialize the polygon_sides dictionary.
- Loop through polygon_sides dictionary and assign the associated names to n_polygons variable.
- Display the polygon sides and the names of polygons.
Answer: c.)
Explanation:
The bit SYN is used in order to synchronize segment numbers in the sender and receiving processes in hosts that are trying to start a data transmitting session between them.
It is initiated by the sending end, that set this bit to " 1", in the TCP header, starting which is known as a "3-way handshake process".
The bit SYN is not used in order to close a connection, the FIN bit is used for this purpose.
If one process set the FIN bit to "1", this means that it has no more data to send.
Answer:
#include <iostream>
using namespace std;
int main()
{
float radius = 5.4;
float circumference = 2 * 3.14 * radius;
float area = 3.14 * radius * radius;
cout<<"the circumference of the circle is "<<circumference<<endl;
cout<<"the area of the circle is "<<area<<endl;
return 0;
}
Explanation:
Include the library iostream for using the input/output instructions.
create the main function and define the variable with value. Then,
use the formula to calculate the circumference and are of circle.


here, choose 
after that, display the result.
Note: All variable define in float type.