Questions tagged [multiple-value]
172 questions
0
votes
1 answer
Get multiple value onchange from multiple input Javascript
I'm trying to get every value from the charge field according to type payment. When both price and pay have a value, the charge input field will be filled by pay - price, and the total amount field will be filled when the type payment option was…

Tom-Cat
- 73
- 1
- 7
0
votes
0 answers
Returning multiple values in a Java function of int data type
Is there any way we can return multiple values in a java function of int data type?
Let me share a code snippet of Maximum of all subarrays of size k
Sample Input 0
9
3
1 2 3 1 4 5 2 3 6
Sample Output 0
[3, 3, 4, 5, 5, 5, 6] // Can we get this…

The Programmer
- 11
- 8
0
votes
0 answers
How to split the multiple values assigned to a single key of properties file in shell script?
Ex:- service=cotp,botp,potp
The above value of service is located in a properties file, If I search for the key in the ".sh" file, the values of the 'service' key the values should be printed separately.
Ex:- cotp
botp
potp
I tried to split the…

Mr Anon
- 1
0
votes
2 answers
Multiple if conditions with 'more than' and 'less than' values
How do we write these statements and their respective values below using the IF() conditions?
If 0 to equal or less than 8, $0.00
If 9 to equal or less than 18, $10.00
If 19 to equal or less than - 37, $20.00
If 38 to equal or less than - 51,…

Suffian Samsuddin
- 51
- 8
0
votes
1 answer
Input dictionary key to have value be checked somewhere else
I've got another question. You guys have been super helpful.
So I created a dictionary between NFL team names and their codes. The dictionary looks like this:
team_code = []
franchise_list = []
for row in NFL_teams:
franchise =…

Rafi Broer
- 1
- 2
0
votes
3 answers
How can I return multiple values from a function?
I'm stuck with functions...
I want to make a function that greets all the names I have in a list in 3 different ways: Good morning, Good afternoon and Good night.
I was able to reach the code below, but I'm not conffident that is the best way and in…

DR8
- 127
- 5
0
votes
2 answers
Jmeter combine Json extractor variables to pass into request
There's a certain web request which has the following response:
{
"data": {
"articles": [
{
"id": "1355",
"slug": "smart-device-connectivity's-impact-on-homes-workplaces",
"title": "Smart device…

Varun Bali
- 133
- 1
- 2
- 17
0
votes
2 answers
Excel - Analyzing / Counting the comma separated values in cells
Here's an Excel sheet, where we track Demand of Products across the countries [Sheet/Table name: Data]
Country
Products
India
A
Australia
A,B
Brazil
B, C
This Data will be used to understand the demand of the products across the…

Gagan
- 49
- 6
0
votes
0 answers
How to update a value to a appropriate place if the dictionary has single key multiple values?
I have a CSV file with header task;a1_data;a2_data;a3_data. I have considered task as key and rest of the columns as values. a1,a2,a3 are variables here. When the input value is a1 it should update the column 'a1_data', when its is a2 it should…

Anoosha
- 1
- 1
0
votes
2 answers
Insert unique random number with recursive MySQL
I want to populate a table with unique random numbers without using a procedure.
I've tried using this reply to do it but not success.
What I'm trying to do is something like this but validating that numbers are not repeated:
INSERT into table…

FdelS
- 90
- 1
- 5
0
votes
2 answers
How to consume only the first returned value in Scheme?
Given a Scheme function returning multiple values, for example:
(exact-integer-sqrt 5) ⇒ 2 1
How can I use only the first returned value, ignoring the other ones?

Danilo Piazzalunga
- 7,590
- 5
- 49
- 75
0
votes
1 answer
Easy method to solve multiplication of many numbers followed by division
Please help for easy method to solve longish multiplications and division equation.
Example like (667 x 6 x 74) / (384 x 384)
Many Thanks in advance

vts
- 7
- 3
0
votes
1 answer
Input line that accepts one and two variables without breaking?
I'm trying to create a "Inventory system" as a beginner proyect. I have a dictionary with string keys and integers values, and I want the program to ask the user what materials he wants to take, and how much of it. That question takes from the…

SantiClaw
- 7
- 2
0
votes
1 answer
Lookup and return another cell value with a gap of cell in between
I am basically stuck in this VBA as I did not know how to lookup 2 cells and return with another cell value. It might be solve with reading project name to lookup first and then reading the week number to match and return the phase in grey area, but…

Zaid Harith
- 3
- 1
0
votes
2 answers
Returning multiple values in JS
I was just tweaking some code in JS and ended up writing the below code.
const adding=(a,b,c,d)=> {
return(a+b, c+d)
}
let sum1, sum2 = adding(1,2,3,4)
console.log(sum1)
console.log(sum2)
The output was
Undefined
7
And when I changed the…

LoneWolf
- 119
- 1
- 11