CSE 330 LABORATORY — Week 5S, Solved

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

5/5 - (1 vote)

In this lab, you will implement the Infix-to-Postfix Algorithm from the lecture notes. The lab will be conducted in a “follow-the-leader” format … the instructor will provide (a lot of) guidance in getting the lecture notes algorithm translated into working C++ code.

 

The ability to implement in programming language code any algorithm that someone may place in front of you is one of the most important skills to acquire as an aspiring computer science professional. No other discipline really does this sort of thing …

 

This lab is geared to showing you how to approach such task, which may appear daunting initially. Practice builds confidence and expertise, and we will engage in some collective practice here …

 

Step 0: Make sure that you have the Infix-to-Postfix Algorithm in front of you (consult lecture notes).

 

Step 1: Create a file infix2postfix.cpp (or other name of your choice) and make sure that you follow along as the program is evolving …

 

  • This will be “life-coding” and you are being asked to be on the alert for bugs, typos or other flaws as they are bound to pop up in the process.

 

  • If you have any burning question that prevent you from following along/keeping up, DO ASK.

 

Step 2: Test your implementation thoroughly with a good set of non-trivial infix expressions. Enjoy the resulting postfix expressions which you would most likely not have wanted to generate by hand.

 

Credit for this lab: (1) Make sure to sign the signup sheet. (2) Portal submission of your .cpp file (should contain all code) and a typescript for 3 non-trivial test runs.

 

 

  • lab5-sgnoss.zip