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
Aloiza [94]
3 years ago
14

Ask the user for two positive integers; the first number, a, should be less than the second number, b. Print the average of the

numbers from a to b inclusive. [ For example: If the user enters 3 and 7, the code should print 5 ((3+4+5+6+7)/5). ] (python coding)
Computers and Technology
1 answer:
gavmur [86]3 years ago
8 0
What you need to do here is increment. Begin by asking the user for the two inputs like you were ( one smaller than the other ) then you would need a loop that kept creating new integers until the desired maxNum is reached. I can write this in Java but not python. in java you would need a 'while loop' and the incrementation '++'. So int1 = 3 and int2 = 7
While (int1 < int2; int++) {
     intAverage = (('integers')/integers.length();
}
You might be interested in
What in Microsoft word brings up mini toolbar
Ray Of Light [21]
You right click the mouse. hope this helps 
6 0
4 years ago
Which of the following statements best compares and contrasts hot and cold type?
Elina [12.6K]

Answer:

3 text 3

Explanation:

7 0
3 years ago
What should students hope to get out of classroom discussions? Check all that apply.
Dafna11 [192]

Answer:

The answer is A,C,E,F

Explanation:

3 0
3 years ago
Read 2 more answers
AYYOOOO CAN YOU HELP A GIRL OUUTT???
goblinko [34]

Answer: The answer is true

8 0
3 years ago
true or false? in a known-plaintext attack (kpa), the cryptanalyst hs access only to a segment of encrpted data and has no choic
bulgar [2K]

Yes , it’s true. In a known-plaintext attack (kpa), the cryptanalyst can only view a small portion of encrypted data, and he or she has no control over what that data might be.

The attacker also has access to one or more pairs of plaintext/ciphertext in a Known Plaintext Attack (KPA). Specifically, consider the scenario where key and plaintext were used to derive the ciphertext (either of which the attacker is trying to find). The attacker is also aware of what are the locations of the output from key encrypting. That is, the assailant is aware of a pair. They might be familiar with further pairings (obtained with the same key).

A straightforward illustration would be if the unencrypted messages had a set expiration date after which they would become publicly available. such as the location of a planned public event. The coordinates are encrypted and kept secret prior to the event. But when the incident occurs, the attacker has discovered the value of the coordinates /plaintext while the coordinates were decrypted (without knowing the key).

In general, a cipher is easier to break the more plaintext/ciphertext pairs that are known.

To learn more about Plaintext Attack click here:

brainly.com/question/28445346

#SPJ4

6 0
1 year ago
Other questions:
  • Write a program that requests a state abbreviation as input and displays the justices appointed from that state. The justices sh
    6·1 answer
  • A computer has a memory ________, rather than just a single memory component. The lowest level is some form of ________ storage
    11·1 answer
  • Which of the following are points that can demonstrate the accuracy of a website?
    6·1 answer
  • Blank are back and forth movement of matter that create sound​
    15·1 answer
  • BEING TIMED HELP ASAP
    12·2 answers
  • Give two reasons you should be aware of your computer's system components and their characteristics.
    10·1 answer
  • Complete the sentence.<br> The IP protocol creates and addresses packets at the _____ layer.
    7·2 answers
  • Kos-huar-utb garls jonly​
    8·2 answers
  • Var1 = 1<br> var2 = 2<br> var3 = "3"<br> print(var1 + var2 + var3)
    5·1 answer
  • The recipient list cannot be edited.<br> Group of answer choices<br><br> True<br><br> False
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!