Convert infix to postfix and also calculate the result

Assignment Help C/C++ Programming
Reference no: EM13936437

I have to convert infix to postfix and also calculate the result. We have been given test data via a text file.

I have a queue and stack written that must be used to do this. i have code that converts the other way, but must now convert infix to postfix and I am having trouble doing so using the stack.h and myqueue.h.

The stack and queue use a priority queue list previously written

Attachment:- PostFixprogram.zip

Reference no: EM13936437

Questions Cloud

Explain why you feel these elements are critical for helping : For this discussion, review the elements of document design covered in Chapter 5, and then choose two or three elements-color, consistency, grids, white space, the use of lists, parallelism, fonts, and so on-that you feel are the most important. Expl..
Explain why the abc format described in the text reading is : Explain why the ABC format described in the text reading is beneficial for writing all correspondence; and Discuss several ways to incorporate the "You" attitude in your writing. Why is this important?
Discuss the differences between formulas and functions : Discuss the differences between formulas and functions. Pick a function in Excel and discuss how that function is used to calculate results in your worksheets. Review your classmates posts to make sure that you're not duplicating formulas/functions a..
Ben ren and vectra suddenly realize that they have no idea : So Ben Ren and Vectra suddenly realize that they have no idea what a force is (other than "the Force is what gives a Jedi his power. It's an energy field created by all living things. It surrounds us and penetrates us; it binds the galaxy together.")..
Convert infix to postfix and also calculate the result : I have to convert infix to postfix and also calculate the result. We have been given test data via a text file.
How many bacteria were on the soap : Starting with four bacterial cells per cm3 in a rich nutrient medium, with a 20-minutes generation time, how many cells will there be in 1 dm3 of this culture after 1 hour?
Service (iaas) from a cloud service provider : An organization is planning to use Infrastructure as a Service (IaaS) from a cloud service provider to host their web site and e-commerce applications. This will consist of an appropriate number of suitably sized Linux Virtual Servers and Virtual ..
Advice on strategies for your project execution : You have been told during this process to reach out to other CA City Retail Group Cafés to obtain appropriate advice on strategies for your project execution. What are three questions you could ask to guarantee success - Explain the process for ide..
Show how this priority queue is affected by adding string : To tell if one element in ZooGraph has relation X to another element, you look for a path between them. Show whether the following statements are true, using the picture or adjacency matrix.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Input parameters, and returns nothing

Write a function called ten2one(), that takes no input parameters, and returns nothing (void). The body of the function must include a loop that counts from 10 down to 1, printing the count value each time in the loop. The output should look like (no..

  Winning number combinations from the missouri lottery

The file input.txt contains all of the winning number combinations from the Missouri Lottery since it took its current form on January 3, 1998.  The data is in a file called "input.txt"  All of the data in the file is integer.

  Functions to compute stress and strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads P of 10,000 to 1,000,000 pounds.

  Program to store lists of names and ages in parallel arrays

Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.

  Write program that user ask to enter floating point numbers

Write the following program: The user is asked to enter 2 floating point numbers (use doubles). The user is then asked to enter one of the following mathematical symbols: +, -, *, or /.

  The mean and standard deviation

How do i write a program in c++ that use functions max, min, the total numbers, the mean and standard deviation to read a file text and return these values from the file text. note the file text has random numbers. note im not suppose to use arrays.

  Draws a pyramid consisting of bricks

Write a C program that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid.

  Calculate the volume by formula

Write program in C++ : - write a class VolumeOfBox that calculate the volume by this formula : length * breadth * height this class has three data member ,and the member function which calculates the volume and print the result by using pointer to..

  Calculate and output the average grade

Program should still ask the user to input a grade integer from 1-100 and then output the letter grade -  your application will calculate and output the average grade for students input.

  Write a program in which the program prints out

Use (switch statement) to write a program in which the program prints out the input (single character) if the character is not '2','t', or 'w'. Use 'default' and 'break' wisely.

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd