Questions tagged as 'algoritmo'

1
answer

Calculate and display the Array in C (dev c ++)

I have to do this:    Make a program that loads a 12x4 array with the values of the   store, where each row represents one month of the year and each row   column represents a week of the month. Calculate and show;       the total sold in...
asked by 26.10.2018 / 22:21
2
answers

Algorithm that checks if the sum of any two items in a sorted array equals a number producing erroneous results

This pairSum algorithm must find whether the sum of any two items in a sorted arr array is equal to a given target number: function pairSum(arr, target){ for (var i=0; i<arr.length;){ for (var j = arr.length-1; j>i;){...
asked by 18.07.2015 / 23:35
2
answers

Java Help: Arrays

Exercise:    Make two lists of names in the form of arrays, compare how many names in List 1 are in List 2, and then calculate their percentage of the total percentage of people in List 2 Here is the code I've already done: import java....
asked by 10.07.2016 / 03:53
1
answer

Major sorting algorithms? [closed]

What are the major sorting algorithms? If possible with examples in the C language. I do not know when to use one or the other.     
asked by 14.03.2016 / 22:28
1
answer

Temperature control algorithm [closed]

I am a student of computer engineering and I am working on a PCR thermocycler. I need to have a certain temperature needed to be able to perform all the steps in the process, and I'm having some problems with that. Me and my team are using si...
asked by 30.05.2014 / 17:12
2
answers

How to ensure that three conditions are met? Is there a better way to do it? [closed]

A program that asks a person's age, weight, and height and decides if they are fit to enter the army. To enter, you must be of age, weigh more than or equal 60 pounds and measure more or equal 1.70 meters. print('='*5, 'Aliste-se no Exército B...
asked by 19.12.2018 / 02:14
2
answers

Repetition structure that compares equal values and printe the correspondence

I have two arrays: operator.permanent tab has screen ids and the screens array has id, I need to create a repeat structure that compares the two arrays and printe the screen name. I tried something like: My array operator.table_p...
asked by 10.10.2018 / 18:31
1
answer

Detect digit repetition in Java [duplicate]

I need to make a program that reads a positive integer N. After reading this number, the program should evaluate if there are repeated numbers in the number. For example: on 234571 there are no repeated digits. another example: there are 76...
asked by 28.09.2018 / 17:35
1
answer

Number of "holes" in the letters of a text

I need to write a program in Python that counts the number of "holes" in a string. Imagine, for example, that the letters "A", "D", "O", "P", "R" have only one hole. Likewise, the letter "B" has two holes. The letters "C", "E", "F", "K" have no...
asked by 01.04.2016 / 13:12
3
answers

The user will have 3 attempts to set the password

The next form does not open when the password is correct and if it is wrong it continues even if the password has been entered 3 times. private void btnEntrar_Click(object sender, EventArgs e) { int erro=0; if (senha != ""...
asked by 25.05.2018 / 07:41