Member Avatar
Hello! I am looking for some assistance with adding code to my program for handling non numeric data/user input, specifically letters. The program is coded in java. import java.util.*; public class AnArray { public static void main (String [] args) { // creates an array of interegers between 0 and …
by rhaylee in Programming ()
Member Avatar
I'm creating a program that allows you to do a whole ton of stuff, basically just built to make my life a little easier on my pc. However, the idea I had was that I could have a form of 'settings bar' where I could edit the settings (duh) of …
by Nether_1 in Programming ()
Member Avatar
Option explicit Dim WshShell Set WshShell = CreateObject("Wscript.Shell") WshShell.Run "Batch_operation.bat" wshshell.XXXX "y" wshshell.XXXX "{ENTER}" What should I put in the "XXXX" to make the program enter "Y" and then move down a line ("{ENTER}")
by Noobinator in Software Development ()
Member Avatar
Hey guys, I would like some help regarding saving or reading to or from a bin file. I've read several online tutorials about file input/output, however it doesn't given specific information when applying it to both an array of structures. My knowledge of pointers is weak, as I constantly need …
by john10 in Software Development ()
Member Avatar
I want to use Tkinter funtion to create a a temperature calculator. I have all the code for the calculator, however using Tkinter function i cant figure out how to get the variable input by the users. I am new to python and programming, just started programming less then a …
by sabbib -4 in Software Development ()
Member Avatar
I want from program that it force the user to input valid value.When ever user enter caharcter in integer valriable it force the user to input the right value.But this does not work.If user input invalid value it start looping. #include <iostream> using namespace std; int main() { int x; …
by mabdullah4 -3 in Programming ()
Member Avatar
this is my code $line = trim(fgets(STDIN)); echo $line; what browser shows: Warning: fgets() expects parameter 1 to be resource, string given in /storage/emulated/0/coding/mobilephp
by ankit_21 in Web Development ()
Member Avatar
Hi Iam a student , nd i have a home work Can any one help me !! Plz Write an asm 8086 language program that take 2 strings as input and computes the string distance between the 2 ,,, the string distance between 2 string os the sum of the …
by Kinda_1 in Programming ()
Member Avatar
A program that will create a movie seat reservation. The program will display the summary seats and its status. The user will be ask what seat no. to be reserved, then it will go back again to the summary to display the updated seat status. If the seat no. is …
by missyElle8 in Software Development ()
Member Avatar
Can anyone tell me what is wrong with this? App crashes if user input is left blank. I was hoping it would display toast and wait for input. EditText userWireInput = (EditText) findViewById(R.id.WireSizeInputET); String userWireData = userWireInput.getText().toString(); double userWire = Double.parseDouble(userWireData); if (userWire == 0) { Toast.makeText(ISOM_Int_Results.this, "ENTER WIRE SIZE", …
by Centorpe in Mobile Development ()
Member Avatar
Sometimes you only want to enter numeric data in a textbox. You have two options here : Let a user type whatever he/she wants into a textbox, validate the input and show him or her an annoying message that he/she has done something wrong.:angry: Or: capture the key before input, …
by ddanbe 2,429 in Software Development ()
Member Avatar
Good Day Everyone please I am writing a Check In and Check Out program to display the date increase in day/month/year whenever I input a number. Eg. suppose I type 2days on the Check In Form I want the Check Out Form to display the days difference from the current …
by Nawti in Software Development ()
Member Avatar
how to comute the total value I input in textbox then after that I will going to add another value and the total of both sum will display in textbox for example num1 = Val(btn.Price) * num2 = Val(btn.Quantity) then total amount display the value of num1 is 60 then …
by Angelito_1 in Programming ()
Member Avatar
hey guys just wanna ask how to display an image or call the values of the table. but i will input the values to the server im using Xampp as my localhost. i have my admin page yet. but i just wanna know how. thank you. :)
by chris21 in Web Development ()
Member Avatar
I have to create a program that accepts the number of tile as input from the keyboard, and returns the number of tiles to the main method. It has to accept the number of tiles and calculates the cost of each tiles. The method has to return the cost to …
by Kennedy_3 in Programming ()
Member Avatar
=client reads line from standard input (inFromUser stream) , sends to server via socket (outToServer stream) =server reads line from socket =server converts line to uppercase, sends back to client =client reads, prints modified line from socket (inFromServer stream) i just want to know how the code for server and …
by rafia t in Software Development ()
Member Avatar
Hello! What can be done with send input, native methods, DoKeyBoard? Please give me a full code of native method, dokeyboard,blockinput, sendinput. I want to know this because i want to send strings to other app from vb.net with keypress(suppose pressed key"a", and send an unicode char) and i have …
by Simple man in Software Development ()
Member Avatar
Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. Could someone point out what are logic errors in the following …
by negru in Programming ()
Member Avatar
Hello to all! I want to make my netbeans project executable and portable. i write a program which connects to Ms access database and execute an Insert Query. My program is running successfully. Now I want to made executeable of this project and want to run this executable on another …
by Saboor Siddique -3 in Software Development ()
Member Avatar
How can I get the values in the textbox using the primary key as an input? example I enter the Account no and the Name,address will be displayed in the textboxes
by MangJuan in Databases ()
Member Avatar
Enter a string: [I]house[/I] (a)esuoH (b)ESUOH (c)esuoh (d)EhuoS (Last and 2nd letter changed positions) - I'm done with (b) and (c), and I don't know how to execute the remaining 2. Any suggestions? Here's my code: [code=cplusplus] #include <iostream> #include <string> #include <locale> using namespace std; int main () { …
by violet101 in Software Development ()
Member Avatar
Hi...Just received a refurbished HP Computer desktop and when I plugged in the monitor HP Pavilion F70 it flashes up on the screen video input ... Do I need to change the resolutions? if so, how ? and what is recommended? it is a 17 inch HP screen monitor. Thanks …
by kga4hire in Hardware and Software ()
Member Avatar
I need to enable a disabled text box through php.Please inform me about the errors in the following code: [CODE] <input type= "text" name ="ch1" disabled = "true" <? if ( $_GET["e"] == 3 ) echo "disabled = 'false' "; ?> /> [/CODE]
by marjan_m 11 in Web Development ()
Member Avatar
Well if you were like me and Python is your first language. You are trying to learn programming and many people suggested that learn Python as a first language. You take their advice, your download Python and get all set up. Maybe you take a tutorial or two in order …
by inkcoder in Software Development ()
Member Avatar
Hi everyone, I have registered a rotary encoder in /dev/input/event0 and i try to test it with evtest. This is the output of the test: Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0 Input device name: "rotary.4" Supported events: Event type 0 …
by zampi91 in Software Development ()
Member Avatar
Hi all,my question is i have a form: ![form.jpg](/attachments/large/4/b93dd71ea1dd4f7611edc5ff89832a8f.jpg "align-center") And database: ![database.png](/attachments/large/4/498755bd870d504cf718682b0626d69e.png "align-center") how would i exreact data entered in the form field from database and display in seperate table? ![table.png](/attachments/large/4/8d3074983efeb9799c5474c8e9172afd.png "align-center")
by LibraryCode in Web Development ()
Member Avatar
Hello, this is a very strange problem. I had first put this discussion in the Linux and Unix thread, since I believe it is actually a problem with how the data is entered via but the vi editor, but I closed those out and will put it in the C …
by JohnMcPherson in Software Development ()
Member Avatar
input 5 numbers and print in ascending order in c++
by mrismich -4 in Software Development ()
Member Avatar
The code below ensures that my entry is only numeric with 2 decimal. <input type="text" maxlength="10" name="numPrice" value="1.00"> $("input[name='numPrice']").keyup(function(){ if(!(/^\d+(\.{0,1}\d{0,2})?$/.test(this.value)) ){ this.value = this.value.substring(0, this.value.length - 1); } return this; }); However values such as 1&.0 is not rejected by the code above. Did I miss something?
by solomon_13000 14 in Web Development ()
Member Avatar
Hi, I'm wondering what could cause this type of runtime error: My program basically reads data from different kinds of data files, either a minute data file or a 5 minute data file and then does some analysis. When I run the program on the 1 min data, no problem. …
by toneranger in Software Development ()