576 Topics

Member Avatar for
Member Avatar for Dillary

(I'm new to programming in general) I created a program in python without an interface and part of it used a raw_input to get a users answer and compare with a stored answer. This was in a loop that limited the number of attempts the user could have. This worked …

Member Avatar for Dillary
0
407
Member Avatar for FALL3N

I know this is a basic question. I asked the same question a while ago, even then thinking it was a simple question. The answer I got seemed to be what I already know and was obvious.. however, when I tried it, it did not work, so I just worked …

Member Avatar for FALL3N
0
213
Member Avatar for llawlh

Here is my assignment due tonight, it is to create two boxes and first default box will show after user presses '1', and the argument '2' leads to a second box which will ask for user input of height, width, and length, then calculate the area and volume for it. …

Member Avatar for NormR1
0
454
Member Avatar for Que336

hi I'm having serious problems with this code. It all started when I tried to use functions. The function easy() works fine when the page loads but the button has stopped calling the check() function. could it be because I have that stored inside another function? I tried placing outside …

Member Avatar for Troy III
0
1K
Member Avatar for jakubee

Hello everyone, This is my first post in here :) Need a help with v. simple exercise. I need to ask user to input 10 objects of type Product (String name, Double price). I manage to done this. What i need to do now is to validate this inputs! I …

Member Avatar for DavidKroukamp
0
5K
Member Avatar for swissknife007

I am implementing a program where I want to store only certain part of the input string. for eg if the input string is 0123456789 I want to discard 4 AND 7 and store 01235689 Please my program requires an input string of 10000 characters so running time is very …

Member Avatar for mhd_arif123
0
201
Member Avatar for kolibrizas

1. I did try without trying to read output or trying to read only first line of the output - both of these were successful. 2. However when I try to display full output, it just gets stuck and does nothing. 3. Even more crazy stuff - when I close …

Member Avatar for kolibrizas
0
656
Member Avatar for DavidKroukamp

I have seen many people struggling with Reading files and writing files in java, also a great problem is how to edit a file too. So in this code snippet I have put all these problems into one small program in hopes to help others. So this code snippet will …

Member Avatar for DavidKroukamp
5
22K
Member Avatar for Nevicar

Hi everyone, I haven't really found much here on how to input into functions and I'm looking for more information on it. Basically my problem is this: I have to make a function that calculates feet into yards, and I'm trying to find out how to make it so I …

Member Avatar for frogboy77
0
224
Member Avatar for FUTURECompEng

Code attached in the attachment is not my own and was supplied by an instructor. I am to create a word morphing game. The computer will provide a starting word and an ending word. I am to enter a new word, that either adds or removes a letter from the …

Member Avatar for JamesCherrill
0
918
Member Avatar for woodenduck

I would like to create a notebook type application that will accept touch input and allow you to draw on the surface view. I'm unsure what I'm doing wrong since I have not programmed for the Android before. Here is what I have: [CODE]findViewById(R.id.pageSurface).setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, …

Member Avatar for woodenduck
0
374
Member Avatar for Zssffssz

I'm trying to write an echo like thing doing this : [CODE]> echo Muffins Muffinst > echo two muffins two muffins[/CODE] The problem Is that the program isn't being started from command line, The > is my programs input prompt (trying to write a very simple command line) How would …

Member Avatar for WaltP
0
256
Member Avatar for kolibrizas

I got a file downloaded named "Rybka v2.3.2a.mp.w32.exe". In GUI chess software you are able to add this as a chess engine, but I have no clue how the input/output of that engine works. As I understand the program sends the engine current position and the engine returns some output. …

Member Avatar for thines01
0
175
Member Avatar for timmy568

Hi guys, I was doing my project when i came across this error: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:686) at Screen.screenRunner(Screen.java:84) at Screen.main(Screen.java:90) I am also having problems getting my program to accept user input(height and width). [CODE]import java.util.Scanner; public class Screen { …

Member Avatar for timmy568
0
228
Member Avatar for twistercool

Hello guys. Just wanna know how you could add item to a vb 6 list box or combo box that is bind to a database? I.e. Ado oledb. Let say i have 1 text box wherein every time i input a data to it. It would be added to a …

Member Avatar for Jx_Man
0
157
Member Avatar for JavaPrograms

Alright, so basically I have this program going, it reads the text file perfectly, I also have some arrays created. Now I need it to store each team's rebounds, assists, and points separately. From there I need to get the mean, median, mode for each section (which will be completed …

Member Avatar for JamesCherrill
0
171
Member Avatar for boris90

Hi, this is my first post here, and I really need some help with my homework. I'm a newbie to Java programming, and I have this assignment: [I]Write an application which reads data from a file about certain items (one row - one item, stored are the integer valued code, …

Member Avatar for DavidKroukamp
0
275
Member Avatar for zurk91

I am starting to try and manipulate some CSV file data. My first problem is the empty values (empty cells in a spread sheet). My boss sends me these files and when I open the in csv format Python gives me: "Denison, P14, , , , , $1600" I can't …

Member Avatar for valorien
0
213
Member Avatar for kamyarn

Hi I want to read a string (Last name) from keyboard, concatenate it to another string (First Name) and then print it on screen. (Windows, EMU8086, EXE Template) First I declare the variables in data segment [CODE] msg1 db 0ah,0dh,"Enter your last name: $" ;prompt message msg2 db "Kamiar " …

Member Avatar for kamyarn
0
6K
Member Avatar for mrjeck2008

I need my program to take user input look throught the text file that is being read and find the the text and print back the corresponding text. In the text file I have a list of java compile time errors and their sample code separated by a colon. For …

Member Avatar for NormR1
0
560
Member Avatar for AdampskiB

In my code they're instructed to enter a width and height. However obviously these will be intergers, but I need to perform checks that they are intergers before they're used. Atm I've got this: [CODE] while True: if width.isdigit() == True and height.isdigit() == True: if width >= 2 and …

Member Avatar for TrustyTony
0
195
Member Avatar for AndresOend

Hi there, I'm writing my first Python script for a(n imperative) programming class at university, and I want to make it a little better. It's meant to be fairly short, 50 lines. I've written the basic 'mechanism' to look at the user input. Instead of simply printing every property of …

Member Avatar for AndresOend
0
40K
Member Avatar for v3ga

I just started on SPOJ. It tests by redirecting standard input and output to files. Is there a way to do that directly from the terminal instead of modifying the program.

Member Avatar for v3ga
0
210
Member Avatar for umair jameel

public class First { public static void main(String[] args) { int a; a=EasyIn.getInt(); System.out.println(" the value of a " +a); }} // this code is showing an error of " easy In " not finding symble. // help me

Member Avatar for NormR1
0
800
Member Avatar for FALL3N

I'm sure this has an easy answer, but I don't know it. so I have a widget that will let you get alerts texted to a phone. I am trying to store the info, but I can't get the user's input into my javascript function shown below: [CODE]onClick="collect('info', 'nname=' + …

Member Avatar for niranga
0
190
Member Avatar for imsinu

if i hav to input time of clock as formatted style(HH:MM:SEC) using cin how can i write its code???? a question from @robert lafore(sams publication) . hope to get a best answer soon :)

Member Avatar for imsinu
0
179
Member Avatar for lmytilin

Hello guys! I have to create a program that prints the last 10 lines of a text or all of it if the number of the lines is <=10. The input will be a file that is unknown to me. This is what I've done so far. [CODE] #include <iostream> …

Member Avatar for WaltP
0
581
Member Avatar for matt1117

Ok so i have this work for my java class done so far. And i cannot figure out how to get the different letters from an inputted word to output as a number. The assignment is get a user to input a 7 letter word and output it as a …

Member Avatar for StephNicolaou
0
3K
Member Avatar for brandonpturner

Alright, let me start by saying that I know zero PHP or SQL code, myself. I have a SQL guy creating tables, and I've been using what I've found on W3C Schools. So far it's been ok, but I have a problem I need solved. I have created an HTML …

Member Avatar for brandonpturner
0
934
Member Avatar for yazz110

I would like to know how you can input information from one array to another. For example String A[] A[0]= 2, 54, 6, 7 A[1]= 434, 32, 45 A[2]= 34, 45 A[3]= 20 Where all that are in "A" are actually seen as strings, and you want to input this …

Member Avatar for NormR1
0
236

The End.