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 22:00, noeminm105
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag. e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
image
Computers and Technology, 24.06.2019 11:30, AnwarWeirdLol8811
Why is body language an important factor in a business meeting
Answers: 1
image
Computers and Technology, 25.06.2019 02:00, lovemykay2355
Software and services are used to conceive, plan, and execute projects in any field. these tools are excellent methods of increasing the probability of successful projects. open source linux project management mind-mapping
Answers: 2
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
Chemistry, 22.04.2020 19:15
Konu
Mathematics, 22.04.2020 19:15
Konu
Mathematics, 22.04.2020 19:15
Konu
Mathematics, 22.04.2020 19:15