Menu
Coddy logo textTech

Project Overview

Part of the Fundamentals section of Coddy's Kotlin journey. Lesson 84 of 93.

challenge icon

Challenge

Medium

In this chapter, you'll build a Daily Expense Tracker with a menu-driven interface.

Print the menu for the expense tracker. The menu should display the following options, each on a new line:

--- Expense Tracker ---
1. Add Expense
2. View All Expenses
3. Total and Average
4. Clear All
5. Exit
Choose an option:

Print this menu exactly as shown above, including the header with dashes and the prompt at the end.

Try it yourself

fun main() {
    // TODO: Write your code below to print the expense tracker menu
    
}

All lessons in Fundamentals

Practice on your own: Kotlin playground