Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class TheBetterMusicProducer
- {
- static void Main()
- {
- int soldInEurope = int.Parse(Console.ReadLine());
- double priceInEuros = double.Parse(Console.ReadLine());
- int soldInNorthAmerica = int.Parse(Console.ReadLine());
- double priceInDolars = double.Parse(Console.ReadLine());
- int soldInSouthAmerica = int.Parse(Console.ReadLine());
- double priceInPesos = double.Parse(Console.ReadLine());
- int soldDuringTour = int.Parse(Console.ReadLine());
- double oneConcertInEuro = double.Parse(Console.ReadLine());
- double europe = (soldInEurope * priceInEuros) * 1.94;
- double nAmerica = (soldInNorthAmerica * priceInDolars) * 1.72;
- double sAmerica = (soldInSouthAmerica * priceInPesos) / 332.74 ;
- double pricesCombine = (europe + nAmerica + sAmerica);
- double all = (pricesCombine - ((pricesCombine * 35) / 100));
- double allMinusTaxes = all - ((all * 20)/ 100);
- double concertProfit = (soldDuringTour * oneConcertInEuro) * 1.94;
- if (concertProfit > 100000)
- {
- concertProfit = concertProfit - (concertProfit * 15) / 100;
- }
- if (concertProfit >= allMinusTaxes)
- {
- Console.WriteLine("On the road again! We'll see the world and earn {0:F2}lv.", concertProfit);
- }
- else
- {
- Console.WriteLine("Let's record some songs! They'll bring us {0:F2}lv.", allMinusTaxes);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement