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
ss7ja [257]
3 years ago
15

Print out the value and double it (multiply by 2). Continue printing and doubling (all on the same line, separated by one space

each) as long as the current number is less than 1000, or until 8 numbers have been printed on the line.
Computers and Technology
1 answer:
fiasKO [112]3 years ago
7 0

Answer:

value=int(input("Enter the value from where the user wants to starts: "))#Take the value from the user.

i=1#intialize the value of a variable by 1.

while(value<1000) and (i<9):#while loop which prints the value.

   print(value,end=" ")# print the value.

   value=value*2#calculate the value to print.

   i=i+1#calculate the value for the count.

Output:

If the user enter 5, then the output is : "5 10 20 40 80 160 320 640".

If the user enter 5, then the output is : "3 6 12 24 48 96 192 384".

Explanation:

  • The above code is in python language, in which the first line of the program is used to render a message to the user, take the input from the user and store it into value variable after converting it into an integer.
  • Then the loop will calculate the double value and then it prints the value with the help of print function.
  • The end function puts the spaces between numbers.
You might be interested in
A ____ is an electronic device, operating under the control of instructions stored in its own memory, that can accept data, proc
taurus [48]

Answer:

Server

Explanation:

- it is an electronic device

- under control of another computer or human

- stored instructions as code

- accepts data from external source

- process the data it gets, for example filtering the data or modifying it

- produces information, for example AI created suggestions

- Stores Information on storage drives

6 0
3 years ago
Read 2 more answers
There are 40 houses if company y provides electricity to 2/5 of the houses how many houses as company y provide electricity to
yulyashka [42]
The article for the assignment I need help with part 2xexbixneixe
6 0
3 years ago
______ is a modem standard that uses Lempel-Ziv encoding to compress data. V.22 V.44 V.32bis V.34 RS 232
tester [92]

Answer:

V44 uses Lempel-Ziv-Welch encoding to compress data.

Explanation:

Lempel–Ziv (LZW) created by Abraham Lempel and Jacob Ziv is a universal lossless data compression algorithm. It is an improvement of LZW algorithm.

It makes use of LZ78 algorithms. This algorithm achieve its compression by taking out repeated occurrences of data with references to a dictionary that is built based on the data stream it received as input.

Also, its dictionary pre-initialized with all available possible characters and symbols.

6 0
3 years ago
Having knowledge of the main parts of a computer: CPU, ALU, INPUT, OUTPUT ,and MEMORY Can you explain in simple for dummies what
Morgarella [4.7K]

Answer:

Explanation:

Great question, it is important to ask these questions in order to get rid of any doubts you may be having.

I will explain this as simply as possible in separate parts.

CPU: the CPU is the brain of the computer where all the information is received, processed, and sent from.

ALU: are the digital circuits inside the CPU used to perform all the arithmetic and logic operations

INPUT: are the commands given to the computer by the user.

OUTPUT: is the information displayed on the screen by the computer.

Memory: is the piece of hardware used to save all the information that is currently being used by the computer.

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

5 0
3 years ago
Which question best addresses the issue of risk with a new job?
love history [14]

It would be:

Is there a chance this job might not work out?

:|

8 0
3 years ago
Read 2 more answers
Other questions:
  • Electrical pressure is also called
    5·2 answers
  • The hexadecimal number system uses alphabets A to F to represent values_ to _
    12·2 answers
  • Application software definition word excel powerpoint microsoft
    13·1 answer
  • Carbon copy others who are..
    14·2 answers
  • Which of the following are mass communication methods? (Select all that apply.)
    9·1 answer
  • Your ___ can provide hardware firewall protection for your home network where it connects to the ISP's network, just as ISP netw
    12·1 answer
  • Given a matrix input_matrix, return a Numpy array that consists of every entry of A that has: an even row index in the range [0,
    9·1 answer
  • you crossed two heterozygous red flowers (dominant color), what are your chances to have a white flower
    11·1 answer
  • How would you delete a slide from your presentation after selecting it?
    14·1 answer
  • Example of language processor software
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!