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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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