Write a program that helps people who are going on vacation. The program should calculate the total sum (in $) required for a particular holiday period.
Consider four parameters:
- duration in days
- total food cost per day
- one-way flight cost
- cost of one night in a hotel (the number of nights is the duration minus one)
Read the values of these parameters from the standard input and then print the result.
Do not forget about the return ticket.