Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Globalization;
- namespace Problem1
- {
- class Problem1
- {
- static void Main()
- {
- Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
- int albumsEurope = int.Parse(Console.ReadLine());
- decimal priceEuropeEuro = decimal.Parse(Console.ReadLine());
- int albumsNorthAmerica = int.Parse(Console.ReadLine());
- decimal priceNorthAmericaDoll = decimal.Parse(Console.ReadLine());
- int albumsSouthAmerica = int.Parse(Console.ReadLine());
- decimal priceSouthAmericaPesos = decimal.Parse(Console.ReadLine());
- int concerts = int.Parse(Console.ReadLine());
- decimal concertsEuro = decimal.Parse(Console.ReadLine());
- decimal euro = 1.94m;
- decimal dollars = 1.72m;
- decimal pesos = 332.74m;
- decimal percentageProdOne = 0.35m;
- decimal taxes = 0.2m;
- decimal percentegeProdTwo = 0.15m;
- decimal europe = albumsEurope * priceEuropeEuro * euro;
- decimal northAmerica = albumsNorthAmerica * priceNorthAmericaDoll * dollars;
- decimal southAmerica = albumsSouthAmerica * priceSouthAmericaPesos / pesos;
- //Console.WriteLine("{0}, {1}, {2}.", europe, northAmerica, southAmerica);
- decimal allAlbumsProffit = europe + northAmerica + southAmerica;
- //Console.WriteLine(allAlbumsProffit);
- decimal bandProffitNoProd = allAlbumsProffit - (allAlbumsProffit * percentageProdOne);
- //Console.WriteLine(bandProffitNoProd);
- decimal bandProffitAlbums = bandProffitNoProd - (bandProffitNoProd * taxes);
- //Console.WriteLine(bandProffitAlbums);
- //albums Clear
- decimal proffitConcertLeva = concerts * concertsEuro * euro;
- //Console.WriteLine(proffitConcertLeva);
- decimal proffitProdTwo = 0m;
- decimal proffitConcertLast = 0m;
- if (proffitConcertLeva >= 100000)
- {
- proffitProdTwo = proffitConcertLeva * percentegeProdTwo;
- //Console.WriteLine(proffitProdTwo);
- proffitConcertLast = proffitConcertLeva - proffitProdTwo;
- //Console.WriteLine(proffitConcertLast);
- }
- else
- {
- proffitConcertLast = proffitConcertLeva;
- }
- if (proffitConcertLeva >= bandProffitAlbums)
- {
- Console.WriteLine("On the road again! We'll see the world and earn {0:0.00}lv.", proffitConcertLast);
- }
- else
- {
- Console.WriteLine("Let's record some songs! They'll bring us {0:0.00}lv.", bandProffitAlbums);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement