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
netineya [11]
4 years ago
15

Write code that determines the number of full days represented by the number of hours stored in the variable hours and stores th

at value in the variable full_days. For example, the number of full days in 50 hours is 2. Ignore any leftover hours that don't contribute to a full day. Assume the value of hours has already been initialized. Solve It!
Computers and Technology
1 answer:
taurus [48]4 years ago
4 0

Answer:

hours = 50

full_days = int(hours / 24)

print("The number of full days in " + str(hours) + " hours is " + str(full_days))

Explanation:

Initialize the hours

Since there are 24 hours in a full day, divide the hours by 24. Note that you need to typecast it to the int, because the result is a decimal value by default

Print the values as requested

You might be interested in
Q: If a program is invoked with "python program.py -r input.dat output.dat", what are the elements of argv?
Hunter-Best [27]

Answer:

C

Explanation:

C.argv[0]: "program.py"

argv[1]: "-r"

argv[2]: "input.dat"

argv[3]: "output.dat"

is the right answer. as 0 argument is always the script. We can find this by importing sys and using the command sys.argv. And like len(sys.argv) will give total number of arguments.  

7 0
3 years ago
After 4th collision in ethernet, find the maximum time that the adapter waits until sensing the channel again for a 100 mbps bro
VARVARA [1.3K]

Waiting time for a 100 Mbps broadcast channel is 0.512 ms

Recall that with the CSMA/CD protocol, the adapter waits K * 512 bit times after a collision,

where K is drawn randomly. For K = 100,

The one bit time for 10 Mbps is 1/10000000 s = 0.0001 ms

The one bit time for 100 Mbps is 1/100000000 s = 0.00001 ms

Waiting time for a 10 Mbps broadcast channel is K*512*0.0001= 5.12 ms

Waiting time for a 100 Mbps broadcast channel is K*512*0.00001= 0.512 ms

<h3>What is a collision in Ethernet?</h3>
  • A collision happens on a half-duplex Ethernet network when two devices on the same network attempt to communicate data at the exact same time.
  • The two transmitted packets are "collapsed" by the network, which results in the network discarding both of them.
  • On Ethernets, collisions are unavoidable.
  • A collision is a momentary interaction between two bodies or more than two bodies at once that modifies the motion of the bodies involved as a result of the internal forces at work.
  • Collisions entail the application of force (there is a change in velocity).

Learn more about collision in Ethernet: brainly.com/question/14123270

#SPJ4

3 0
2 years ago
I’ll mark who ever is first or last Doesn’t matter JUST PLEASE HELP
polet [3.4K]
I can’t really see it
8 0
3 years ago
Which of the following is a function of the slip yoke used on a driveshaft?
Harrizon [31]
It has to be all of the above because A and B are both true.

<span>It allows movement between the suspension as it reacts to the road surface, which also allows the driveshaft to change length to configure to the road.</span>

7 0
4 years ago
Where was the first type of computer found
Dennis_Churaev [7]
The ENIAC was invented by J. Presper Eckert and John Mauchly at the University of Pennsylvania and began construction in 1943 and was not completed untill 1946. It occupied about 1,800 square feet and used about 18,000 vacuum tubes, weighing almost 50 tons.
8 0
3 years ago
Read 2 more answers
Other questions:
  • How can ASCII be used to represent characters in a computer system?
    15·1 answer
  • You use worksheets to perform calculations. How do you perform these calculations? ______ are used for performing calculations i
    12·2 answers
  • Write a Bash script that takes the name of a file or directory as an argument, 1. reports if it is a directory or a file, and if
    14·1 answer
  • Identify the effective editing strategy.
    8·2 answers
  • Write a program in Cto define a structure Patient that has the following members
    12·1 answer
  • The keys to successful outsourcing are accountability, reporting, and ___
    7·1 answer
  • Se le conoce así cuando el analista mismo desarrolla el software necesario para implementar el diseño
    10·1 answer
  • How is net pay different from gross pay?
    11·1 answer
  • Write a python program to print the square of all numbers from 0 to 10.
    15·2 answers
  • What do you understand by the term input, output, processing and storage.​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!