subject

Write a function to evaluate the string containing the prefix expression. Use an algorithm that evaluates from left to right, rather than right to left. Easiest way to do this (although somewhat inefficient) is to have a stack for the operators and single variables for the operands. One of the operand variables will hold the result of the operation (and subsequently is the first operand for each operator) while the other holds the second operand to be used in the operation.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 13:20
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
You know the right answer?
Write a function to evaluate the string containing the prefix expression. Use an algorithm that eval...
Questions
question
History, 26.10.2019 00:43
question
History, 26.10.2019 00:43
question
Physics, 26.10.2019 00:43
Questions on the website: 13722361