Advertisement
ramsess

The Better Music Producer

Mar 1st, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.30 KB | None | 0 0
  1. using System;
  2.  
  3. namespace The_Better_Music_Producer
  4. {
  5.     class MainClass
  6.     {
  7.         public static void Main (string[] args)
  8.         {
  9.             ulong numberSoldE = ulong.Parse(Console.ReadLine ());
  10.             double priceAlbumEuro = double.Parse(Console.ReadLine ());
  11.             ulong numberSoldNA = ulong.Parse(Console.ReadLine ());
  12.             double priceAlbumDolar = double.Parse(Console.ReadLine ());
  13.             ulong numberAlbumSA = ulong.Parse(Console.ReadLine ());
  14.             double priceAlbumPasos = double.Parse(Console.ReadLine ());
  15.             ulong concerts = ulong.Parse(Console.ReadLine ());
  16.             double ProfitEuro = double.Parse(Console.ReadLine ());
  17.  
  18.             double priceAlbumlvE = (priceAlbumEuro * numberSoldE) * 1.94;
  19.             double priceAlbumlvNA = (priceAlbumDolar * numberSoldNA) * 1.72;
  20.             double priceAlbumlvSA = (priceAlbumPasos * numberAlbumSA) / 332.74;
  21.  
  22.             double albumLV = priceAlbumlvE + priceAlbumlvNA + priceAlbumlvSA;
  23.             albumLV = albumLV - albumLV * 35 / 100;
  24.             albumLV = albumLV - albumLV * 20 / 100;
  25.  
  26.             double concertLV = (ProfitEuro * concerts) * 1.94;
  27.             concertLV = concertLV - concertLV * 15 / 100;
  28.  
  29.             if (albumLV > concertLV) {
  30.                 Console.WriteLine ("Let's record some songs! They'll bring us {0:F2}lv.", albumLV);
  31.             } else {
  32.                 Console.WriteLine ("On the road again! We'll see the world and earn {0:F2}lv.", concertLV);
  33.             }
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement