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

  Own a consulting company that designs installs

Assume you own a consulting company that designs, installs, and maintains wide area networks. You currently have two companies requesting bids for their wide area networks to be installed. You must provide all of the relevant information to the..

  Computing days take for fine to reach d dollars

In the recent court case, a judge cited the city for contempt and ordered fine of $2 for first day. Each subsequent day, till the city followed judge's order, fine was squared.

  Maximum speedup-achieved by pipeline over non-pipelined unit

Non-pipelined system takes 200ns to process task. Determine the maximum speedup that could be achieved with pipeline unit over the non-pipelined unit?

  Wireless technology to benefit related working environment

Explain how airlines, construction industry, the medical field, and education use wireless technology to benefit related working environments?

  Write java statement display string 100 in dialogbox

Write a Java statement to display the string "The value is 100" to a user in a plain dialog box.

  Day trader wants to invest a sum of money

Day Trader wants to invest a sum of money that would generate an annually yield of at least $10,000. Two stock groups are available: blue chips and high tech, with average an annual yields of 10% and 25%, respectively

  Describe rapid adoption of software as a service

The popularity and rapid adoption of Software as a Service (SaaS), Platform as a Service (PaaS), and Infrastructure as a Service (IaaS) by a number of organizations has impacted internal IT / IS departments.

  Firms that make game systems like playstation

Firms that make game systems like Playstation and Nintendo typically charge a price close to average cost on the game system itself, and do not change that price even when the systems are scarce or demand increases. Why might this be a profit-maximiz..

  Access control system

What access control system is most valuable for protecting enterprise systems? Why? What are two specific strengths and two specific drawbacks for your chosen access control system?

  Three clusters using k-means clustering

Partition this given integer set into three clusters using K-means clustering

  Active directory structure for a financial organization

Consider that you have to design the Active Directory structure for a financial organization that has 10 sites throughout the country and 5 major departments at each site. The sites are located in the following cities: Detroit, MI; New York Cit..

  Display an appropriate error message

User Radio Buttons with a shared event procedure and a Select Case to determine which text box (State name or abbreviation) should have the focus and which should be set to Readonly.

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