Question: Design a program in visual basic code that displays the number of days in each month. The programs output should be similar to this: January

Design a program in visual basic code that displays the number of days in each month. The programs output should be similar to this:

January has 31 days.

February has 28 days.

March has 31 days.

April has 30 days.

May has 31 days.

June has 30 days.

July has 31 days.

August has 31 days.

September has 30 days.

October has 31 days.

November has 30 days.

December has 31 days.

The program should have two parallel arrays: a 12-element String array that is initialized with the names of the months, and a 12-element Integer array that is initialized with the number of days in each month. (SEE PARALLELARRAYS BELOW) To produce the output specified, use a loop to step through the arrays getting the name of a month and the number of days in that month

monthNames
0 January
1 February
2 March
3 April
4 May
5 June
6 July
7 August
8 September
9 October
10 November
11 December
daysPerMonth
0 31
1 28
2 31
3 30
4 31
5 30
6 31
7 31
8 30
9 31
10 30
11 31

Requirements:

? IPO Chart

? Comments required throughout your program

? Friendly message to the user of the purpose of your program displayed on the console output

? Two parallel arrays

? Loop

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!