PROGRAMMING:Function expansion design of wiper program
Based on the given manual windshield wiper program, the program is refactoring to extend its function.
*Annex 1:
[Annex 1. PDF] (~ / dca9d940-3997-4ede-bc7d-99407b679357. PDF)
*Operation instruction:
[OO 09th operation instruction v1.0. PDF] (~ / 09a12d0a-7aa4-4a28-9ab7-9d6d36a5b5ba. PDF)
###Input format:
The first line is an integer with the value range of [1,2], where 1 represents the wiper system described in Table 1 and 2 represents the wiper system described in Table 2; The second line is a number of integer numbers separated by one or more spaces and ending with a number 0, with the value range of [1,4], where 1 represents the upshift operation of the control lever, 2 represents the downshift operation of the control lever, 3 represents the upshift operation of the dial, 4 represents the downscaling operation of the dial, and 0 represents the end of the operation (as long as 0 is encountered during input, it is considered that the input is ended).
###Output format:
The number of output lines of the program is determined according to the number of operations on the control rod / dial each time. If the control rod / dial is operated each time, one line of data will be output. The format is: operation type / current gear of control lever / current scale of dial / current speed of wiper`
Among them, there are four operation types: lever up, lever down, dial up and dial down; The current gear of the control lever displays Chinese contents, such as stop, intermittent, low speed, high speed and super high speed (Table 2); The current scale of the dial is displayed as a numerical value, such as' 1 ','2','3 ','4','5 '(see Table 2 for 4 and 5); The current speed of the wiper is displayed as an integer value.
###Input example:
Here is a set of inputs. For example:
```in
one
1 1 1 2 3 2 4 3 3 1 2 0
```
###Output example:
The corresponding output is given here. For example:
```out
Lever up / intermittent / 1 / 4
Lever up / low speed / 1 / 30
Lever up / high speed / 1 / 60
Lever down / low speed / 1 / 30
Dial up / low speed / 2 / 30
Lever down / intermittent / 2 / 6
Dial down / intermittent / 1 / 4
Dial up / intermittent / 2 / 6
Dial up / intermittent / 3 / 12
Lever up / low speed / 3 / 30
Lever down / intermittent / 3 / 12
```
answer:If there is no answer, please comment
Must use:
1. Encapsulation, inheritance and polymorphism of class
1. Abstract class
1. Interface
*Annex 1:
[Annex 1. PDF] (~ / dca9d940-3997-4ede-bc7d-99407b679357. PDF)
*Operation instruction:
[OO 09th operation instruction v1.0. PDF] (~ / 09a12d0a-7aa4-4a28-9ab7-9d6d36a5b5ba. PDF)
###Input format:
The first line is an integer with the value range of [1,2], where 1 represents the wiper system described in Table 1 and 2 represents the wiper system described in Table 2; The second line is a number of integer numbers separated by one or more spaces and ending with a number 0, with the value range of [1,4], where 1 represents the upshift operation of the control lever, 2 represents the downshift operation of the control lever, 3 represents the upshift operation of the dial, 4 represents the downscaling operation of the dial, and 0 represents the end of the operation (as long as 0 is encountered during input, it is considered that the input is ended).
###Output format:
The number of output lines of the program is determined according to the number of operations on the control rod / dial each time. If the control rod / dial is operated each time, one line of data will be output. The format is: operation type / current gear of control lever / current scale of dial / current speed of wiper`
Among them, there are four operation types: lever up, lever down, dial up and dial down; The current gear of the control lever displays Chinese contents, such as stop, intermittent, low speed, high speed and super high speed (Table 2); The current scale of the dial is displayed as a numerical value, such as' 1 ','2','3 ','4','5 '(see Table 2 for 4 and 5); The current speed of the wiper is displayed as an integer value.
###Input example:
Here is a set of inputs. For example:
```in
one
1 1 1 2 3 2 4 3 3 1 2 0
```
###Output example:
The corresponding output is given here. For example:
```out
Lever up / intermittent / 1 / 4
Lever up / low speed / 1 / 30
Lever up / high speed / 1 / 60
Lever down / low speed / 1 / 30
Dial up / low speed / 2 / 30
Lever down / intermittent / 2 / 6
Dial down / intermittent / 1 / 4
Dial up / intermittent / 2 / 6
Dial up / intermittent / 3 / 12
Lever up / low speed / 3 / 30
Lever down / intermittent / 3 / 12
```
answer:If there is no answer, please comment
Must use:
1. Encapsulation, inheritance and polymorphism of class
1. Abstract class
1. Interface