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
ohaa [14]
2 years ago
5

Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the user to enter that many num

bers, one-by-one, keeping track of the sum. At the end, after the user entered all numbers, output the sum.
Create a variable and assign it the value of 0
Prompt the user for how many numbers they have
With a for loop, set it to repeat enough times to get all their values
Prompt the user for a number
Add that number to the variable that started as 0
Output to the user, the sum of all values
Advanced Placement (AP)
1 answer:
prohojiy [21]2 years ago
8 0

Answer:n = int(input("How many numbers do you want to sum? "))

total = 0

for x in range(n):

  total += int(input("Enter a number: "))

print("Sum: "+str(total))

Explanation:

You might be interested in
Fourteen Colorado counties were surveyed to see what percentage of children under 18 were living with their grandparents. The re
Alex_Xolod [135]
It’s BI just took the test have a good day
4 0
3 years ago
Read 2 more answers
Assume that the United States and India enjoy constant opportunity costs in the production possibilities shown in the table.
Soloha48 [4]

The nation that has the absolute advantage in peanuts is India.

<h3>How to solve for the absolute advantage of these countries</h3>

a. The country that has the absolute advantage in the pounds of peanuts is India. They are able to produce 10 million worth of the product.

b. This is in the attachment

c. From the calculated opportunity costs, India has been shown to have the comparative advantage in peanuts so they have to specialize here.

The US on the other hand has to specialize in pecans because they have  the comparative advantage in it.

d) The PPC for each country is a diagram

e. ) The terms of trade would be a pound of peanut for a pound of pec an for the countries.

Based on this the US would produce 10 units for pecans. They would use 5 units and exchange the remaining 5 units of pecans for 5 units of peanuts from India.

India is also going to do likewise.

Read more on production possibility curve here:

brainly.com/question/2601596

#SPJ1

7 0
2 years ago
You are about to invest in a 66-inch flat screen TV. These TVs come in both Energy Star and non-Energy Star models. The cost of
Masja [62]
First solve the cost of running the non- energy star model  
C = ( $ 0.15 / kWh) ( 0.5 kW) ( 4 hrs /day) 365 day
C = $ 109.5 in a year  

Solving the cost of the energy star model  
C = ( $ 0.15 / kWh) ( 0.5 kW) ( 4 hrs /day) (0.4) 365 day
C = $ 43.8   Saving in 5 years

S = ( $ 109.5 - $ 43.8) 5
S = $ 328.50   <span> </span>
3 0
3 years ago
Describe the electoral system currently used in Great Britain for the lower house of its legislative
Naddika [18.5K]

Answer:

yhjjjkk

jjkkkk

jjjjjj

gk

Explanation:

jjjkhhhj

juju gyyhhv

3 0
3 years ago
42. What is the source of the dispute between Canada, Russia, Norway, Denmark, and the United States over political boundaries i
sergejj [24]

Answer:

"she" is back (by she i mean the person who pinned hazbin)

Explanation:

*starts breathing quikly* w-what if she h-hurts him

6 0
3 years ago
Other questions:
  • Describe Brians method of keeping track of time from hatchet
    13·1 answer
  • Surface area of a cylinder is??
    15·1 answer
  • Correlation is not causation. explain this statement
    10·1 answer
  • When the berlin war fell in 1989 coca cola
    13·1 answer
  • Which of the following would be most helpful to determine the soil texture of a sample?
    14·2 answers
  • A certain brand of cereal is running a promotion where you can get 1 toy in each box of cereal purchased. There are 5 different
    8·1 answer
  • List at least two additional things you should do to make the traffic stop go smoothly
    7·1 answer
  • When you park a vehicle with a manual transmission on a hill, you should
    15·1 answer
  • How many meters do you cover in a 10 km (10-K) race?
    9·2 answers
  • What are the types of serial killers? (chill im writing a book)​
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!