madeofglass

Untitled

Feb 27th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _01.Repainting
  4. {
  5.     class Repainting
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double neededNylonKvM = double.Parse(Console.ReadLine());
  10.             double neededPaintL = double.Parse(Console.ReadLine());
  11.             double diluterL = double.Parse(Console.ReadLine());
  12.             double neededHours = double.Parse(Console.ReadLine());
  13.  
  14.             double priceOfNylon = (neededNylonKvM + 2) * 1.50;
  15.             double pricePaint = (neededPaintL + (neededPaintL * 0.10)) * 14.50;
  16.             double neededDiluter = diluterL * 5.0;
  17.             double price = priceOfNylon + pricePaint + neededDiluter + 0.40;
  18.  
  19.             double feeWorkers = (price * 0.30) * neededHours;
  20.  
  21.             double priceAll = price + feeWorkers;
  22.  
  23.             Console.WriteLine($"Total expenses: {priceAll:f2} lv.");
  24.  
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment