1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vinil7 [7]
3 years ago
11

write a program that calculates the total grade for N classroom exerices as a perfentage. the user should input the value for N

followed by each of the N scores and totals.
Computers and Technology
1 answer:
miskamm [114]3 years ago
7 0

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

You might be interested in
Which of computer can be used where there is no regular electricity.​
Sonja [21]

Answer:

Non-electric computers.

Explanation:

A mechanical computer is built from mechanical components such as levers and gears, rather than electronic components.

5 0
2 years ago
Choose the best answer a) Which is NOT a Graphics software​
Alchen [17]

Answer:

Software that people think of as graphics software, but isn't, include programs that don't directly manipulate individual images. Page layout software such as InDesign, QuarkXpress, and Publisher fall into that category. Likewise, presentation software such as PowerPoint or Apple Keynote aren't graphics programs

Explanation:

3 0
2 years ago
BST
mafiozo [28]

Answer:

Explanation:

Over the past three decades, as companies have created new security technologies to help defend businesses and consumers, attackers have quickly adapted. While most technologies raise the bar that attackers have to vault to compromise a business network or a consumer system, security technology has largely failed to blunt their attacks.

In the face of a workforce largely uneducated about security and a shortfall in skilled security professionals, better technology isn't just a boon but a requirement. "But there may be 100 bad guys to every security professional, and that means that it is a constant battle."

Luckily, new technologies are in the pipeline.

7 0
3 years ago
What car Is this because I want it for my daughters sweet 16th birthday
nadezda [96]
That is a 2016 Nissan Sentra
7 0
3 years ago
When saving messages as drafts, it’s important to remember that your draft will not go live unless _______. Choose only ONE best
Nadusha1986 [10]

Answer:

Option (b) is the correct answer.

Explanation:

"Drafts" is a folder of messaging software or mail software whose works are to save the message until the user does not want to send it. So to send the message from drafts, the user needs to edit the message first then he can able to send that message. The above question asks that how a user can send the draft message. Option b suggests that a user needs to click send to send the draft message.

Hence it is a right option while the reason behind the other option is invalid are as follows--

  • Option a suggests that a user needs admin permission to send this but if that is his account then no need for admin permission.
  • Option c suggests to unlock the draft but the draft folder is not locked.
  • Option d suggests to take permission from a superuser but that is not required.
7 0
3 years ago
Other questions:
  • Match the following tasks with their appropriate timing.
    8·1 answer
  • Sam wants to move from his current role in his organization to a managerial role. Which certification will help him get on a man
    6·1 answer
  • What is one way interpreted programming languages differ from compiled programming languages? (3 points)
    6·1 answer
  • True or false? when intel places a sticker on computers showing their chip is inside, they are demonstrating their visible value
    7·1 answer
  • A file containing user information which is transmitted from an online server and attached to your web browser and stored on you
    7·1 answer
  • Some program menus are the same in every program you open. Under the File menu, all of the following are the same in every progr
    6·1 answer
  • What was your first experience with listening to kpop?
    8·2 answers
  • How did imperialism lead to WWI? A The debate of the morality of imperialism created tensions around Europe b Native people were
    12·1 answer
  • Complete the statement using the correct term.
    10·1 answer
  • What should you point out when demonstrating 2023 murano’s xtronic cvt during full throttle acceleration?.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!