DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

7. Food Delivery

using System;

namespace FoodDelivery
{
internal class Program
{
    static void Main(string[] args)
    {
        int chickenMenuAmount = int.Parse(Console.ReadLine());
        int fishMenuAmount = int.Parse(Console.ReadLine());
        int vegeterianMenuAmount = int.Parse(Console.ReadLine());

        double chickenMenu = 10.35;
        double fishMenu = 12.40;
        double vegeterianMenu = 8.15;

        double chickenPrice = chickenMenuAmount * chickenMenu;
        double fishPrice = fishMenuAmount * fishMenu;
        double vegeterianPrice = vegeterianMenuAmount * vegeterianMenu;

        double totalMenuPrice = chickenPrice + fishPrice + vegeterianPrice;

        double desertPrice = 0.2 * totalMenuPrice;
        double deliveryPrice = 2.50;

        double totalPrice = totalMenuPrice + desertPrice + deliveryPrice;
        Console.WriteLine(totalPrice);
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
emma_snow_e23a71179881a92 profile image
Emma Snow

At Italian Recipes Corner, we celebrate the rich and diverse culinary traditions of Italy! Explore a delightful collection of authentic recipes, from classic pasta dishes and hearty risottos to mouthwatering desserts and regional specialties. Whether you're a seasoned chef or a home cook looking to try new flavors, our easy-to-follow recipes will guide you in creating delicious Italian meals that bring the taste of Italy to your table. Join us on this culinary journey and discover the joy of cooking Italian cuisine.

Collapse
 
agokuzeusa profile image
Goku Zeas

Since 2017, we've developed our 먹튀사이트 Eat-and-Run verification approach via several tries and errors, guaranteeing that our system is both strong and dependable.