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
weeeeeb [17]
3 years ago
6

1.1. (30 points) Write a program to calculate the average number of cars sold by a car agency over a period of years for the fir

st six months of each year. First, the program will ask for the number of years. Then, the program will ask for the number of cars sold for the first six months for the first year. Similarly, the program will repeat asking for the number of cars sold for the first six months of all the remaining years. After all the iterations, the program should display the number of months, the total number of cars sold, and the average number of cars sold per month for the entire period.
Computers and Technology
1 answer:
mario62 [17]3 years ago
8 0

Answer:

count = 0

months = 0

years = int(input("Enter the number of years: "))

for year in range(1, years+1):

   cars_sold = int(input("Enter the number of cars sold in first six months: "))

   count += cars_sold

   months += 6

print("Number of months: " + str(months))

print("Number of cars sold in total: " + str(count))

print("Average number of cars sold per month: " + str(count / months))

Explanation:

Initialize the variables

Ask the user for the number of years

Create a for loop that iterates depending on the given number of years

Ask the user for the number of cars sold in the first six months of the year

Increment the count by given number and increment the months by 6 after each iteration

Print the months, count and, average

You might be interested in
What are the characteristics of calendar sharing options in Outlook 2016? Check all that apply.
Mamont248 [21]

Answer:

a,b,c,e

Explanation:

7 0
3 years ago
Read 2 more answers
You are installing an updated driver for a hardware device on your system. A dialog box displays indicating that Microsoft has d
inessss [21]

Answer:

It means the driver has been tested by Microsoft, and its an unaltered file.

Explanation:

A signed driver ensures that comes directly from Microsoft, it hasn't been modified by any other group or otherwise would lose the signature,  the driver is associated with a digital certificate that allows Windows to test its authenticity.

Since drivers work at very high-security levels on Windows OS, installing unsigned drivers it's a considerable risk.

7 0
3 years ago
Select all the correct answers.
oksian1 [2.3K]

Answer:

It's probably "facilitate discussions"

Hope this helps you!

Bye!

4 0
3 years ago
Read 2 more answers
1. Of which of the following is a box an example?
german
First is A second is B third is A and B I THINK
7 0
4 years ago
Read 2 more answers
Lin is booting up his computer, and during the boot process, the computer powers down. After several unsuccessful attempts to bo
Alex787 [66]

Answer:

A. Processor.

Explanation:

When a computer system works working or does not boot, it is mostly ask a result of power supply failure.

The system does not come on, that is, the fan and screen does not come up and the caps lock indicator is not blinking. The power supply shows that the power is good.

When the processor is not sitting properly and when the motherboard has failed, the signs mentioned above are observed.

Not to escalate the problem, test for the processor status as a probable cause with another functional and compatible processor before the motherboard.

4 0
3 years ago
Other questions:
  • Nathan, a civil engineer in a construction company, is one of the best performers in the organization. He is assigned challengin
    9·1 answer
  • Operating systems the most common form Microsoft windows in Mac OS discuss the similarities and differences between which two sy
    13·1 answer
  • Mechanisms of evolution
    7·1 answer
  • The next four octal numbers after 36 is:________.
    10·1 answer
  • Consider the markets for monitors, USB drives, central processing units, and Microsoft’s Windows. Assume monitor manufacturers u
    7·1 answer
  • Assume that month is an int variable whose value is 1 or 2 or 3 or 5 ... or 11 or 12. Write an expression whose value is "jan" o
    10·1 answer
  • EMERGENCYYYYY what does it mean when i get a security alert when i download an addon on google docs
    7·1 answer
  • "What router feature provides basic security by mapping internal private IP addresses to public external IP addresses, essential
    10·1 answer
  • Importance of spread sheets​
    8·2 answers
  • What construction work is the tender for​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!