A campsite booking system is being developed to calculate the cost of a stay at £35 per night, per person. The cost will be displayed to the user before they confirm the booking. The system will ask users for their name, number of people, arrival date and length of stay.
The number of guests who stayed at the campsite each night in 2023 is stored in the array guests.
Index
| 0 | 1 | 2 | ..... | 364 |
Value
| 271 | 240 | 153 | ..... | 87 |
The campsite want to know the total number of guests who stayed at the site in 2023.
Using a programming language of your choice, write the code to calculate this total.