create a class Matrix the stores it in a safe 2D array .that is it it should check for array index bounds .a constructor should allow the programmer to specify the actual dimensions of the matrix. define number functions : putel() for taking 3 argument row index , column index and the element storing it in the corresponding location. getel() for taking 2 arguments row and column indexes and returns the elements from that location . overload the operators +,-,and * appropriately
create a person class with name as it's data member . provide 4 functions getname() to get input from user and putname() to display output. Write two virtual functions getdata() and outstanding() where both these functions takes no argument and getdata() returns no value but outstanding () returns a Boolean value. Derive student and professor from person. student class should contain GPA as its float type data member and overrides the virtual functions appropriately .in professor class provide number of publications as data member and overrides the virtual functions appropriately. write a main program to declare an array of pointers to person object and depending on the choice from user create a student object or professor object and store it in person array for n persons. display the details along with whether the person is outstanding or not
professor chang wants a program that caculates and displays the are of a circle, given the circle's radius. the formula for calculating the area of a circle is πr^2, where π and r represents pi and the radius, respectively. the professor wants to use the value of pi reounded to two decimal places, which is 3.14
enter the first number, second number, and third number
calculate the sum by adding together the first number, second number, and third number
calculate the average by dividing the sum by 3
display the average
enter the assessed value and tax rate
caculate th annual property tax by dividing the assessed value by 100 and then multiplying the result by the tax rate
display the annual property tax