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:
#include<stdio.h>
//declare a named constant
#define MAX 50
int main()
{
//declare the array
int a[MAX],i;
//for loop to access the elements from user
for(i=0;i<MAX;i++)
{
printf("\n Enter a number to a[%d]",i+1);
scanf("%d",&a[i]);
}
//display the input elements
printf("\n The array elements are :");
for(i=0;i<=MAX;i++)
printf(" %d ",a[i]);
}
Explanation:
PSEUDOCODE INPUTARRAY(A[MAX])
REPEAT FOR I EQUALS TO 1 TO MAX
PRINT “Enter a number to A[I]”
READ A[I]
[END OF LOOP]
REPEAT FOR I EQUALS TO 1 TO MAX
PRINT A[I]
[END OF LOOP]
RETURN
ALGORITHM
ALGORITHM PRINTARRAY(A[MAX])
REPEAT FOR I<=1 TO MAX
PRINT “Enter a number”
INPUT A[I]
[END OF LOOP]
REPEAT FOR I<=1 TO MAX
PRINT A[I]
[END OF LOOP]
Answer:
Normal view
Explanation:
The normal view is best used because it is just to drag and drop
Answer: (C) Confirm project requirement
Explanation:
The configuration management is the type of system and it is collection of the formal document that is use to applying for the technical direction. It is the subsystem of the management system of the project.
It basically record each change occur in the project and then report the each change status in the project. It also control various physical characteristics in the project.
It identify all the physical and the functional characteristics of any type of service, result and product in the project document. It basically include the tracking system that is used for the document authorizing and also for the controlling purpose.
Answer:
if 3 + 3 == 6:
print("Hey 3 and 3 is 6")
if 5 + 3 == 8:
print("You are not going to catch me")
if 5 + 6 == 10:
print("****nag*****")
else:
print("You thought like 5 + 6 = 11 ")
if 6 + 6 == 12:
print("Great! This one is correct")
if 5 + 7 == 12:
print("Great, this is correct as well")
if 3 + 3 == 4 and 5 + 5 == 10:
print("Great! Congrats")
Explanation:
Please check the answer, and practice if else and various other ladders as much as you can.