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
NeTakaya
3 years ago
12

Developed by Frank Vahid. Write a program using integers usernum and x as input, and output usernum divided by x four times. For

example, if the input is: 2000 2 where user_num = 2000 and x = 2, then the output must be: 1000 500 250 125 Note: all the values must be printed on the same line. Also, recall that in Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded).
Computers and Technology
1 answer:
OleMash [197]3 years ago
7 0

Answer:

Explanation:

Let's do this in Python. We will loop through 4 times, each of the loop would compute the dividend, store it as string in a result variable and finally print the result on the same line:

def divide_4_times(user_num, x):

    result = ''

    for i in range(4):

         user_num /= x

         result += (' ' + str(user_num))

   print(result)

You might be interested in
Which search strategy explores nodes from the initial state as well as the goal state?
Simora [160]
Pretty sure it’s c! I’m not 100% tho sorry if I’m wrong have a nice day:)
5 0
3 years ago
Read 2 more answers
Among all the scientists of the 1930s, ________ was sosuited to carry out the Manhattan project as J.RobertOppenheimer.
Naily [24]

Answer:

none

Explanation:

Great question, it is always good to ask away and get rid of any doubts that you may be having.

The above phrase does not have any correct entry. The correct way of stating the sentence would be the following.

"Among all the scientists of the 1930's, <u>none were as</u> suited to carry out the Manhattan Project as J. Robert Oppenheimer."

<u></u>

<u>none</u> is an available answer but since the next part of the sentence says <em><u>was so</u></em> it would not make sense or be grammatically correct. Therefore you can either change the available answers or change the next two words in order for the sentence to make sense as well as be grammatically correct.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

4 0
3 years ago
Consider the acknowledgment for a packet with sequence number n. A __________ acknowledgment indicates that all packets up to an
antoniya [11.8K]

Answer:

cumulative

Explanation:

Acknowledgment acknowledges that receiver has correctly received a packets which implicitly informs the sender that the previous packets were already received correctly.

4 0
3 years ago
Assume that two parallel arrays have been declared and initialized: healthOption an array of type char that contains letter code
givi [52]

Answer:

if (annualCost[0] < annualCost[1])

{

best2 = healthOption[0];

}

else

{best2 = healthOption[1];

}

Explanation:

The required code is given above.

4 0
3 years ago
What are the use of computer at office?​
KIM [24]

Answer:

playing games XD

Explanation:

hahahahahahahahhaha

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following BEST represents the relationship between physical fitness and exercise?
    6·1 answer
  • Ann. An employee in the payroll department, has contacted the help desk citing multiple issues with her device, including: Slow
    7·1 answer
  • Which keyboard command can be used to delete an image from one slide while adding it to the clipboard so that it can be added in
    5·2 answers
  • Once your hard drive is installed what needs to be done to the drive and what do these two tasks do
    12·1 answer
  • Que es la fisiconometria?
    10·1 answer
  • (True/False). If the definition of an IS is the medium for recording and storing data, and disseminating information, this would
    12·2 answers
  • True or False. Over the past few years, the hacking community has engaged in more "lone wolf" types of hacking activities as opp
    7·1 answer
  • A program reads three integer values. The three values are interpreted as representing the lengths of the sides of a triangle. T
    7·1 answer
  • Which of these parts of a computer produces an observable result?
    11·2 answers
  • What do you do when ur grounded from all electronics and can't go outside and have t clean all day
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!