Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming 2 (C++) please write the codes CLEARLY, with the input/output . Please do the files separate We would like to develop the class Fee

programming 2 (C++)
please write the codes CLEARLY, with the input/output .
Please do the files separate
image text in transcribed
image text in transcribed
We would like to develop the class Fee to be used to arganine information about school fees of children in a family. The class has data members mame (of type string), nainion, bookr, uniform, tranypuration, and subTotal (all of type int). The subtotal is used to store the total fees of a child. The class also includes two static data members count (of type int to keep track of the total number of objects instantiated frym class fees), and totalExpendinure (of type int to keep track of the total expenditures of all children of the family represented by all declared objects). The class Fee also has any needed sen() and gem) member functions, a defiult parameterized canstractor with default values "Ahmed". 13000, 700, 200, and 1200. A deeatrictor, and primn() function to write the name and sabTotal of a Fee object. The class has a member function gerCound() to return count, a member function gerTotalExpenditures( ) to retum totalExponditure. The destrsctor should print the values of cosont and totalErpenditure. - Write the definition of the class fees in the file fees h - Implement the member functions of the class in the file feeslmp.spp. - The following driver produces the given sample of cutput: const int arraySize =10; ifstream inFile("fees.txt", tos:in): int main() 1 string sName; int i. sT tuition, sBooks, sUniform, stransportation, numberORChildren =0; Fee child[arraySine]; whilc(inFale >> sName >> s Tuition >> sBooks >> sUniform >> s Transportation) child[numberOfChildren'+ ] set(sName, sTuition, sBooks, staiform, sTransportation); for(i 0 ; fonumberOfChildren; i+ t) child [1] printo: 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_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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago