Write a program that uses the stack class

Assignment Help Programming Languages
Reference no: EM131695267

Programming Assignment

A teacher wants to be able to enter test scores and find the average. She would like to have a feature that allows her to remove the last test score added if she miss typed it. For example:

The test scores 98, 65, 89, 77, 16 were entered one at a time pressing the Enter key after each one. The teacher realized that the 16 was supposed to 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.

Program Description: You write a short description of what the program will do.

Reference no: EM131695267

Questions Cloud

Walt disney-identify the firm existing vision and mission : Walt Disney-Identify the firm’s existing vision, mission, objectives, and strategies. Develop vision and mission statements for the organization.
Education and the pv of benefits : Calculate the PV of the costs of her education and the PV of her benefits from the MBA.
Optimal rate of schooling with this increasing rate : What would happen to the optimal rate of schooling with this increasing rate of depreciation? Use MC and MB of schooling in a graph.
Constitutional amendment limiting the number of terms : Should the United States pass a constitutional amendment limiting the number of terms Congress members may seek in the United States Congress?
Write a program that uses the stack class : Programming Assignment- Write a program that uses the Stack class created in class that will hold the test scores until the teacher enters DONE.
Why the quantity variance is more useful for control purpose : The budget variance for variable production costs is broken down into quantity and price variances. Explain why the quantity variance is more useful.
Consider your thoughts about the concept : Is this something you believe would work successfully anywhere in the country? Why or why not?
Dominant-business firm-one from unrelated diversified firm : You have two job offers, one from a dominant-business firm and one from an unrelated diversified firm
Types of self-healing personalities : Briefly describe the two broad types of self-healing personalities. How do behaviors provide a link between personality and health?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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