Collections in Swift (Dictionary)
Suppose we have electricity bills for a year - 12 months from January to December. Every bill has an amount of money. Create a program to let the user enter these amounts. Then let the program do the following:
- Ask the user to select the month and print the amount of the bill for that month.
- Find and print the average of all bills
- Find and print the average of each quarter of the year. So print the quarter number and its average.
- Print names of months which their bills more than 75$
- Print the name of the month that has the minimum bill amount