I have been instructed to make a basic credit card validator. However, I'm stuck at the part where all digits of the credit card number must individually add up to be divisible by ten. So for example, ...

So I made a spreadsheet that consists of dropdowns that have the text Fail, Completed and In Progress as the drop down fields. I'd like to know if there is a way I can take the data from the dropdowns ...

I have a table with several columns and I'm looking to create a function that will return the sum of all the entries in a particular column.
For debug purposes, I've simply set the return string to ...

So I'm working on this program where I need to use arrays, to record the sums of votes for a user inputed number of id's where they will vote for an option a,b,c or d. at the end I will print the sum ...

I am trying to create a retirement Calculator for my Financial Needs Analysis.
I am trying to create a calculation that will use the sum of a specific time period in a life time.
so to calculate the ...

I´m more or less new to python and trying to build an optimization model with gurobi.
My problem ist that i have a list of variables a[i][t][s] and need to sum the up for one of my constraints.
For ...

I am given a T and T numbers of n read as characters from a file from 0 to 10^100 and i need to calculate the last digit of the following sum: 1^1+2^2+3^3+..+n^n.
Can you help me solve it and explain ...

I'm creating a shopping cart simulation with a list of products as my inventory and a list used as the shopping cart which the user can scan items into. This, in theory, is to display the total cost ...

We have a list of integers like: [1,4,5,6,6,7,9].
The idea is to generate a list with the same length and sums up till the current element like: [1,5,10,16,22,29,38].
In the Java world it would look ...

I have two table: Orders, and ODetail. I want to create a table that shows the sum of sales of year 2012 grouped by year, quarter and productline (which is a case). Here is my SQL code:
SELECT * FROM ...

I have a select-query that is like this, that gives correct results:
SELECT SUM(value) AS "sum1" FROM table GROUP BY id1, id2
Now I want a second sum with another group by condition like this, that ...

I want to generate N random numbers drawn from a specif distribution (e.g uniform random) between [a,b] which sum to a constant C. I have tried a couple of solutions I could think of myself, and some ...

Suppose I have a list A = [[1,2,3],[4,5,6],[7]] and I want an output list of all the elements in each list combined together like [1,2,3,4,5,6,7]. I know that I should use A[0] + A[1] + A[3] but what ...

I am currently working on a Revenue maximization model in AMPL. One part of the General (!) Revenue Function is:
... + sum {e in E, a in A, z in Z}: (q[z]+u[z]*n[e,z,a])*n[e,z,a]
Now I want to solve ...

I just made an awful formula in excel, which is:
=SUM(A1*C1, A2*C2, A3*C3 ... ... A21*C21)
I was forced to type the 21 elements one by one manually and still have no idea on how to solve the problem ...