576 Topics
|
|
I need to create a MULTIPLICATION TABLE with a Start Number and End Number and How many times it should be multiplied. Any tips for the looping? Thank you! |
|
Hello! I am new in java and I have this code that will throw an exception if the numerator input is not an integer and will stop the loop process when the user input 'e' as its numerator. Thank you for your help in advance. package org.alibata.training.codes.exceptions; import java.util.InputMismatchException; import … |
|
OK, All I find all over the web is that this can't be done... What I am looking for is a functional alternative. I have a form that a client fills out with their information for a withdrawal When they finish filling out the form and submit it, I do … |
|
!USING PYTHON 3.1! Hello DaniWeb! Today I'm going to teach you a cool variable trick that I learned. So here's an example: [CODE] a, b, c = input('?x?x?: ').split('x') [/CODE] Now let's input something like: [CODE] >>> a, b, c = input('?x?x?: ').split('x') ?x?x?: 1x2x3 [/CODE] Now, variable 'a' is … |
|
My problem is this: I am trying to automate the download, parsing, and insertion of an excel file into a database. I have the parser and inserter done, but I can't seem to find a way to download the files automatically. The core of the issue is that the website … |
|
I am trying to pass a value from a hidden input using ajax but console says whatever im doing is not a function `Uncaught TypeError: "#name".val is not a function page.php:35` which is this line : `var name = ("#name").val();` html: <input type='hidden' value='$newname' id='name'> ajax: var name = ("#name").val(); … |
|
Hello guys! So I'm trying to create this online shopping system for a project. I was wondering if there is a way to gather user input piece by piece then consolidating them in an ArrayList? The first part I'm working on is the registration part. I'm planning to make the … |
|
Hi everyone, My program is crashing on taking input of alpha-numeric and store it in char[]. I don't know why, please anyone help ! sample input : C9H8O4MgOH #include <iostream> #include <string.h> using namespace std; bool hydroxide(char[]); int main() { char formula[] = ""; cout<<"Enter chemical formula : "; cin … |
|
I have one project named P2PTicTac. I have one file named layout.java. and one with CLient.java. I have made simple GridView in layout file with 9 buttons in 3*3 Grid. I have run two threads in client.java. One for reading the data from server and one for writing data to … |
|
Hi there I'm creating an invoice generator program, first the user must enter the number of products to diplay on a pdf file, below are my codes. My proble is, this if statement does not run as expected Private Sub Add_New_Order_Item_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load … |
|
Hi this is scorpionz I am uploading an excel sheet file using PHP Now the file code is working fine for gif files but not working if i provive xls extension Here is the php main code [code] <?php // include 'config.php' include 'uploadcode.php'; if(isset($_POST['upload_file'])) { $user_file = $_FILES["car_info_file"]["name"]; upload_files($_FILES["car_info_file"]["name"]); … |
|
Hi. I,ve got some very helpfull advice from various experts on here and have nearly finished my program but am having a problem with a do while loop. When i try to put a do while ( the input isn't numbers one to ten) loop on a certain part of … |
|
A strange phenomenon! What is this number 8! We are in the 2.7 version of Python. **MY CODE ** x = raw_input("write a list! utilisation of raw_input ") y = input("write a list! utilisation of input ") print x, "resultat of rawinputation" print y, "resultat of inputation" **My input and … |
|
Right so as the title says im trying to show the selected option from my radio type to be highlighted. I know this can be done with css as it is done [here](http://jsfiddle.net/hekh8/) however i can not implement it within this script. Any help would be very appreciated, thank you. … |
|
Hey guys! I am trying to map the following dictionary <int,List<T>>. I am trying to get the i-th permutation of an input array, the List<t> being the i-th perm itself. If I have: Input Array [1,2,3], the 0-th perm would be [1,2,3], the 1-st [1,3,2] and so on... So, so … |
|
too many new and intermediate users of C attempt to use the command [icode]fflush(stdin)[/icode] to "flush the input buffer". this is patently wrong. the rule is (and click if you don't believe me) : [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]NEVER [/URL][URL="http://answers.yahoo.com/question/index?qid=20071013052534AAuxWmW"]USE [/URL][URL="http://www.gidnetwork.com/b-57.html"]"FFLUSH()"[/URL] [URL="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html"]ON [/URL][URL="http://www.it.usyd.edu.au/~dasymond/mirror/c-faq/stdio/gets_flush2.html"]INPUT [/URL][URL="http://www.cplusplus.com/forum/general/6554/"]STREAMS [/URL][URL="http://c-faq.com/stdio/stdinflush.html"]SUCH [/URL][URL="http://gcc.gnu.org/ml/gcc-help/2009-01/msg00287.html"]AS [/URL][URL="http://www.dreamincode.net/forums/showtopic45833.htm"]"STDIN" [/URL] here is one method of properly … |
|
Hello, I was offer a project to record Loan of equipment using a keyboard wedge Barcode scanner to scan ID barcode from the Equipment, But i had a hard time control the textBox of the Form for the barcode input, the Input keep jumping away from the textbox that set … |
|
Hello, I am developing a system where in I want to use 2 USB Barcode Readers attached to a single PC. I want to capture input from both of the readers. When barcode is showed against a barcode reader, I want to store that value in a variable and then … |
|
Hi someone can tell me why 4th line isn't working ? $('span').on('click', function(){ var name=$(this).attr("class"); $(name).click(function(){ $("#chatwindow").toggle("#hide"); }); |
|
I have taken input of 5 images from user and showed it in photogallery now I want these images in list view too. How should I pass them in list view simultaneously. I tried the below code but it shows images in photogallery not in listview. Private Sub BrowseMultipleFilesButton_Click(ByVal sender … |
|
Hi, I'm new to Python - and new on here.... I've read lots of tutorials on Python and am currently in an intro to programming class using python, but I can't figure this out. I've searched stack overflow, dani web, java2s, github and many others but can't understand what I'm … |
|
I am trying to write a program that takes unlimited input of names using dynamic memory and stop when the first character is the enter key. i tried, but i am unable to do it. #include "ReadString" void main() { const int NumNames(20); char **pNames; pNames=new char [NumNames++]; for (i=more;i<NumNames;i++) … |
|
I have texts (Paragraphs) and I want to replace each of annotated wrong word in the paragraph with the correct word indicated by the position (index) number of the wrong word and i need to do it for each paragraph... So, what method should I use to search by index … |
|
Hello, I've been working on this chat program which has a gui. Basically for now im just pressing start then connect to get a connection. Start is for the server window and if you press connect that will be the client window. I can send messages from the client to … |
|
I'm new to Python, and as I was coding for Project Euler to develop my skills in this language, I needed a function for converting between two bases. I know that int() can convert anything to base 10, but before I looked for a Python module concerning this math, I … |
|
Hello I'm new to this and I'd love some help here ,could anyone show me how to check if input is string so it doesn't crash if I enter a let's say a number instead. and other improvements are welcome as well. A big piece of the code is below, … |
|
in windows calculator the digits get seperated in thousands as you type in the number , how can it be done in python ? thanks |
|
I am getting Mobile view 320x480 and also td by td. But in my desktop i am not getting space between label and textbox. I am applied col-xs-2 to label and textbox but in mobile view i am not getting. Please any body help me to get space between td … |
|
I'm trying to add additional security/validation to an online form that has AJAX backend. When I try to add a filter to remove spaces (such as trying trim or replace), the functionality breaks; no error, just no action in general. What's the best way to acheive this without breaking the … |
|
def main(): print ("-------------------------") print ("Program computes your BMI") print ("-------------------------") while weight == float(input("Enter weight in pounds: ")) while height == float(input("Enter height in inches: ")) if weight <= 0 or weight > 500: print ("Weight cannot be less than 0 or greater than 500") continue elif height <= … |
The End.