I recently made a java program (multiple classes) which requires user inputs (multiple classes), however I am not sure how to either A) turn it into javascript so that I can put it on a website, or B) add the java file itself to a webpage.
I am writing a program that will take user input and convert the 8 digits the user enters (the 0's and 1's) and converts them into an integer between 0 and 255. It is a very simple program but I am still having some errors :
import javax.swing.*; public class BinaryToInteger { static String userInput = JOptionPane.showInputDialog("Enter a binary number with 8 integers to convert.");//Dialog Box that asks for user input static int binaryValue = Integer.parseInt(userInput);//Parses the user's input into an integer [Code]...
I would like to create a program which converts some letters into different ones.
1) I want 2 text areas (input and output) + "convert" button
2) if I type in the input area the letters "ea" I would like it to be converted into "a", so that If I type "cambrea" and press "submit" the output text will have "cambra".
3) if I type "e " which is (e+space) I want it to be converted into " " which is "space" example: if I type the word "spine " it should be converted into "spin , note that there is a space after "spin ".
4) If I type any vowel before "o" it should render "o", example: gambuo becomes gambo. would this be possible? I'm not very familiar with Javascript even though I can modify it.
I have an assignment to create a program in JS but I have not read JS much more. So, for this assignment, can anyone help me to solve this assignment? Check attachment. [URL]
I'm trying to write a Tic-Tac-Toe program in JavaScript. I have an array containing the state of the grid. For some reason when I update the "O" for the computer's move, it doesn't show this in the updated grid. I don't understand why.[URL].. I'm brand new to JavaScript, and sometimes I accidentally use syntax from C++ or PHP when writing, so it could be something as simple as that. I just can't figure it out.
I have the source code to an old BASIC program that a friend of mine would like to run online. I am a beginner at JS, but I think that it would be a good choice for the project. My background is in C/C++ and web development.
Any suggestions that might get me off to a good start here? I can provide more information if needed, but I am not sure what would be helpful. The program is 550 lines in what appears to be BASIC and is a calendar conversion program. You give it a date and it will convert it into one of many other date reckoning systems (Gregorian, Hebrew, Egyptian, etc, etc).
import javax.swing.JOptionPane; class TriangleArea { public static void main(String[] args)
[Code]....
I am trying to create a program that will run and repeat asking user for another input. The program is work but i cannot get the while loop or to ask user to enter another input to work.
I want a person to enter a string value in a javascript program.Example: Choose Rock, Paper, Scissors.Person: Rock.What is the code for a program to take in strings? Like parseInt andd parseFloat are for numbers. What is it for strings?
I want to make a banner with size : 425*60 leaderboard.but i don't know to create the banner with Javascript and bring all client side data such as : traffic,impression and ip address to my PHP server side processing page and then update entire data to my database.
this is the sample script for CPM/CPC program banner :
I have a problem with my perl program - it is not able to display the output of vowel count and word repetition count from a text file. The whole Perl program is supposed to read a paragraph of text and calculate followings based on the text:
1. number of empty spaces. 2. number of words in the text. 3. number of vowels in the text (a,e,i,o,u) 4. number of words with repetition in the text
Example output:- No. of empty spaces: XX No. of words : XX No. of vowels - a:: XX e: XX I: XX o: XX u: XX Words with repetition- Word 1 : XX Word 2 : XX ..... .... ..... ....
I'm trying to set up a password field in a program used for website design called Web Easy Professional. The good thing is I can write specifically what I need for the field. The bad thing is I don't know how. I'm not a genius, and have little scripting experience, but I pick up it up easily. Is there a javascript that's best to use for password fields?
When I input my email address on this website, it provides a drop down box with two of my email addresses. The right bottom corner has a few 45 degree lines to indicate the user can change its size. Do you know how to create it? I could not find the code in the source.
I am trying to use javascript just to make a gui for a program written in C++. I am having trouble finding any information on how to input data obtained from a user in the javascript application into the C++ program if it is even possible.
I just started to learn jQuery. I downloaded the book "Learning jQuery, 3rd edition" and tried the very first program. My program consist of just HTML page, a CSS file and javascript file. I made a folder MyFirstJQueryPage and put all my files inside it.I also downloaded the jQuery file named "jquery-1.6.4.min" and renamed it to jquery and put it in the folder where my all files are present.
[Code]...
Now please tell me that what i am doing wrong in my program. Why the code in the external javascript file isn't working.
I'm making a dice program, that randomly draws x amount of times for x sided die. I decided to add on a "history" feature to this program--displaying the previous rolls (unlimited I imagine) and to show the math that comes from that equation. Everything works perfect except for the history function.
I've got a div area sectioned off with the id divhistory. At the end of the dice rolling program it calls function fhistory(z). Where z is the string that displays the random rolls and total (1 + 3 + 2 = 6).
Heres the code I've been fusing over. I imagine it's horribly off--but I'm also terrible with arrays it seems...
I almost got part of this one program to work. It is of a golf sign with a golf ball moving across and landing in the word Golf into the "o" When the ball lands in the o the sign of "your online source of golf equipment" appears after ball has landed and grows in size.
right now the ball is what I have but I can not get my sign to appear.
I use 2 external files
I will post all the coding here
here is my main file I worked on
this is my golfpage.htm file
<html> <head> <!-- New Perspectives on JavaScript
[Code]....
What i am not able to get work i think is to call the changeFontSize() function to increase the size of the "sign"
also an if statement to test value of fs variable is less then equal to 20
I need to find all the dates between two given dates. For e.g dates between, 02/03/09 and 02/15/09 format is in mm/dd/yy. I need java script program for this.
When I try to run this program it does not run, their are no errors. The "ComputerProgrammingRockPaperScissors" class. import hsa.*; import java.util.Random; public class ComputerProgrammingRockPaperScissors { public static void main (String[] args) { int Computer = 0, Player = 0, tie = 0, compic, pscore; String str = "Y"; Random generate = new Random (); while (str == "Y") ; .....