def computeGrade(float grade, str a){
a = "A" if a > 0.9 else a = "B" if a > 0.8 else "C"
return a;
}
print(a)
Answer:
// program in Python to check perfect number
#function to find number is perfect or not
def is_Perfect_Number(n):
#total variable
tot = 1
i = 2
#sum of all divisor of number
while i*i<=n:
if n%i==0:
tot = tot + i + n/i
if tot == n and n != 1:
return 1
i = i+1
return 0
#read until user enter a perfect number
while True:
#read integer
num = int(input("Input an integer: "))
#call the function
if(is_Perfect_Number(num)):
print(num,"is perfect number")
#if perfect number break
break
else:
print(num,"is not a perfect number")
#ask again
print("try again.")
Explanation:
Read number from user and then call the function is_Perfect_Number() with parameter "num".This will find the sum of all divisor of number.If sum is equal to number then it will return 1 else return 0.If the number is not perfect then it will again ask to enter a number until user enter a perfect number.
Output:
Input an integer: 24
24 is not a perfect number
try again.
Input an integer: 28
28 is perfect number
Answer:
The advantage for the above condition is as follows:-
Explanation:
- If a user creates a defined constant variable and assigns a value on its and then uses that variable instead of the value, then it will a great advantage.
- It is because when there is a needs to change the value of that variable, then it can be done when the user changes the value in one place. There is no needs to change the vale in multiple places.
- But if there is a value in multiple places instead of a variable and there is no constant variable, then the user needs to change the value in multiple places.
The following are examples of animation apps:
- Toon Boom Animation (2-D)
- Prisma3D (3-D) and
- AnimeTok (3-D)
<h3>What are the Pros and the cons of each app listed above?</h3>
Toon Boom Animation Pros:
- It has a great set of tools
- It has camera angles functionality
- Has a vector drawing tool
Cons:
Prisma3D (3-D) Pros:
- It is good for modeling;
- Easy to use interface
Cons:
- It has too many bugs.
- lacks sculpting tools
AnimeTok (3-D) Pros:
- It makes it easy to move the characters easily
- It is easy to understand
Cons:
- It has too many ads
- does not have an undo and redo button
Learn more about Animation Apps at:
brainly.com/question/7279789
True. The audience is the key to the style of presentation and the content is led by the key to the topic. If the setting blends well with the audience age, gender, background, the presentation will be more effectively presented and positive, which will be more helpful to sell the audience to the point that is being made by the presenter.