#K12156. Taco Beverage Price Calculator
Taco Beverage Price Calculator
Taco Beverage Price Calculator
You are given the details of a beverage order at Taco cafe. The drink price is computed based on the following formula:
\(\text{Total Price} = 5 + 1.5 \times \text{shots}\ + \,0.5 \text{ (if to-go)}\)
Your task is to read the name of the drink, the number of espresso shots, and whether the drink is to-go, then compute and print its price.
inputFormat
The input is given via standard input (stdin) and consists of three lines:
- First line: a string representing the drink name (this value is not used in the calculation but provided for completeness).
- Second line: an integer representing the number of espresso shots.
- Third line: a string which is either
True
orFalse
indicating whether the order is to-go.
outputFormat
Print the total price of the drink computed using the formula:
\(\text{Total Price} = 5 + 1.5 \times \text{shots} + 0.5 \text{ (if to-go)}\)
The result should be printed on standard output (stdout) as a number.
## sampleAmericano
0
False
5