Answer:
Here is the Python program which has a function sum_scores:
def sum_scores(score1, score2, score3, score4):
sum = score1 + score2 + score3 + score4
print(sum)
sum_scores(14,7,3,0)
Explanation:
- Method sum_scores takes four arguments, score1, score2, score3, score4.
- The sum variable adds these four scores and stores the value of their addition.
- Lastly print statement is used to print the value stored in sum variable which is the value obtained by adding the four scores.
- Last statement calls the sum_scores method and passes four values to it which are 14,7,3,0
- The output of the above program is:
- 24
- If you want to use return statement instead of print statement you can replace print(sum) with return sum. But in order to display the sum of the scores you can replace sum_scores(14,7,3,0) with print(sum_scores(14,7,3,0))
- The program along with the output is attached as a screenshot.
Answer:
10
Explanation:
you start with 5 5
you add 3 8
the variable is not odd so skip 8
the variable is even so add 1 9
the variable is odd so add 1 10
10
hope this helps <3
It would take 2 consultants 30 hours to create a slide deck of 120 slides.
Explanation:
Rate of slide making by one consultant- 2 slides per hour
Target- 120 slides
2 consultants are employed in the job-
Since 2 consultants are employed in the job, total rate of making slides per hour would be 4 slides/hour (2*2 slides/hour)
Time required to complete 120 slides= total slides/rate of doing slides per hour
Substituting the values, we get
Time required= 120/4= 30 hours
Hence, it would take 30 hours for 2 consultants to create a slide deck of 120 slides.
Answer:
It can deliver the services faster with higher reliability and quality