Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class BetterMusicProducer
- {
- static void Main()
- {
- int AlbumsSoldEurope = int.Parse(Console.ReadLine());
- decimal priceAlbumEuro = decimal.Parse(Console.ReadLine());
- decimal resultEURO = (AlbumsSoldEurope * priceAlbumEuro) * 1.94m;
- int AlbumsSoldNorthAmerica = int.Parse(Console.ReadLine());
- decimal priceAlbumDolars = decimal.Parse(Console.ReadLine());
- decimal resultDolars = (AlbumsSoldNorthAmerica * priceAlbumDolars) * 1.72m;
- int AlbumsSoldSouthAmerica = int.Parse(Console.ReadLine());
- decimal priceAlbumPessos = decimal.Parse(Console.ReadLine());
- decimal resultPessos = (AlbumsSoldSouthAmerica * priceAlbumPessos) / 332.74m;
- int numberConcertDuringTour = int.Parse(Console.ReadLine());
- decimal profitOneConcert = decimal.Parse(Console.ReadLine());
- decimal allAlbums = resultEURO + resultDolars + resultPessos;
- allAlbums *= .65M;
- allAlbums *= .8M;
- decimal concertProfit = numberConcertDuringTour * profitOneConcert * 1.94m;
- if (concertProfit > 100000)
- {
- concertProfit *= .85M;
- }
- if (allAlbums > concertProfit)
- {
- Console.WriteLine("Let's record some songs! They'll bring us {0:F2}lv.", allAlbums);
- }
- else
- {
- Console.WriteLine("On the road again! We'll see the world and earn {0:F2}lv.", concertProfit);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment