Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class Program
- {
- static void Main(string[] args)
- {
- int nylonNeeded = int.Parse(Console.ReadLine());
- int paintNeeded = int.Parse(Console.ReadLine());
- int diluent = int.Parse(Console.ReadLine());
- int hoursOfWork = int.Parse(Console.ReadLine());
- double nylonExp = (nylonNeeded + 2) * 1.50;
- double paintExp = (paintNeeded * 1.10) * 14.50;
- double diluentExp = diluent * 5.00;
- double fullSum = nylonExp + paintExp + diluentExp + 0.40;
- double workersPay = (fullSum * 0.30) * hoursOfWork;
- double fullExp = fullSum + workersPay;
- Console.WriteLine($"Total expenses: {fullExp:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement