write a simple c++ application that displays different varieties of meal. the application must do the following;

I. allow a user to choose a meal,
ii. prompt the user of the choice made,
iii. display the cost of the food.

To create a simple C++ application that displays different varieties of meals and their costs, you can follow these steps:

Step 1: Define the meal options and their respective costs. You can use an array or a data structure like a map or struct to store this information.

```cpp
#include <iostream>
#include <map>

int main() {
std::map<std::string, double> meals = {
{"Burger", 5.99},
{"Pizza", 8.99},
{"Salad", 4.99},
// Add more meal options here
};

// Rest of the code will go here

return 0;
}
```

Step 2: Display the available meal options to the user and prompt them to choose.

```cpp
std::cout << "Available meals:\n";
int index = 1;
for(const auto& meal : meals) {
std::cout << index << ". " << meal.first << std::endl;
index++;
}

// Prompt the user for their choice
std::cout << "Choose a meal (enter the corresponding number): ";
int choice;
std::cin >> choice;

// Rest of the code will go here

```

Step 3: Handle the user's choice and display the selected meal and its cost.

```cpp
// Validate the user's choice
if (choice < 1 || choice > meals.size()) {
std::cout << "Invalid choice!";
} else {
// Retrieve the chosen meal and its cost
auto it = std::next(meals.begin(), choice-1);
std::string mealName = it->first;
double mealCost = it->second;

// Display the chosen meal and its cost
std::cout << "You chose: " << mealName << std::endl;
std::cout << "Cost: $" << mealCost << std::endl;
}
```

With these steps, you can create a simple C++ application that displays different meal options, allows the user to choose a meal, prompts the user of their choice, and displays the cost of the selected food.

Feel free to modify the code to add more meal options or enhance the user interface as needed.