Wednesday, February 11, 2015

Week 31( January 12-16) Count it down!

Hi guys I am so back !!! :D

Sorry for the late updates so let me make up to you by giving some info's about what we did this week.

Last week was the start of JS4 quiz exercises. This was the continuation of that. Well for my side I didn't get any points in some of the activities that our teacher gave to us, so we have to wait for the codes and type it in the computer. Well our exercise is more on while loops.

I will show you some screen captures of my classmate. It's credits to her, visit her blog if you must :D
--> http://winnvill.blogspot.com/

Exercise 2

This is our guide for exercise 2














This is the finished one.

There are no codes sorry.












Exercise 3 :D


A prompt box will appear at the very start of this activity. The box asked you to enter a value to its corresponding question. "What is the current hour?" If you put a value more than 5 and less than 10, an alert box "Breakfast is Served!" will appear.














This activity uses 24-hours-format. Use 13, 14 and etc. If you put a value of more than 10 and less than 14, an alert box  "Time for lunch!" will appear.


 If you put a value more than 16 and less than 21, an alert box "It's dinner time!" will appear.


 If you put a value more than 0 and less than 6, an alert box "Sorry, you'll have to wait or get a snack!" will appear. The alert box will also appear if you put a value more than 9 and less than 11, more than 13 and less than 17. In short, this alert box will appear if you put 1, 2, 3, 4, 5, 10, 14, 15, 16, 21, 22, 23 and 24 as a value.

The prompt box will stop appearing  if you will canceled it or put a value less than 1 and more than 24.













Exercise 4 Here we are

 This activity will start with a prompt box asking "Who developed JavaScript?"













And if you put "netscape". There will be an alert box appearing saying "netscape is correct"
 But if you entered the wrong answer it will be asking again and again non stop until you give the correct answer. But if you entered the wrong answer it will give an alert box saying wrong and asking again. You can't end the program if you don't give the correct answer.


Here is the code for this activity.



So I am gonna say goodbye that is for the whole week of activities . :D



No comments:

Post a Comment