Posted: December 20th, 2022
Write a program that generates our recurring theme of the month and random rainfall. For this assignment, you will need to use pointers for the months and rainfall data.
Unlike the previous assignment this time the random rainfall will be double data type formatted as shown.Add header file #include <typeinfo> to your code so you can display the required results.
The first two lines of your output will show the type for the months and rainfall. You can name your pointer anything you want but the following is the required aforementioned code using ptr_month and ptr_rainAmountcout << “Month has type :” << typeid(ptr_month).name() << “\n”;cout << “Rainfall has type :” << typeid(ptr_rainAmount).name() << “\n”; Your output should resemble:
Place an order in 3 easy steps. Takes less than 5 mins.