Computers and Technology
Computers and Technology, 27.01.2020 23:31, ellie4678

Something is wrong with the logic in the program above. for which values of time will the greeting "good morning! " be displayed? var time = promptnum("what hour is it (on a 24 hour clock)? "); var greeting = ""; if (time < 6) { greeting = "it is too early! "; } else if (time < 20) { greeting = "good day! "; } else if (time < 10) { greeting = "good morning! "; } else { greeting = "good evening! "; } console. log(greeting);

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 22.06.2019 18:10, o10922025
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, nsjcbdhcb
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
Do you know the correct answer?
Something is wrong with the logic in the program above. for which values of time will the greeting "...

Questions in other subjects:

Konu
Computers and Technology, 03.02.2021 21:10
Konu
Mathematics, 03.02.2021 21:10