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
kari74 [83]
3 years ago
10

Write a code for function main, that does the following: creates a variable and assign it the value True. uses a while loop whic

h runs as long as the variable of the previous step is True, inside the while loop, get three integer numbers n1, n2 and n3 from the user and
Computers and Technology
1 answer:
Blizzard [7]3 years ago
5 0

Answer:

def main():

   is_true = True

   while is_true == False:

       try:

           num1 = int(input("Enter first number: ")

           num2 = int(input("Enter second number: ")

           num3 = int(input("Enter third number: ")

       except ValueError:

           print("Input must be an integer number")

       is_true = bool(input("do you want to end loop? True/False: "))

main()

Explanation:

The python main function above continuously creates three integer numbers in a while loop statement until a false input is received from the user.

You might be interested in
You are considering implementing a backup scheme for a server. After researching options, you decide on a method that does not r
Alecsey [184]

Answer:

C. A cold site is a leased facility that contains only electrical and communications wiring, air conditioning, plumbing, and raised flooring. No communications equipment, networking hardware, or computers are installed at a cold site until it is necessary to bring the site to full operation.

Explanation:

3 0
3 years ago
Microwave transmits information between network nodes using
tekilochka [14]

Answer:

Towers and satellite.

Explanation:

Electromagnetic waves is a propagating medium used in all communications device to transmit data (messages) from the device of the sender to the device of the receiver.

Generally, the most commonly used electromagnetic wave technology in telecommunications is radio waves.

Radio waves can be defined as an electromagnetic wave that has its frequency ranging from 30 GHz to 300 GHz and its wavelength between 1mm and 3000m. Therefore, radio waves are a series of repetitive valleys and peaks that are typically characterized of having the longest wavelength in the electromagnetic spectrum.

Basically, as a result of radio waves having long wavelengths, they are mainly used in long-distance communications such as the carriage and transmission of data.

The distance from one peak to the next peak is called wavelength. This distance is also equal to the distance from one trough of a wave to another.

Also, microwave is a form of radio waves which typically has short wavelengths and frequency ranging from 300 MHz and 300 GHz.

Hence, microwave transmits information between network nodes using towers and satellite.

7 0
3 years ago
Read 2 more answers
The following program declares an array of char named as myString There are 6 following cases (a, b, c, d, e, f) to access myStr
yuradex [85]

Answer:

See explaination

Explanation:

a.

myString is "Hello the world"

b.

prints "15"

c.

This is invalid.

We have to use strcpy_s to copy strings

FIX:

strcpy_s(s,"Marylane");

d.

reading string upto length 80 from the user and stored it in myString variable

e.

prints the string enetered by user to console

f.

replacing 7th character by 't'

3 0
3 years ago
Items in the __________ area of a class are accessible to all entities that can "see" the object(s) of that class type
S_A_V [24]
Classes have three areas, (public, private and protected)

"public <span>area" of a class is accessible to all entities that can "see" the object(s) of that class type (accessible in and out)

</span>"private area" of a class is accessible to only within that class, i.e. cannot access them from outside the class (accessible in)

"protected area" of a class is accessible to all entities that can "see" the object(s) of that class type (accessible in and "out with some conditions")
8 0
3 years ago
Print out the value and double it (multiply by 2). Continue printing and doubling (all on the same line, separated by one space
fiasKO [112]

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.
7 0
3 years ago
Other questions:
  • To increase the view of a document on the screen, use the _____. View icon Zoom slider full-screen reading boldface font
    9·1 answer
  • The vast amount of data collected from Internet searches, social media posts, customer transactions, military
    8·1 answer
  • A user complains that his computer automatically reboots after a short period of time. Which of the following computer component
    13·1 answer
  • What is the reason of non-deterministic (indeterminate) behavior of concurrent programs?
    9·1 answer
  • When you touch a hot stove, along which pathway will the impulses travel and what is the final destination in the cns?
    12·1 answer
  • If your pulse is higher than your Target Heart Rate during exercise, what should you do?
    5·2 answers
  • Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the
    10·1 answer
  • KDS Company has 3 departments: 1. Dept X 2. Dept Y 3. Dept Z. Design a program that will read as input each department's sales f
    6·1 answer
  • (Comparable interface) Write Rectangle class that implements the Comparable interface. Override the equals method so that two Re
    12·1 answer
  • Write a recursive decent algorithm for a java while statement, a Javas if statement , an logical/mathematical expression based o
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!