Questions tagged [user-input]

User Input is data that the user inputs into the program. It generally takes the form of a String, but may also be an integer, floating-point number, etc.

5580 questions
1
vote
1 answer

While loop not handling the exception

Here is the list from the selection of cities: city_choice = ["chicago","new york city","washington"] Within the while loop below I am trying to have the user input a city from the list with an exception handler to let user know that isn't a choice…
1
vote
1 answer

Write user input to a file and then read it

I have to recieve user input with this style: U word word2 word3 U word word2 word3 R word R word X I want to write it to a file and then read what was written but the program is in a endless loop, and the file is being created but its empty, it…
user7437907
1
vote
0 answers

Disable quick find (links only) on firefox inside a textarea / text input

I have some issue when entering text in my website with Firefox. If I type an apostrophe >'<, Firefox start its "Quick Find (Links Only)" feature. Normally it is disabled inside textarea or input text. But not in my case. Any idea on how to disable…
Laurent
  • 1,710
  • 4
  • 25
  • 46
1
vote
0 answers

How to read input from the terminal as you manipulate the stdout buffer

My problem is an extension of the problem listed here: Bash or Python, When print characters to terminal, how to CHANGE a character at a FIXED position? I would like to ask the user to annotate some information that I am going to display on the…
hi im Bacon
  • 374
  • 1
  • 12
1
vote
1 answer

Array won't output total of numbers

I am trying to allow the user to submit their test scores then get the total scores and the average score. I have a separate class called student to help simplify some tasks. This is the Student Class: public class Student { private String name; …
b w
  • 37
  • 2
  • 8
1
vote
0 answers

User input showing images - how to solve some of script problems?

I am creating a web application which has a role to write Egyptian hieroglyphs by converting user input into the text field to the specific code and displaying hieroglyphs which correspond to specific code. Currently available codes are from A1 to…
Boris J.
  • 113
  • 8
1
vote
2 answers

Java - auto generate current day + user input time

At the moment I got a class 'Flight' with Date datatypes; departure and arrival datetime. The adding of flights happens by user input. The day should be the current date automatically and the time is the user's choice. Which means a person only has…
MrEmper
  • 225
  • 1
  • 4
  • 18
1
vote
4 answers

Getting User Input and Adding it to an array at C#

I am trying to get input from user 5 times and add those values to marks array; Then, it will calculate the average and print positive or negative accordingly. However, I can not take input from the user it just prints "Enter 5 elements". After…
1
vote
2 answers

Reading a user input and splitting it into two float64 numbers

I have a function to read a single float64 from stdin: func readFloat() float64 { scanner := bufio.NewScanner(os.Stdin) for { scanner.Scan() in := scanner.Text() n, err := strconv.ParseFloat(in, 64) if err…
r_duck
  • 149
  • 6
1
vote
0 answers

How do I cache vectorized calls that take user input in R?

I am trying to calculate a field for all rows of a large dataset. The function to calculate it is from the package taxize, and uses an HTTP request to query an external site for the right ID number. It is searching by scientific name, and often…
choff
  • 31
  • 3
1
vote
3 answers

Get Html text input value into a Javascript function

I'm creating a countdown timer for a user selected time. For that I have developed following function. function countdownTimeStart(){ var countDownDate = new Date("Sep 5, 2018 15:37:25").getTime(); var x = setInterval(function() { // Get to…
Chathuri Fernando
  • 950
  • 3
  • 11
  • 22
1
vote
5 answers

checking user input for right value in C++

I have a requirment that accepts values from user input. It can be integers or strings. User input is accepted as below. string strArg; cout << "Enter price value " << endl; std::getline(std::cin, strArg); int input; std::stringstream(strArg) >>…
venkysmarty
  • 11,099
  • 25
  • 101
  • 184
1
vote
0 answers

2 subroutines in marie

I need a Marie file with 2 different subroutines operating. The first is printing a string that I enter into the code, and the second is printing a string that the user inputs 1 character at a time. I've got them both working separately, but when I…
user9673560
  • 11
  • 1
  • 4
1
vote
2 answers

JavaFX ListView select items from two lists

With one ListView, it is possible to select multiple items from it, with the line: listView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE); Then retrieve the items selected with: selectedItems = …
Ollie
  • 1,641
  • 1
  • 13
  • 31
1
vote
1 answer

Query a range in an Excel table linked to PowerApps Text Search box

First time asking a question here. As well as being pretty new to PowerApps as well. I am trying to use two text input boxes for the user to define the min & max of their number range. basically i want the code to return all results that fall in the…
1 2 3
99
100