Create a function that prompts user for a number. Develop the program so that it continues to prompt until it receives valid information. Then create a multiplication table that displays the number multiplied by 1 through prompted number.
I am trying to set up a simple web page that requests two inputs and upon these input, determines and angle (basically taking a Spur Gear Pitch � and threads pitch to get a cam angle). Here is what I have but it is not working. I actually want it to work onClick of a button but I can deal with that later. I just am not sure how to get this to work properly.
I have this script that is supposed to check if a number the user guesses is the same as the randomly generated number.Problem is that the random number generated at the start of the program keeps on changing everytime I click on the "Check if I'm right" button, the random number gets generated again and I never ever get to reach the correct answer
HTML CODE <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
working on building a website at the moment. and i need to create a script that will increment a number by 0.01, then stop and decrease by 0.03, then increase again by one. I wrote code to increment by 0.01 continuouly but now i can't stop it. and change to decreasing
How would I go about creating a random number between 1-50 that COULD include whole numbers, decimals to the tenth, hundredth and the thousandth place? Ex) 2.145, 3, 5.8, 41.002, 10.12, 7, 18.023, 33.2
Also, if the only way to do it is to put trailing zeros to the thousandth place that's fine as well Ex) 2.145, 3.00, 5.800, 41.002, 10.120, 7.00, 18.023, 33.200
I am trying to put up a page for my students for them to be able to enter their class number into a field and instantly get a personalized text message. (ie student number 5 enters "5" and gets a message like "Congratulations on your homerun in Kickball Bobby!"
I have a character countdown that tell you how many characters you have type in the text area. But I am having a problem, I can't see to show a text or the number the character the user when I load the page. I want it to show Characters Type: 0 when you load the page, and not having to press a key to show it, here is the code I am using...
I have a form that collects information about up to 5 items. I would like the user to be able to select from a drop down menu how many items for which they want to compare information, and then have the form change the number of input fields accordingly.
In other words, if the user selects enter info for 3 items, then input fields for only 3 items are shown, if they change it to 4 items, then a fourth column shows up in the table with the appropriate input fields.
I'm having to write a program that generates a random number between 1-1000 and then allows the user to make guesses in a text box, answering to high or to low, until the correct answer is entered. I had the program working fine with using strictly prompts and alerts but when I tried to create a form I started having trouble.
<?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>9.30</title> [Code]...