Stack or queue that holds integers and performs operations

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

Assignment -

In this assignment you will use a stack or queue (your choice) that holds integers and performs operations.

USE A LIST CONTAINER

The user will enter their name, be welcomed, and given the 6 options below.

  • ?: Print the stack/queue. If it is empty, just say so.
  • ^: Peek the top of the stack/front of the queue.
  • ∼: Push to the stack/queue.
  • O: Pop off the top two elements of the stack/front two elements of the queue, and using those two elements perform whatever operation the user gives (addition, subtraction, multiplication, division, or modulus) and take the result and push it to the stack/queue.

The operations will be its operators to save you time

  • L: returns the length of the stack/queue.
  • E: Exit the program.

These options should be displayed until the user chooses to exit the program.

For the letters options, capital and lowercase inputs should be valid.

If the user inputs an invalid option, your program should inform the user of this, but not exit the program.

You can only get a maximum of 22 points on this since some outputs are specific to whether or not you decided to make a stack or queue.

Reference no: EM132263609

Questions Cloud

What type of sampling is used what are the potential biases : After hurricane a disaster areas divided and 200 equal grids 40 of the grids are selected in every occupied household in the grid is intermediate
Proportion of all people in the community : A random sample of 10681 people live in a beach community and 8052 are on vacation.
Confidence interval for p : A random sample of 5805 people live in a community and 3278 are on vacation.
Develop an incident response policy for abc company : ABC Company is a manufacturing company that produces new technology that sells online directly to customers and retailers.
Stack or queue that holds integers and performs operations : In this assignment you will use a stack or queue (your choice) that holds integers and performs operations
Did the current group perform differently : Did the current group perform differently from those in the past? Assume a critical value of alpha = 0.05.
Proportion of eggs that hatch in group 1 : Find a point estimate p^1 for p1 the proportion of eggs that hatch in group 1 nest box placements. Round to three decimal places.
Create recommendations for both ipv4 and ipv6 schemas : Create recommendations for both IPv4 and IPv6 schemas at the China location.
What are the levels of physical security : What are the levels of physical security and how do they differ in the amount of security needed?

Reviews

len2263609

3/22/2019 4:14:47 AM

The language is C++. Please be in the lab you are registered for because your partner is in your registered lab. You will work with your partner during this lab period to construct an algorithm and start coding, and turn in what you have on blackboard by the end of class. You will then work on the rest of the code on your own and turn in the completed program on blackboard this Friday.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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