Questions tagged [user-defined]

253 questions
-1
votes
2 answers

Using a Function in a Select Query to Store the results on an Excel Worksheet

I have used Excel and MS Access for many years but only now have I encountered this problem: I have a SELECT statement, where one of the fields is an alias that uses a User-Defined function to compute the ceiling of a field-value. Problem is that…
-1
votes
2 answers

write a function that has 1 argument, that returns two columns oftof sorted integers

write the function oddEven(num) that has 1 argument, num, a positive integer no greater than 100. This function returns two columns, one of positive integers, and one for negative integers I'm not sure what to do past the last line of code to get…
-1
votes
2 answers

Adding to an array declared by user throwing error

When I call the addBorrower method an error is thrown: java.lang.NullPointerException at Membership.addBorrower(Membership.java:24) sorry if this is a really stupid question, I'm just really stuck with it, I've looked everywhere for a solution…
-1
votes
2 answers

defining variable names with integer values defined by user in python

I am currently trying to write a simple program to calculate probabilities of possible combinations with dice of different sizes (e.g. : 6, 12, 4, 20). The problem i have is that it is supposed to be user friendly and work with ever int value the…
-1
votes
1 answer

Customer Dictionary Index

I have a class named ClusterMember as: public class ClusterMember { public string _name; public ClusterMember(string _name) { this._name = _name; } public string _Name { get…
maliks
  • 1,102
  • 3
  • 18
  • 42
-1
votes
1 answer

Fortran: user defined integer in file name of "open" statement

I want to open a file in fortran with file name "controlinputs.12.dat" and then write into that file. The digit "12" is user defined variable whose value is stored in another variable "k". I have tried following and…
Syed Moez
  • 129
  • 15
-1
votes
1 answer

MYSQL left join if then statement favorite table procedure

i have 2 tables here is table 1 table name is forexample itemlist +-----+----------+-----+ | uid | username | age | +-----+----------+-----+ | 1 | doe | 17 | | 2 | smith | 18 | | 3 | john | 30 | …
-1
votes
1 answer

Perl - Error : Cant locate file in @INC

As I am Novice to Perl, I would be happy if you are able to solve my problem. I created a Module named "Messages.pm" and it resides in the path "E:\Venkadachalam\Perl_samples\Modules\Messages.pm" Also I included this module in another Perl file…
Venki
  • 31
  • 1
  • 4
-2
votes
2 answers

issue with user defined methods executing

Code no longer runs as I can't figure out how to get the scanner to run, but how do I get the methods to execute? Tips and help is appreciated. Thanks in advance. For clarification, I want this code to run like a geometry calculator, however I do…
Gianna Caruso
  • 113
  • 2
  • 3
  • 14
-3
votes
1 answer

Pandas data frame (df) groupby with user defined function that uses df row and column

I have created a dataframe (df) which stores below information, HS1 is the index. HS1 HS2 EffNotional_UnMG EUR 3 -10082.91381 USD 2 -36253.84938 USD 3 78693.86806 Now I want to apply two ierations on this dataframe: outer by HS1 and the inner…
RKG
  • 3
  • 3
-3
votes
1 answer

User-defined type in haskell

Can I define a data type named HundredBytes in Haskell such that a value of TwoBytes will always have 100 bytes? Thanks!
user962815
  • 155
  • 1
  • 5
-3
votes
1 answer

parser for extracting time from user defined date time string

I am planning to write a module in C under Linux environment to read time from user defined date and time string. The user may enter time as shown below ( not limited to ). He may skip date and enter only time as well. DD/MM/YY HH-MI-SS DD/MM/YYYY…
Soumajit
  • 95
  • 1
  • 8
-6
votes
2 answers

C++ User defined sequence integers without using arrays

I'm trying to figure this one out on my own and I can't. The professor is asking for this. User will define the length of the sequence. User will then enter numbers from any range being both neg and pos. The program: Find the two largest numbers and…
learning
  • 1
  • 1
1 2 3
16
17