Answer:
conditional formatting is a feature in many spreadsheet application that allow you to apply specific formatting to cells that meet certain criteria.It is most often used on color based formatting to highlight emphasize or differentiate among data and information stored in spreadsheet
For loop, if you have to fill water in a bucket three times, It will fill water in a bucket three times. While loop, If you have to take water from the well multiple times but stop when the water is empty in the well.
Explanation:
- For loop is used mostly static way of programming.
- While loop is used for dynamic approach of programming.
- Static approach has fix number of times the task is done.
- Dynamic approach is conditional attempt to complete the entire task.
- For loop uses discrete which means it uses the count approach.
- While loop is basis on characteristic, It works mostly with alphabet.
- Functions play major role in while loop to take a dynamic approach.
Answer:
def countdown(n):
if n <= 0:
print('Blastoff!')
else:
print(n)
countdown(n-1)
def countup(n):
if n >= 0:
print('Blastoff!')
else:
print(n)
countup(n+1)
number = int(input("Enter a number: "))
if number >= 0:
countdown(number)
elif number < 0:
countup(number)
<u>Outputs:</u>
Enter a number: 3
3
2
1
Blastoff!
Enter a number: -3
-3
-2
-1
Blastoff!
Enter a number: 0
Blastoff!
For the input of zero, the countdown function is called.
Explanation:
Copy the countdown function
Create a function called countup that takes one parameter, n. The function counts up from n to 0. It will print the numbers from n to -1 and when it reaches 0, it will print "Blastoff!".
Ask the user to enter a number
Check if the number is greater than or equal to 0. If it is, call the countdown function. Otherwise, call the countup function.
Answer: independence
Explanation:
The AICPA Code of professional Conduct is based on the following concepts which are :
1. responsibilities
2. serve the public interest
3. integrity
4. objectivity and independence
5. due care
6. The scope and nature of services.