Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write a C++ program that simulates a telephone answering machine that records missed incoming calls. A missed call is any is any incoming call

image text in transcribed

2. Write a C++ program that simulates a telephone answering machine that records missed incoming calls. A missed call is any is any incoming call that the user did not answer in person. For each missed call, store the time of the call, telephone number of origin, and name of caller if the name is available. For unlisted numbers, set the name to "private caller". Provide the following features: Numbers are recalled in the order they arrive. Up to 18 numbers are recorded. When the eleventh call comes in, it is stored, and the oldest call is deleted so that no more than 10 numbers are ever recorded. When the user presses the missed-calls button, the telephone displays the number of calls bumped (stored but then deleted because there were more than 18 missed calls). Next, the telephone displays the number of origin of each missed call that is still stored, one at a time. . .After each number display, the user can select: To delete the call To go on to the next missed call To display the call details (number, caller name, and time) . After each number-detail display, the user can select To delete the call TO go on to the next call If there are no missed calls, at the end of the display of missed calls, the telephone prints "End of Missed Calls" * . Write a class to represent an incoming call with fields to hold the number, name of caller, and time of call.Write a test class that stores several numbers, simulates the user pressing the missed call button, and finally prints the entire collection of stored calls. Make sure that if more than one call comes from COSC 1437 S18 the same person or number of origin, all calls are recorded. Create your own numbers, names, and times for testing. Do not use a text file. Use the following names in your program 800-880-1809 Unknown Caller 11/22/2817 15:23 555-555-48ee Wyle E Coyote 11/22/2817 13:00 488-972-6541 Crazy Stalker 12/25/2817 5:05 817-515-53e9 Tarrant County College 81/22/2818 23:3 817-467-2976 Toto 81/24/2018 12:18 XXXX-XXX-XXXX Your Name xX/Xx/xoxx xx:xx Place all code into one file. Output should be user friendly

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Define dashboard.

Answered: 1 week ago