Write and test a program that uses the stack class

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

Assignment

A teacher wants to be able to enter test scores and find the average. She would like. have a feature that allows her to remove the last test score added if she miss typed it. For example: The test scores 98, 66, 89, TY, 16 were entered one at a time pressing the Enter key after each one. The teacher realized that the 16 was supposed. be 61 and wants to remove the 16 and replace it with the 61.

Write a program that uses the Stack class created in class that will hold the test scores until the teacher enters DONE. If the teacher enters a number, it should be pushed onto the stack. If the teacher enters REVERSE, the last number entered should be removed. After all the numbers have been entered, the program should calculate the average and display the following:

The test scores entered listed on one line separated by a comma
The average of the test scores
The letter grade for the student-Grading scale A is 90 or more, B is 80- 89, C is 70-79, D is 60-69 and F is below 60.

Reference no: EM131697237

Questions Cloud

Grommit marginal corporate tax rate : Grommit Engineering expects to have net income next year of $20.75 million and free cash flow of $22.15 million. Grommit's marginal corporate tax rate.
Calculate the fixed overhead spending and volume variances : Calculate the fixed overhead spending and volume variances for the Little Rock and Athens plants. What is the most likely cause of the spending variance?
What do you know about the american idiom to suck : Do you suck at something? Do you feel like you suck at writing? What do you know about the American idiom "to suck"?
Best interest of the shareholders : In your initial post, explain how the method you chose is in the best interest of the shareholders. Does the method enhance shareholder value, and if so, how?
Write and test a program that uses the stack class : Write and test a program that uses the Stack class created in class that will hold the test scores until the teacher enters DONE.
Financial institution from a regulatory perspective : 1. What is the major difference between an ADI and a non-regulated financial institution from a regulatory perspective?
Identify the potential ethical dilemmas : Identify two potential ethical dilemmas that might surface in the use of flexible budgeting for performance evaluation.
Perform a complete ratio analysis of a firm : Describe how you would use a large number of ratios to perform a complete ratio analysis of a firm. Include the following: Identify the ratios that you believe

Reviews

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