-->
当前位置:首页 > 题库

PROGRAMMING:Statistical report (2)

Luz5年前 (2021-05-10)题库415
A small commodity production enterprise introduces microcomputer management. Please write a program to input the sales quantity and amount of four quarters and output the annual sales statistics report of the enterprise.
####Input format
```c
Sales volume and amount in four quarters
```
####Output format
```c
Annual report (see output sample)
```
####Input sample
```in
62147 3627520.39
25366 1597043.36
9044 589849.68
39346 2383974.14
```
####Output sample
```out
┌───┬───┬─────┐
│ quarter │ quantity │ amount │
├───┼───┼─────┤
First quarter
├───┼───┼─────┤
Second quarter 25366 1597043.36
├───┼───┼─────┤
Third quarter 9044 589849.68
├───┼───┼─────┤
The fourth quarter
├───┼───┼─────┤
Throughout the year 135903 8198387.57
└───┴───┴─────┘
```
The actual display effect is as follows:
> ![ Title. PNG] (~ / fcfd948c-9d81-4740-bddc-3dda12611bc7. PNG)
Note: if you are using Windows 7 / 8 / 10 operating system, you need to set the running window.
-Right click on the window title bar and select "properties"
-Switch to the options card and select use legacy console
-Switch to "font" card, select "dot matrix font" for font and "8" for size × 16”
-Click the "OK" button.
---
Tip: please use full angle tab, all table lines are thin lines.







answer:If there is no answer, please comment