Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01.Repainting
- {
- class Repainting
- {
- static void Main(string[] args)
- {
- double neededNylonKvM = double.Parse(Console.ReadLine());
- double neededPaintL = double.Parse(Console.ReadLine());
- double diluterL = double.Parse(Console.ReadLine());
- double neededHours = double.Parse(Console.ReadLine());
- double priceOfNylon = (neededNylonKvM + 2) * 1.50;
- double pricePaint = (neededPaintL + (neededPaintL * 0.10)) * 14.50;
- double neededDiluter = diluterL * 5.0;
- double price = priceOfNylon + pricePaint + neededDiluter + 0.40;
- double feeWorkers = (price * 0.30) * neededHours;
- double priceAll = price + feeWorkers;
- Console.WriteLine($"Total expenses: {priceAll:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment