Define and implement the class Square with template to enable the user using different data types for the square side. The class has side as member variable and and has setSide(Sside), getSide(), Area(), Perimeter(), Print() as member functions beside the constructers Square(), Square(Cside ), the destructor ~Square(). Determine which function is accessor and which one is mutator. Hint: Perimeter=4*side. *
Write a c++ program to implement the following . Assuming that a text file named first.txt contains some text written into it .write a function named vowelwords(), that reads the file first.txt and creates a new file named second.txt ,to contain only those words from the file first.txt which start the lowercase vowel (a,e,i,o,u).
create a structures sterling that has three members pounds, siblings and pence all of type int. Write three functions .the first should get these three values separately from the user and return the value as a structure. The second should take two arguments of type string and return the added value as same type .the third function should take the structure as argument and convert it to decimal pounds (double type) and the double value .write a main problem that accept two sterlings inputs from the user as a separate values construct them as structure and add them and display the result in double type
create a structures sterling that has three members pounds, siblings and pence all of type int. Write three functions .the first should get these three values separately from the user and return the value as a structure. The second should take two arguments of type string and return the added value as same type .the third function should take the structure as argument and convert it to decimal pounds (double type) and the double value .write a main problem that accept two sterlings inputs from the user as a separate values construct them as structure and add them and display the result in double type
An Islamic bank wants you to develop a Zakat Calculator for them. The calculator shall take the input of the 1) name of zakat donor, 2) Bank_Balance, 3) zakat_amount. Create constructor to initialize variables with default values which will be called on the time of object instantiation. There should be a method named “Cal_zakat()” which calculates the zakat of each donor and set in zakat_amount. The program adds up the zakat of each donor hence calculating the total_zakat of the bank. Use a “display()” which displays not only the data of the donor but also the total amount of zakat of the bank. It should keep in mind that the zakat will be calculated only if Bank_Balance is greater than or equal to 20,000. (You should implement the concept of overloading, copy constructor or overriding wherever it is applicable)