Are actors and athletes paid too much?
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
Your answer is <span>A.conglomerate.
Hope this helps :)</span>
Answer:
Option B is the correct answer for the above question.
Explanation:
The control structure is a decision type structure which can be either true or false. It has two options-- If this then, does this otherwise do this. When the user wants to write he control structure then he can do this by the help of the following syntax in python language--
if(condition):
do this
else:
do this
The above question wants to ask about the concept which is used in the programming for a decision then the answer is control structure which is referred from the option B. Hence B is the correct option while the other is not because--
- Option A states about the flowchart which is the picture form of the instruction.
- Option C states about the pseudocode which is the language form of the instruction.
- The operator is also not the correct option because it is used to perform the operation.
The answer would be character. " Character formatting is the process of changing the way letters, numbers, punctuation marks, and symbols appear on the screen and in print." Hope this helps!!