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

PROGRAMMING:Calculation of fuel charge

Luz5年前 (2021-05-10)题库362
Now 90 gasoline is 6.95 yuan / L, 93 gasoline is 7.44 yuan / L, 97 gasoline is 7.93 yuan / L. In order to attract customers, an automatic gas station launched two service levels of "self-service" and "assistance service", which can get 5% and 3% discount respectively.
This problem requires the preparation of procedures, according to the input of customer's fuel a, gasoline B (90, 93 or 97) and service type C (M - self-help, e - assistance), calculate and output payable.
###Input format:
Input two integers and one character in one line to indicate the customer's fuel quantity a, gasoline type B (90, 93 or 97) and service type C (M - self service, e - assistance).
###Output format:
Output the amount payable in one line, keeping 2 decimal places.
###Input example:
```in
40 97 m
```
###Output example:
```out
three hundred and one point three four
```






answer:If there is no answer, please comment