KlimentHristov

01.TheBetterMusicProducer

Nov 11th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.48 KB | None | 0 0
  1. using System;
  2. class BetterMusicProducer
  3. {
  4.     static void Main()
  5.     {
  6.         int AlbumsSoldEurope = int.Parse(Console.ReadLine());
  7.         decimal priceAlbumEuro = decimal.Parse(Console.ReadLine());
  8.         decimal resultEURO = (AlbumsSoldEurope * priceAlbumEuro) * 1.94m;
  9.  
  10.         int AlbumsSoldNorthAmerica = int.Parse(Console.ReadLine());
  11.         decimal priceAlbumDolars = decimal.Parse(Console.ReadLine());
  12.         decimal resultDolars = (AlbumsSoldNorthAmerica * priceAlbumDolars) * 1.72m;
  13.  
  14.         int AlbumsSoldSouthAmerica = int.Parse(Console.ReadLine());
  15.         decimal priceAlbumPessos = decimal.Parse(Console.ReadLine());
  16.         decimal resultPessos = (AlbumsSoldSouthAmerica * priceAlbumPessos) / 332.74m;
  17.  
  18.         int numberConcertDuringTour = int.Parse(Console.ReadLine());
  19.         decimal profitOneConcert = decimal.Parse(Console.ReadLine());
  20.  
  21.         decimal allAlbums = resultEURO + resultDolars + resultPessos;
  22.  
  23.  
  24.         allAlbums *= .65M;
  25.         allAlbums *= .8M;
  26.  
  27.         decimal concertProfit = numberConcertDuringTour * profitOneConcert * 1.94m;
  28.         if (concertProfit > 100000)
  29.         {
  30.             concertProfit *= .85M;
  31.         }
  32.  
  33.  
  34.         if (allAlbums > concertProfit)
  35.         {
  36.             Console.WriteLine("Let's record some songs! They'll bring us {0:F2}lv.", allAlbums);
  37.         }
  38.         else
  39.         {
  40.             Console.WriteLine("On the road again! We'll see the world and earn {0:F2}lv.", concertProfit);
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment