Menu
Coddy logo textTech

Project Overview

Part of the Fundamentals section of Coddy's Swift journey — lesson 77 of 86.

challenge icon

Challenge

Easy

In 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. Exit

Print 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