Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please expert i have a code written with C++ language i need to add to it the main function by the requirements below. the code

please expert i have a code written with C++ language i need to add to it the main function by the requirements below. the code is object oriented programming have a class named packageplan and two other derived classes. so i need only to add the main function.

(Here is the code):

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

( here are the requirements needed for the main function so please help me by the correct answer )

Finallv, create a main that: I - creates an array of Plan* => Plan* plans]5]. 2- displays a menu for the user that loops for 5 times asking whether the user wants to create a package plan or a rate plan.

Enter (0) for package plan and (1) for rate plan:

3- If the user enters 0, then create a package plan object and add it to the array, otherwise create a rate plan object. 4- For each of the plans chosen allow the user to enter all of the info required for that plan. 5. Finally, loop through the array and call printAccountDetails & calculateBill for each of the objects created. For package plans call reminingMinutes and outOfPackageMins as well

// Overridden function to print account details void printAccountDetails() f Plan: :printAccountDetails(); cout

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

Step: 3

blur-text-image

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions