Skip to content

Fundamentals-Projects/Swift-Collection-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift-Collection-Example

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:

  1. Ask the user to select the month and print the amount of the bill for that month.
  2. Find and print the average of all bills
  3. Find and print the average of each quarter of the year. So print the quarter number and its average.
  4. Print names of months which their bills more than 75$
  5. Print the name of the month that has the minimum bill amount

About

Collections in Swift (Dictionary)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages