(Two Dimensional and one Dimensional Array Program) Save as: LastNameFLab12Pg01.
ID: 3647629 • Letter: #
Question
(Two Dimensional and one Dimensional Array Program) Save as: LastNameFLab12Pg01.CPP Inside main (), declare one dimensional array Days to store the number of days in months of year (31, 28, 31, 30,31,30,31,31,30,31,30,31). Inside main(), declare a two-dimensional character array that will store the names of 12 months as a string ("January", "February" ... "December") Pass above two arrays to a function that will print the number of days in it corresponding month as follows: January has 31 days. February has 28 days December has 31 days.Explanation / Answer
#include #include using namespace std; void display(int day[], string month[][1]){ for(int i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.