Question: Add a second button to your double.html page from Exercise 5.19. Each time this new button is clicked, the value in the text box named
Add a second button to your double.html page from Exercise 5.19. Each time this new button is clicked, the value in the text box named number-Box should be halved. For example, if the box contains the number 1,024, clicking the button should reduce the number to 512.
If you start with a value of 1,024 in the text box, how many times must you click the halving button before the displayed value is reduced to 1? How many times if you start with 2,048?
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
1024 is reduc... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1409-C-S-O-S(954).docx
120 KBs Word File
