Questions tagged as 'algoritmo'

2
answers

Why is this algorithm in Java not running? [closed]

import java.util.Scanner; public class CalculoSalarioLiquido { public static void main (String args []) { System.out.println("Programa para calcular o Salário Líquido: "); System.out.println("Escreva o Número de Horas Trab...
asked by 17.07.2016 / 00:25
2
answers

Transform string into algorithm

Can anyone tell me if there is a way for me to transform a string into an algorithm? for example: a="1 + 1" = > b = 1 + 1. For simple examples it is quiet to create a string interpreter, the problem is that I will get into more complex things...
asked by 26.05.2018 / 23:33
3
answers

Problem using if elif else (error in else)

n = input ("informe seu nome ") b1 = float(input("informe sua nota em Biologia no 1º Bimestre ")) b2 = float(input("informe sua nota em Biologia no 2º Bimestre ")) b3 = float(input("informe sua nota em Biologia no 3º Bimestre ")) b4 = float(input...
asked by 25.10.2015 / 06:00
2
answers

How to create an algorithm that automatically traces certain pages of a site?

I have a platform where people can put comments write reviews and I at this point need to create an algorithm in which I crawl these same zones of the site in case someone writes a less inappropriate comments the same delete the system automatic...
asked by 23.03.2015 / 02:52
1
answer

Prime numbers are not listed

I'm trying to create a C program that shows all prime numbers from 1 to 100 using brute force, but my program shows nothing on the screen. #include <stdio.h> #include <stdlib.h> int main() { int x=100,n=2,z=0; int p[z];...
asked by 17.11.2018 / 20:22
1
answer

Design of algorithms by division and conquest

I need to design this algorithm using the paradigm of division and conquest (strong induction). I can not get out of the place ...    Let A and B be two integer vectors such that the total number of integers in the two vectors is n , an...
asked by 17.09.2018 / 05:54
1
answer

Delphi = C #: Generic function to return collection bill DV

I'm having problems with a Custom Module 11 function (which correctly returns the billing slip from any bank) that I already had in Delphi, and how I need to implement it on a C # system. So I tried to make the C # version of it, but it is wi...
asked by 27.04.2016 / 00:39
1
answer

Exercise: transform decimal to binary and find 1's

#include<stdio.h>intmain(){intk,repeticao;intvalor,numero;intparidade=0;scanf("%d", &repeticao); for( k = 0; k < repeticao; k++ ){ int numero,sequencia; scanf("%lld", &numero); valor = numero/2; while( valor !=...
asked by 31.01.2017 / 03:21
1
answer

The first 100 prime numbers

I have created a code to print the first 100 prime numbers, but the screen is blank. I know I'm probably not doing it right, I'd like the fix and the best way to solve the problem, if possible. var dividendo, div, soma; for(dividendo=1;(div...
asked by 05.09.2018 / 19:25
1
answer

What is the best way to return function-specific error codes? [closed]

I've heard that it's a good practice to return only true or false (1 or 0) functions, however, if I create a function that checks a string, and I want to know which errors occurred in it, I usually return different values, for example: RETURN...
asked by 05.04.2018 / 16:44