Write a program that generates our recurring theme of the month and random rainfall.For this assignment, you will need to us
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →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:
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds