Answer:
import math
l = float(input("Enter length in cm: "))
l = l / 100;
print("Entered length is " + str(l) + " meters")
area_square = l * l
print("Area of square is " + str(area_square))
area_circle = math.pi * l/2 * l/2
print("Area of circle is " + str(area_circle))
volume_cube = l * l * l
print("Volume of cube is " + str(volume_cube))
Explanation:
*The code is in Python
Ask the user to enter the length in cm
Convert the length to meters and print it
Calculate the area of the square and print it (Since length is equal to a side, the area is length * length)
Calculate the area of the circle and print it (Since length is equal to the diameter, you need to divide it by two to get the radius. The area is pi * length/2 * length/2)
Calculate the volume of the cube and print it (Since length is equal to a side, the volume is length * length * length)
Answer:
The output is:
0
2
4
Explanation:
First of all, the print statement must be indented with a tab, otherwise it is not part of the for loop.
The range(3) creates an array with values 0,1,2. The variable 'counter' gets those values one after another, and the print statement outputs this value doubled, hence the 0, 2 and 4 output.
Answer/Explanation:
Building application that works with many cultures, languages, and frameworks of organizations is major problem when building an international management system.
Answer:
Constructive cristsism is a helpful way of giving feedback that provides specific, actionable suggestions. Or, its a nice way of criticizing someone and telling them what to do better