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
sergey [27]
3 years ago
14

Light travels at 3 × 108 meters per second. A light-year is the distance a light beam travels in one year.Write a PYTHON program

that calculates and displays the value of a light-year.Useful facts:Seconds in a year = 365×24×602Rate = 3×108meters per second
Computers and Technology
1 answer:
Volgvan3 years ago
4 0

Answer: This is a python code

def lightyear():

   rate=3*100000000   //speed of light

   seconds=365*24*60*60   //number of seconds in 1 year

   return str((rate*seconds)/1000)+" km"    //distance=speed x time

print(lightyear()) //will print value of light hear in kilometers

OUTPUT :

9460800000000.0 km

Explanation:

In the above code, there is a variable rate, which stores the speed of light, i.e. distance traveled by light in 1 second which is in meters. Another variable is seconds, which store the number of seconds in 1 year, which is no of days in 1 year multiplied by the number of hours in a day multiplied by the number of minutes in an hour multiplied by the number of seconds in a minute. Finally, distance is speed multiplied by time, so distance is printed in kilometers and to convert distance in kilometers it is divided by 1000.

You might be interested in
Construct :<br> 4 input NOR Gate Truth Table.
Montano1993 [528]

9514 1404 393

Answer:

  see attached

Explanation:

The output is always 0, except for the case where all 4 inputs are 0.

6 0
3 years ago
Programming Objectives
erma4kov [3.2K]

Answer:

See Explaination

Explanation:

m=int(input("Please specify the number of elements in first list : "))

n=int(input("Please specify the number of elements in second list : "))

m1=1

list1=[]

n1=1

list2=[]

while m1<=m:

r1=int(input("input element {} of list1: ".format(m1)))

list1.append(r1)

m1+=1

while n1<=n:

list2.append(int(input("input element {} of list2: ".format(n1))))

n1+=1

def Intersection(list1,list2):

return set(list1).intersection(list2)

print("The intersection of two lists is {}".format(Intersection(list1,list2)))

7 0
3 years ago
You've just deployed a new Cisco router that connects several network segments in your organization. The router is physically lo
slamgirl [31]

Answer:

The answer is "Use SCP to back up the router configuration to a remote location".

Explanation:

In the SPC, it is the Secure Copy Protocol that allows information to be stored and securely transmitted. Its SCP doesn't encrypt its digital information by itself; it corresponds to both the Security module which provides authentication or security. It allows the safe transfer of personal documents from either a host machine to a remote server. Its transference protocol "FTP" is quite close, but it adds security and authentication.

4 0
3 years ago
A retailer is able to track which products draw the most attention from its customers through the use of 5g-enabled motion senso
Minchanka [31]

The technology combines with 5g capabilities to allow the monitoring of shopping trends in this way is called internet of things

For better understanding, lets explain what internet of things means.

  • Internet of things is simply known to be a network of Internet-Enabled objects that is often combined along with web services as they often interact with these objects.
  • There is a known development of the Internet where objects always have network connectivity giving them room to send and receive data.

From the above, we can therefore say that the answer The technology combines with 5g capabilities to allow the monitoring of shopping trends in this way is called internet of things is correct.

Learn more about internet of things from:

brainly.com/question/19995128

7 0
3 years ago
Which of the following statements are true regarding Zyvox? (Select ALL that apply.)
Alinara [238K]

Answer: A,C,E

Zyvox = linezolid

Explanation:

Zyvox posses an excellent Gram positive coverage, as well as MRSA and VRE. Zyvox is primarily cleaned by the liver, the MAO inhibitor is expected to be administered with care along with Scrotonergic agents like SSRI, antidepressants, and it must be well monitored.

Bone marrow suppression is toxicity related with time and not Nephrotoxicity. Bioavailability in Zyvox is very excellent ; with transition from IV.PO with a ratio of 1:1.

7 0
4 years ago
Other questions:
  • Lance is at a bus station. His friend is using the ATM machine to withdraw some money. Lance notices a stranger deceptively watc
    6·2 answers
  • Technician A says that as volume decreases, pressure increases. Technician B says that as temperature increases, pressure decrea
    5·1 answer
  • Which of the following controls will provide an area in the form for the user to enter a name? a. button b. label c. text box d.
    8·1 answer
  • A user on a home network needs to boost the signal of the wireless router. What should the user purchase to accomplish this?
    14·1 answer
  • In a stream channel what is deposited first?
    7·1 answer
  • Please write a complete program to calculate monthly payment given
    15·1 answer
  • A key tactic that is used in many attacks, but very frequently in CEO Fraud, is creating a sense of what?
    15·2 answers
  • Answer for 3 and 4 please
    15·2 answers
  • 1.Discuss the complexities of owning and sharing digital information.
    5·1 answer
  • The value that decides whether something falls into one category or another is called a ____
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!