Consider a telephone system that has an automatic redial

Assignment Help Basic Computer Science
Reference no: EM13856445

Telephone SystemConsider a telephone system that has an automatic redial feature that will allow the user to return callsautomatically.

This telephone system can store the telephone numbers of the 10 most recent callers. Once thelimit of 10 is reached, and another call is made, the least recent number is deleted to make room for the mostrecent number.When the user wishes to review his/her calls, the user can choose between:1. Review new calls2. Review old calls3. ExitNew calls are reviewed by starting with the most recent caller. Old calls are reviewed by starting with the first callthat was place on the list of old calls. When reviewing calls, the user may decide from the

following:1. Call back the caller2. Ignore the caller, that is, never call back3. Call back later. (Put phone number on a queue for later)Use the following data structures in your program: - Use a queue to hold the telephone numbers of the incomingnew calls. (New calls queue) - Transfer the telephone numbers from the new calls queue to a stack in order to setup for reviewing the calls. - Use another queue of size 5 to hold the numbers that the user wishes to wait to call(old calls queue). Note: This queue works just like the new calls queue, in that, if there are 5 numbers on thequeue, and a number needs to be added, the number that has been on the queue the longest is removed to makeroom for the new number.NOTEThis program should be menu driven. - Read the numbers from an input file to simulate incoming calls. - A phonenumber leaves the system if the user calls back or ignores the caller. - When the user reviews old calls, the numbersare taken from the old calls queue directly without using the stack. The stack is used when reviewing calls fromthe new calls queue.

Reference no: EM13856445

Questions Cloud

Find the new equilibrium and compare : how each scenario would affect the price of khaki pants.
What is the definition of poverty : What is the definition of poverty? What the factors and characteristics of poverty? Define the difference between wealth and income? Is poverty linked to the government? Why or Why not
What is the expected forward exchange rate one year from now : What is the expected forward exchange rate 1 year from now? If Solitaire undertakes the project, what is the net present value and rate of return of the project for Solitaire?
Explain what is meant by a risk-free rate : How do statisticians typically measure GDP in service sectors (reading previous chapters may help answer this). Why are fees traditionally important. Why do fees not help in the financial sector. What is meant by FSIM. What does it try to measure. ..
Consider a telephone system that has an automatic redial : Telephone SystemConsider a telephone system that has an automatic redial feature
How much will mortgage bondholders receive : How much will mortgage bondholders receive? How much will priority creditors receive? Identify the remaining general creditors. How much will each receive before subordination adjustment and after adjustment?
Discuss the purpose of the php procedures : Discuss the purpose of the PHP procedures that you have written.
What kind of positioning strategy should the company adopt : What kind of positioning strategy should the company adopt for the Caring about home Segment - What kind of positioning strategy should the company adopt.
A firm that owns a wheat farm a grain elevator : A firm that owns a wheat farm, a grain elevator, a flour mill, a commercial bakery, and a grocery store chain is horizontally integrated.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Recognize three factors to consider in finding out the

q1. identify three factors to consider in determining the competitive value of information technology. justify the

  A flow chart and a pseudocode

A flow chart and a pseudocode

  Explain the rmo csms marketing subsystem

Using Microsoft Visio or an open source alternative such as Dia, create a use case graphic rendering that shows all actors and all use cases for the RMO CSMS marketing subsystem. Note: The graphically depicted solution is not included in the requi..

  A water tank has six taps on the bottom

A water tank has six taps on the bottom. If all of the faucet is opened, the tank is fully charged it will run out within 8 hours. How many hours are required to spend tankage when only 4 pieces faucet is opened?

  Finding instruction format for indirect addressing

Determine the instruction format, considering that there is no bit for indirect addressing.

  Create a summary slide

create a summary slide

  Evaluate an expression and display one value

What function would you use in Access to evaluate an expression and display one value when the expression is true, and another value when the expression is false?

  Write a program perform using mars - assembly language

Write a program which will perform the following " using MARS - Assembly language" a. Read in a string from the user b

  Do a lot more than calculations and reporting

Project managers do a lot more than calculations and reporting; they must keep the team on track, ensure ethical decisions are made, deal with conflict, and, depending on the type of organization, they may perform employee evaluations, issue bonuses,..

  Write a program that generates a random integer

Write a program that generates a random integer in the (inclusive) range [0-9] (i.e. the set {0,1,2,3,4,5,6,7,8,9}) and ask the user to guess what the number is.

  Is there a fixed path from past to future

Is there a fixed path from past to future, or do our individual momentary decisions shift and twist the course of human events? What people believe about the effects and consequences of their actions is part of the larger picture of what motivates..

  Gcd that returns the greatest common divisor

Write method Gcd that returns the greatest common divisor of two integers. Incorporate the method into an application that reads two values from the user and displays the result

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