PROGRAMMING:Company quarterly sales and annual sales statistics
The end of the year, a company to do sales statistics, please enter the monthly sales (unit: ten thousand yuan), please statistics each quarter and the annual total sales of the company.
Requirements: < br / > 1. Use a four row and three column array to record sales < br / > 2
2. Write a method in the main class to count and output the quarterly and annual total sales, and output. Method declaration is defined as: < br / >
public static void showTotal(int [][]sale)
3. in the main method, top a two-dimensional array and enter the sales volume of each month through the keyboard, then call the showTotal method to output the statistical results.
###Input format:
Enter in one line to give sales for 12 months, separated by spaces.
###Output format:
Each line outputs the total sales of each quarter, and the last line outputs the annual sales.
###Input example:
Here is a set of inputs. For example:
```in
22 33 44 33 44 66 77 45 64 43 34 23 45
```
###Output example:
The corresponding output is given here. For example:
```out
Sales in the first quarter: 99
Second quarter sales: 143
Third quarter sales: 186
Fourth quarter sales: 100
Annual sales: 528
```
answer:If there is no answer, please comment
Requirements: < br / > 1. Use a four row and three column array to record sales < br / > 2
2. Write a method in the main class to count and output the quarterly and annual total sales, and output. Method declaration is defined as: < br / >
public static void showTotal(int [][]sale)
3. in the main method, top a two-dimensional array and enter the sales volume of each month through the keyboard, then call the showTotal method to output the statistical results.
###Input format:
Enter in one line to give sales for 12 months, separated by spaces.
###Output format:
Each line outputs the total sales of each quarter, and the last line outputs the annual sales.
###Input example:
Here is a set of inputs. For example:
```in
22 33 44 33 44 66 77 45 64 43 34 23 45
```
###Output example:
The corresponding output is given here. For example:
```out
Sales in the first quarter: 99
Second quarter sales: 143
Third quarter sales: 186
Fourth quarter sales: 100
Annual sales: 528
```
answer:If there is no answer, please comment