Questions tagged as 'funciones'

5
answers

Function of 2 variables of different data types how to solve it?

We have the student table with the following fields: doc_est int(30) nom_est varchar(30) ape_est varchar(30) edad_est int(11) They ask us to perform the following function: • Show the name and age of the youngest student. I have...
asked by 20.02.2017 / 21:32
1
answer

Problem with operations of elements in an array

I have a problem trying to show the result of the division of the elements of each row of a two-dimensional array. What you plan to do is: Divide the first element of the row of a two-dimensional array between the second element of the row, a...
asked by 21.12.2016 / 21:20
1
answer

Calculator does not give solutions

the program performs basic arithmetic operations (addition, subtraction, multiplication ...) and calculates functions sin, cos, Ln (neperian logarithm.) the calculator must be able to validate grouping signs in order to calculate complex express...
asked by 09.11.2016 / 06:36
1
answer

dictionaries in dictionary, Python 3

I have a dictionary with lists: d1 = { 'Carlos': { 'manzanas': ['12', 'verdes', '7', 'rojas', '5'], 'uvas': ['8', 'negras', '5', 'verdes', '3'] }, 'Juan': { 'manzanas': ['7', 'verdes', '5', 'rojas', '2'], 'uvas':...
asked by 24.10.2018 / 01:00
4
answers

algorithm in python, list with 100 numbers without repeating and get the sum of odd and even

They ask me the following:    Perform an algorithm that generates 100 random numbers from 1 to 200.   The system must save these random numbers in a range of 100   positions, in this arrangement you should not repeat any number generated.   A...
asked by 14.10.2017 / 16:47
1
answer

how to multiply a string by the times a variable in Swift tells me

Hello, what happens is that I do not understand how to multiply a string by the number of times a variable tells me and store it in a function, I explain 6 is the number of times it has to be repeated and a! It is the string as I do so that it s...
asked by 02.06.2018 / 20:35
1
answer

How can I get the percentage value and also perform the calculation?

//Creo una función donde voy a sumar todos los valores totales de la última columna var sumaTotalesDetalleGastoGeneral = function(){ //Inicializo en 0 el valor a establecer indicando el resultado de la sumatoria var totales = 0; //Recorro todas...
asked by 06.10.2017 / 16:33
2
answers

Help with the SUMA function in Haskell ghci

Use ghci in notepad ++ I have the following function: suma :: (Integer, Integer) -> (Integer) suma (x,y) = x + y Running this on the console: *Main> suma (3,5) I get the following error: <interactive>:6:1: error: *...
asked by 31.10.2017 / 00:04