Most voted "visualg" questions
Visualg is an algorithm editor and interpreter. Use this tag for questions related to its use, functionality or encoding.
Learn more…108 questions
Sort by count of
-
1
votes1
answer1763
viewsError in Visualg Program "incorrect syntax"
This exercise is college, I’m trying to do VisualG but always give that "error syntax", what I did. I tried other ways but I found this one easier to understand. I don’t want the answer. algoritmo…
-
1
votes1
answer169
viewsVisualg Exercise Solved :: Wanted tips on how to improve it
Description We needed to get some data, which we can check below: Relate the item; City code; Number of passenger cars; Number of traffic accidents with victims; It was wondered yet: What is the…
visualgasked 5 years, 6 months ago Michael Bittencurt 23 -
1
votes1
answer54
viewsVisualg - doubts about how to stop
Good morning, I am making a code that he receives how many residents I want to register and how old, but if I type I want to register only one, he asks the age and returns the question again. I…
visualgasked 5 years ago Jéssica Almeida 11 -
1
votes0
answers270
viewsCommand while in code in Visualg
Good evening guys. I have this code made and I need to do what the exercise is asking, but I don’t understand and I don’t know how to do it. The only hint I have is that you should use the command…
-
0
votes1
answer795
viewsReverse letter box size - VISUALG
I’m having a problem with programming visualG algorithms. need to invert an array with values assigned to it. // opcao 18 funcao menu_18():caractere var inicio escreval (" A ORDEM INVERSA É: ") para…
-
0
votes1
answer143
viewsWhat’s wrong with my code?
algoritmo "Calculadora" Var num1, num2, r: real operacao: caractere inicio EscrevaL("Digite: ") leia(num1, operacao, num2) caso operacao "+" r <- num1 + num2 caso operacao "-" r <- num1 - num2…
-
0
votes2
answers169
viewsHow to make the variable appear on the screen before it is modified?
I am starting now to study programming and because of that I am using Visualg to be easier to get the programming logic. It turns out I’m trying to develop an algorithm that can guess a person’s…
-
0
votes2
answers399
viewsWhat is the Visualg extension for Github?
I have some old codes of mine in Visualg and would like to publish on Github, someone knows the Visualg extension that Github recognizes?
-
0
votes1
answer246
viewsHow to declare the final result as variable in a repeat structure in Visualg?
I’m using Visualg as a start to get an idea of programming logic. I happen to have created an algorithm with the structure repita along with the structure se which account of the number the user has…
-
0
votes1
answer3114
viewsHow do one character variable receive another in a conditional structure in Visualg?
I’m making an algorithm to show the highest grade and on this highest grade, At first it seems all ok, but it’s not working. Where is the error? algoritmo "melhor aluno" var…
-
0
votes2
answers1105
viewsAlgorithm implementation in Visualg
Make a program that receives two numbers and perform one of the operations listed below according to the user’s choice. If an invalid option is typed show error message and end script execution. The…
-
0
votes1
answer3451
viewsHow can I compare values in this calculator algorithm
The objective of this algorithm is to be a small calculation game, where it compares the result of the operation informed by the user with the correct value of the same and so say whether or not the…
-
0
votes2
answers1343
viewsHow to eliminate repeated numbers from a visualg vector?
algoritmo "semnome" // Função : // Autor : // Data : 06/02/2018 // Seção de Declarações var veto1 : vetor[0..9] de inteiro veto2 : vetor[0..9] de inteiro j,i : inteiro inicio para i de 0 ate 9 faca…
-
0
votes1
answer69
viewsWhat’s wrong with the program?
Algoritmo "semnome" Var n1, n2,maior,menor, diferenca: real Inicio escreval("diferença do maior pelo menor") escreva ("numero1 = ") leia (n1) escreva ("numero2 = ") leia (n2) se (n1>n2) entao n1…
visualgasked 6 years, 7 months ago Jairo G.Sales 11 -
0
votes1
answer1116
viewsVisualg - 5 larger issues
I’m getting 5 values and need to sort from smaller to larger, without using loop or array. I was only able to discover the smallest and the greatest; how could I discover the middle ones? Follow…
-
0
votes1
answer321
views"fimenquanto sem enquanto correspondente" error
algoritmo "semnome" var n,i,ma,me:inteiro inicio i<-0 me<-0 ma<-0 enquanto (i<21) faca Escreval ("insira um numero inteiro:") leia (n) se…
-
0
votes1
answer869
viewsLine Break At Visualg’s Run Prompt:
I’m building an algorithm to calculate an employee’s special credit benefit. As you can see, in the image, at the prompt of execution, the result of the execution of line 23 goes beyond the screen…
-
0
votes1
answer120
viewsError in "if so" are accepting everyone in the answer
algoritmo "tinder" var l, m, i, b, c, s: logico pri, seg, ter: caracter andressa, monica, leticia, eduarda, maria, ana, clarisse, joana: logico inicio escreval ("----------------------------------")…
visualgasked 6 years, 7 months ago Filipe Fernandes 23 -
0
votes1
answer142
viewsCalculation of Sobra VISUALG
Good evening, Colleagues! I have this problem and I cannot find a solution even in the IDE documentation. I’d like to know which command to use to pick up the leftover division to use it in the…
-
0
votes1
answer85
viewsDisplay 2 data in visualg with repeat structure
I’m trying to display 2 names with, Stop and do, if I put the scribe inside the loop it will read and write there gets messy, as I would read the 2 later write? Algoritmo "semnome" Var i,:inteiro…
visualgasked 5 years, 7 months ago Alefe Patrick 1 -
0
votes2
answers35
viewsalgorithm not doing the necessary checks
hello, I have to make an algorithm in visualg where you have to read from the keyboard a positive integer value and show on the screen all primes smaller than the number read from the keyboard,…
-
0
votes1
answer836
viewsVisualg - Exercise with procedure
Good afternoon guys, all right? I have an exercise in Algorithms I, and I’m stuck in a doubt. The question: - Write a procedure that takes an integer number and prints it in the extended form. For…
-
0
votes1
answer81
viewsHow to build the below algorithm in pseudocode?
Construct an algorithm that can read two vectors of 3 character type elements and ask the user which candidate he wants to vote for and that the result of the operation is stored on other vectors.…
-
0
votes1
answer406
viewsVariable never reaches zero using Randi
Could I show you Life: 0 in the Visualg console output? I tried to put Ate(life = 0) but gives infinite loop. If anyone can help me, I’d appreciate it. The version of my Visualg is the 2.0 algoritmo…
-
0
votes1
answer57
viewsSave ticket values by adding to existing amount
Create a flowchart that reads from the user the value of a ticket and at the end shows: the total of the ticket and how many tickets were sold. The flowchart should only stop when typing zero in the…
-
0
votes1
answer133
viewsI’m trying to show 1 up to 10 in visualg,but is giving error in 1 line where theoretically everything is right
Algoritmo "SUPER CONTADOR" // Var N1,cont : Inteiro Inicio repita escreval ("===================") escreval("| MENU |") escreval…
-
0
votes1
answer79
viewsTransforming algorithmism for visualg
I’m starting to study algorithms, and to make it easier I try to bring all the algorithms to visualg. I’m with an example algorithm but I’m not able to turn to the visualg anyone can help? I know…
-
0
votes0
answers375
viewserror (expected to find SO ) in visualg
algoritmo "qual e o maior valor [vetor]" var valores:vetor[1..4] de real cont:inteiro maior:real inicio cont<-1 maior<-0 enquanto cont<=4 faca escreva("Qual e o",cont,"º Valor: ")…
-
0
votes1
answer450
viewsVisualg syntax error (English)
When placing the code this way and entering this data "Faults = 0 Proofs = 5, 9, 7.2 Job = 10.5 Age = 15 Result = Failed", the same as the error when compiling, displays syntax error in "Result…
-
0
votes1
answer2031
viewsmatrix generate random number from 0 to 99 without repetition Visualg
I had already asked the question but I informed the wrong question. Anyway, I need to make a program to automatically generate numbers between 0 and 99 of a bingo card (5x5) and cannot generate…
visualgasked 5 years, 8 months ago Rodrigo Peralta 5 -
0
votes1
answer714
viewsError in Visualg, I put the then and still gives error, already tried to put the condition between parentheses too
Algoritmo "semnome" // Disciplina : [Linguagem e Lógica de Programação] // Professor : Antonio Carlos Nicolodi // Descrição : Aqui você descreve o que o programa faz! (função) // Autor(a) : Nome…
-
0
votes1
answer96
viewsAssigning values to repeating variables
I was doing an exercise on the Fibonacci sequence and I was quite confused by the question of assigning values to variables within repetitions. I found a solution as if by luck and ended up not…
-
0
votes0
answers50
viewsVisualg conditional error
Algoritmo "SIMULAÇÃO JOGO GENIUS" Descrição : Aqui você descreve o que o programa faz! (função) Autor(a) : Nome do(a) aluno(a) Data atual : 27/09/2019 Var …
-
0
votes1
answer95
viewsfimse without a corresponding SE
I’m trying to run this code, but on line 40 in the fimse, it shows the error: fimse without corresponding SE Algoritmo "semnome" // Disciplina : [Linguagem e Lógica de Programação] // Professor :…
visualgasked 5 years ago Jéssica Almeida 11 -
0
votes1
answer86
viewsMathematical and logical operators in Visualg
Why the codes highlighted in asterisk do not work the way I chose? I realized that using the smaller number first and the bigger number second, it works normally, but I’ve been itching to know why…
-
0
votes1
answer1170
viewsVisualg algorithm over prime numbers in a repeat structure
I’m new to programming and I need help in a college exercise, I need an algorithm in Visualg that shows the prime numbers between an n1 number and an N2 number, using a repetition structure, where…
-
0
votes1
answer67
viewsPortugol - Function not executed if called from outside the program
Good evening, everyone. I’m new in programming and I’m doing the Guanabara courses. I got stuck in this exercise: var contador: inteiro resposta: vetor[1..5] de caractere aluno: vetor [1..3] de…
-
0
votes1
answer86
viewsVisualg does not recognize Real type variable
I’m doing a program at a school where the program should ask how many students, right after offering a "registration" for each student stating their name and grade. In the case of this code, when…
-
0
votes1
answer39
viewsHow to use the 'while' repeat structure? doubts in a specific exercise
I need to work out an algorithm for "Purchase Order". Where the user is willing to write the name of the product and its value and quantity, and at the end the code shows the multiplication result…
-
0
votes1
answer37
viewsINCORRECT SYNTAX Visualg
I need to make a code to calculate the ideal weight of men and women, but the teacher said I need to do only using IF-SO, and leave the SENAO out, hence all made that I run this program the first…
-
0
votes1
answer39
viewsProgramming logic (Portugol) (Visualg). How can this variable (MA) show me the exact name of the student who got the highest grade?
The program is working perfectly. My doubt is only about this algorithm, I can not understand how this variable (MA) can show me the highest grade only with the attribution MA <- A. If someone…
-
0
votes0
answers27
viewsERROR: Invalid floating point Operation; but specifically when placing the last sex equal to "m"
algoritmo "Tarefa 11" var p, i, c, c2, d : inteiro altura, maioraltu, menoraltu, mediamu, mediap, percen : real s : caractere inicio escreva("numero total de pessoas entrevistadas: ") leia(p)…
visualgasked 3 years, 3 months ago varios games 11 -
-1
votes1
answer37
viewsI have to deliver this question and I’ve tried and failed to answer. About Vetor
Create a vector of 10 positions and enter integers randomly. Then enter a number and if it is in the vector, save its position to show at the end of the program. Otherwise show the message at the…
-
-1
votes1
answer89
viewscheck sequence numbers visualg
I have a vector q will be filled by 6 random values and need to check if there are numbers in sequence in the vector. How would you do this ?
-
-1
votes1
answer1169
viewsHow to interrupt in Visualg?
Good evening, everyone. How do I interrupt a command in visualG? What has been requested: Write an algorithm that writes a sentence on the screen until the letter "F" is typed (without quotation…
-
-1
votes1
answer190
viewsRepeat structure within the selection in visualg
Function :Write a program that creates an initially zeroed vector and insert a value into the vector at an informed position. For example, for the empty vector v = { }, position 4 and value 10, the…
-
-1
votes1
answer477
viewsConvert Roman to Arabic number in Visualg
The system of Roman numerals (or Roman numerals) developed in ancient Rome and was used throughout its Empire. In this system ciphers are written with certain letters, which represent the numbers.…
visualgasked 5 years, 8 months ago Irwing Seiji Ato 1 -
-1
votes1
answer49
viewsProblem with Conditional Structure If and Otherwise
I would like to know why the program does not display the Student Performance : Escreva("Digite a primeira nota: ") Leia(nota1) Escreva("Digite a segunda nota: ") Leia(nota2) media <- (nota1 +…
-
-1
votes1
answer285
viewsVisualg algorithm error - Simple average calculation and rating - Beginner
I’m a beginner and I’m learning algorithms. I started to make an algorithm for calculating simple average and also a classification based on average, but visualg accuses a series of errors in the…
-
-1
votes1
answer55
viewsAbout passing by reference and by value
I can’t understand when to use one or the other. in this code, I used both forms and saw no change at the end. What’s the difference and when to use one or the other Create a procedure that receives…
visualgasked 4 years, 6 months ago Allan Maximo 1