Question: C++ program using visual studio. Part II. Initializing arrays when declaring them: The third sample program above will help with this part of the lab

C++ program using visual studio.

C++ program using visual studio. Part II. Initializing arrays when declaring them:

The third sample program above will help with this part of the

lab 2.a. Write a program which declares an array of 12 doubles

Part II. Initializing arrays when declaring them: The third sample program above will help with this part of the lab 2.a. Write a program which declares an array of 12 doubles and initializes them to: 10.0 3.0 8.06.0 2.0 11.0 14.0 13.0 10.00.0 12.3 14.2 (without prompting for and reading them in.) Output the values of the array to make sure they are right. The first 3 sample programs above should help get you there. 2.b. Write a program to declare and initialize an array of 12 strings and initialize them to the months of the year. Add code to output them to the console in a column January February March 2.c. Add an array for the number of days in each month (ignore leap years), and have your program print the month and the number of days in the month. January 31 February 28 March 31 2.d. Now let's add a third array to keep track of how many days there are before the beginning of each month. (i.e., 0 for January, 31 for February, 59 for March, 90 for April, etc.). You could calculate those by hand, but instead, use a loop, to fill it with the number-of-days preceding each month. (It might help to do it by hand first, so you know what the steps you need to go through are Now, have your program print out a table with the month, the number of days in the month, and the number of days preceding the month

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!