Question: please solve these two task with c++. Write a program in C++ that asks a user to enter a number and search for that number

please solve these two task with c++.
Write a program in C++ that asks a user to enter a number and search for that number from an integer data, use dynamic memory approach for the program. Calculate the size of the file then allocate the memory equal to the size of the file. Task 2 Write a program in C++ that read the data using an integer array. Once you read the integer number (data) from the file, square that number and place in your dynamic array. Calculate the size of the file and then allocate the memory accordingly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
