Complete the following tasks: a. Design a PhoneCall class that holds a phone num
ID: 3766308 • Letter: C
Question
Complete the following tasks:
a. Design a PhoneCall class that holds a phone number to which a call is placed, the length of the call in minutes, and the rate charged per minute. Overload extraction and insertion operators for the class.
b. Overload the == operator to compare two PhoneCalls. Consider one PhoneCall to be equal to another if both calls are placed to the same number.
c. Create a main()function that allows you to enter 10 PhoneCalls into an array. If a PhoneCall has already been placed to a number, do not allow a second PhoneCall to the same number.
GRADING RUBRIC:
- define a class named “PhoneCall”
- private fields for the phone number, the length of the call, and the rate charged
- public function(s) setting the private fields
- public function that displays a PhoneCall's data
- overload extraction (>>) operator
- overload insertion (<<) operator
- overload equality (==) operator
- main() function
--- declare 10 PhoneCall using user-entered values,
--- exclude entries with existing phone numbers
--- display the 10 valid PhoneCall objects