Contact Dr. T.K. Jain (91-9414430763) regarding starting AFTERSCHO?ï OL centres inyour college / institution / organisation. Promote social entrepreneurship, join PGPSE andbecome a social entrepreneur. Emial us : email@example.comAFTERSCHO?nOL CENTRE FOR SOCIAL ENTREPRENEURSHIP –Let us Change the World –www.afterschoool.tk Join PGPSE along with CS after class 12
D. Explain polymorphism with suitable example? 43 Answer the followingA
Write a Function in C++ to print the sum of all four corners of a twodimensional array.
[Assuming the 2D Array to be a square matrix with odd dimension 3i.e. 3×3, 5×5, 7×7 etc...]Example, if the array content is3 5 47 6 92 1 8Output through the function should be :The sum of corner is 3+4+2+8= 17
B An Array MAT is to stored in memory column wise with each elements occupying 8bytes of memory. Find out the base address and the address of element MAT, if thelocation of MAT is stored at address 1000. 4C Write a Function in UPPER HALF() which takes a two dimensional array A with size N rowsand N columns as argument and point the upper half of the array. 2ThaArray is3 4 2 5 52 1 2 3 42 1 2 3 34 2 1 2 11 2 4 7 1The output is3 4 2 5 51 2 3 42 3 32 11D Write a function to perform a PUSH Operation on a dynamically allocated stack containg realnumber? 3E Evaute the expression 562+*124/- in tabular form showing stack after every step 24 Answer the followingA Assuming that a text file named First.TXT contains some text written into it, write a functionnamed vowelwords(), that reads the first.txt and create a new file named second.txt to containonly those words from the file First.txt which start with a lowercase vowel(i.e. ‘a’,’e’,’I’,’o’,’u’) Forexample 3Carry umbrella and overcoat when it rainsThen the file second.txt containsUmbrella and overcoat itB Write a function to open a files in read and write mode 1C Write a c++ function copies all the lowercase letters in text file called “mytext.txt” into file called“lower.txt” 2