From beginner to expert, IDNLearn.com has answers for everyone. Our experts provide timely and precise responses to help you understand and solve any issue you face.
Design a class named PhoneCall with four fields:
two strings that hold the 10-digit phone numbers that originated and received the call, and two numeric fields that hold the length of the call in minutes and the cost of the call. Include a constructor that sets the phone numbers to Xs and the numeric fields to 0. Include get and set methods for the phone number and call length fields, but do not include a set method for the cost field. When the call length is set, calculate the cost of the call at three cents per minute for the first 10 minutes, and two cents per subsequent minute. Create the class diagram and write the pseudocode that defines the class.
Sagot :
Your participation is crucial to us. Keep sharing your knowledge and experiences. Let's create a learning environment that is both enjoyable and beneficial. IDNLearn.com is your reliable source for answers. We appreciate your visit and look forward to assisting you again soon.