Answer:
earned = 0
total = 0
exercises = int(input("Enter the number of exercises: "))
for i in range(exercises):
score = int(input("Enter score" + str(i+1) + ": "))
total_score = int(input("Enter total score for exercise " + str(i+1) + ": "))
earned += score
total += total_score
print("The total is %" + str(earned/total * 100))
Explanation:
*The code is in Python.
Set the earned and total as 0
Ask the user to enter the number of exercises
Create a for loop that iterates number of exercises times. For each exercise;
Ask the user to enter the score earned and total score of that exercise
Add the score to the earned (cumulative sum)
Add the total_score to the total (cumulative sum)
When the loop is done, calculate the percentage, divide earned by the total and multiply the result by 100, and print it
The program illustrates the use of loops and conditions.
Loops are used for repetitions, while conditions are used to make decisions
The game program in Python, where comments are used to explain each line is as follows:
#This initializes the point to 100
point = 100
#The following loop is repeated 4 times
for i in range(4):
#This gets the current action
action = input("Hit or Miss: ")
#This following if statement calculates the point
if action.lower() == "hit":
point+=10
else:
point-=20
#This prints the calculated point
print(point)
Read more about loops and conditions at:
brainly.com/question/14284157
Explanation:
Definition – Mouse is a pointing input device of computer. Mouse help to control cursor that is visible on the computer screen while moving the mouse on flat surface place. Its name was originated by its shape that look as mouse, because it has elliptical shaped with mouse tail. Mouse reduces usability of a keyboard
Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer
The answer is AGGREGATOR which is a website that provides search an aggregation services but creates little or no original content. On the internet, news organizations that employ reporters and create articles are known as content providers, because they provide original content. Unfortunately for the content providers, they collect only a small share of the total revenue from online advertising. Most ad revenue goes to aggregators, such as google that provide search and aggregation services but generate little or no original content.