LeviGu
LeviGu LeviGu
  • 20-11-2020
  • Computers and Technology
contestada

How would you code 135 minutes and turn it into 2 hours and 15 minutes, using integer/modular division, in Javascript?

135 to 2h15

Respuesta :

Cytokine
Cytokine Cytokine
  • 20-11-2020

mins = 135;

alert("There are "+(Math.floor(mins/60))+" hour(s) and "+(mins%60)+" min(s).");

That's how I would do it. I hope this helps!

Answer Link

Otras preguntas

What is the area of this polygon?????? Pls
The grades on a math exam are normally distributed with μ = 45 and σ = 5. Celestine obtained 55 on the exam. Find the z-score that corresponds to Celestine’s sc
how animals and plant transport system is different from each other?​
3. View the sample report by clicking the "Sample Student Report" link and answer the following questions. (4 points) I a. What is the composite ACT score range
How many moles are there in a 7.00 L of a gas at a certain temperature and pressure, if 0.369 moles of the same gas at the same conditions occupies 9.75L?
What is happening to the DNA molecule in the figure?(Explain the first step in DNA replication)
The biographies ''Marian Anderson: Legendary Singer'' and ''Marian Anderson Sings'' both portray events in Marian Anderson's life. Compare and contrast the even
A computer system increased from $2500 to $2650. What is the Percent increase?
two crocodiles together can finish their snack in 40 seconds. one of the crocodiles can finish the snack in 60 seconds. how long will it take the second crocodi
These are the _____________ Mountains. A) Rocky B) Andes C) Himalayan