Answer:
1.ClassName and . operator
2. ClassName and [] operator
Explanation:
There are two ways to get the members of a class first one is by using dot(.) operator.
Example : with assumption that person is a class object and age is the member in it we can use it as:
person.age
Second way is to use [] operator with member as a string in it which is used by the compiler as key to get its value.
Example : person["age"]
Answer:
Flight simulators provide a cost-effective way for pilots to practice both routine and rarely-used skills. With simulator training, you can refine your skills in a variety of different flight scenarios that can be tailored to your specific goals.
Explanation:
hope this helps <3
Answer:
#program in python.
#variables
slice_area=14.125
pi=3.14159
#read diameter
d=int(input("Enter diameter of pizza:"))
#area of pizza
area=pi*(d/2)*(d/2)
#number of slice
no_slice=int(area/slice_area)
#print slice
print("total silce are:",no_slice)
Explanation:
Declare and initialize a variable "slice_area" with 14.125 which is the area of a pizza slice.Initialize a variable "pi" with 3.14159.Then read the diameter of pizza.Find the area of pizza as "area=pi *d/2*d/2".Divide the total area with area of pizza slice.This will be the number of slice.
Output:
Enter diameter of pizza:20
total silce are: 22
the menu and the toolbars