Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics.Metrics;
- namespace firstLesson
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int nylonAmount = int.Parse(Console.ReadLine());
- int paintLiters = int.Parse(Console.ReadLine());
- int thinnerLiters = int.Parse(Console.ReadLine());
- int craftsmanHours = int.Parse(Console.ReadLine());
- double nylonPrice = (nylonAmount + 2) * 1.50;
- double paintPrice = paintLiters * 1.1 * 14.50;
- double thinnerPrice = thinnerLiters * 5;
- double totalMats = nylonPrice + paintPrice + thinnerPrice + 0.40;
- double craftsmanHourPrice = totalMats * 0.3;
- double grandTotal = totalMats + craftsmanHourPrice * craftsmanHours;
- Console.WriteLine(grandTotal);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement