Project Overview
Part of the Fundamentals section of Coddy's Swift journey — lesson 77 of 86.
Challenge
EasyIn this chapter, you'll build a Daily Expense Tracker application.
Print the menu for the expense tracker. Display exactly 5 options, each on its own line, formatted as shown below:
1. Add expense
2. View all expenses
3. Show total and average
4. Clear all expenses
5. ExitPrint each menu option exactly as shown, with the number, period, space, and option text.
Try it yourself
// Daily Expense Tracker - Menu Display
// TODO: Write your code below to print the menu options
// Each option should be on its own line with the format: "number. option text"All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorCompound AssignmentRecap - Simple MathComparison Operators7Basic IO
Print FunctionString InterpolationReadLine InputType ConversionRecap - Till 120Recap - True or False10Functions
Declare A FunctionParameters And ArgumentsReturn ValuesArgument LabelsRecap - Sigma FunctionRecap - Validation FunctionDefault Values13Iterating Over Sequences
Iterating Over ElementsThe Enumerated MethodIterating Over Strings P1Iterating Over Strings P22Variables
Let vs VarType AnnotationsNumbersStringBooleanNaming ConventionsRecap - Initialize Variables5Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Ternary Operator8Bill Split Calculator
Welcome MessageGetting Input3Optionals
What Are OptionalsUnwrapping With If LetGuard LetNil Coalescing OperatorRecap - Safe Unwrapping9Loops
For-In LoopWhile LoopRepeat-While LoopBreakContinueRecap - FactorialRanges In LoopsNested LoopRecap - Dynamic Input12Arrays Basics
Declaring An ArrayAccessing ElementsModifying ArraysArray MethodsRecap - Product ListRecap - Reversed ArrayTuples15Daily Expense Tracker
Project OverviewExit The Program