Aliendreamer

best music producer

Feb 18th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.16 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace issue1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double EuropeAlbums = double.Parse(Console.ReadLine());
  14.             double EuropeAlbumPrice = double.Parse(Console.ReadLine());
  15.             double NorthAmericaAlbums = double.Parse(Console.ReadLine());
  16.             double NorthAmericaAlbumsPrice = double.Parse(Console.ReadLine());
  17.             double SouthAmericaAlbums = double.Parse(Console.ReadLine());
  18.             double SouthamericaAlbumsPrice = double.Parse(Console.ReadLine());
  19.             double WorldTours = double.Parse(Console.ReadLine());
  20.             double ConcertProfit = double.Parse(Console.ReadLine());
  21.             double Europe, NorthAmerica, SouthAmerica;
  22.  
  23.  
  24.             Europe = Math.Abs(EuropeAlbums * (EuropeAlbumPrice * 1.94));
  25.             NorthAmerica = Math.Abs(NorthAmericaAlbums * (NorthAmericaAlbumsPrice * 1.72));
  26.             SouthAmerica = Math.Abs((SouthAmericaAlbums * SouthamericaAlbumsPrice)/332.74);
  27.             double FirstProducer = Europe + NorthAmerica + SouthAmerica;
  28.             double ProducerCut = FirstProducer * 0.35;
  29.             double taxes = (FirstProducer - ProducerCut) * 0.2;
  30.  
  31.             double FirstproducerTotal = (FirstProducer - ProducerCut) - taxes;
  32.  
  33.             double SecondProducer = (ConcertProfit * 1.94) * WorldTours;
  34.             double SecondProducer1 = 0;
  35.             double SecondProducerCut = SecondProducer * 0.15;
  36.  
  37.             if (SecondProducer > 100000)
  38.             {
  39.                 SecondProducer1 = SecondProducer - SecondProducerCut;
  40.             }
  41.             else
  42.             {
  43.                 SecondProducer1 = SecondProducer;
  44.             }
  45.  
  46.  
  47.             if (FirstProducer > SecondProducer1)
  48.             {
  49.                 Console.WriteLine("Let's record some songs! They'll bring us {0:f2}lv.", FirstproducerTotal);
  50.             }
  51.             else
  52.             {
  53.                 Console.WriteLine("On the road again! We'll see the world and earn {0:f2}lv.", SecondProducer1);
  54.             }
  55.  
  56.  
  57.  
  58.  
  59.         }
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment