Advertisement
Guest User

Untitled

a guest
Oct 26th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.49 KB | None | 0 0
  1. using System;
  2.  
  3. class TheBetterMusicProducer
  4. {
  5.     static void Main()
  6.     {
  7.         int soldInEurope = int.Parse(Console.ReadLine());
  8.         double priceInEuros = double.Parse(Console.ReadLine());
  9.         int soldInNorthAmerica = int.Parse(Console.ReadLine());
  10.         double priceInDolars = double.Parse(Console.ReadLine());
  11.         int soldInSouthAmerica = int.Parse(Console.ReadLine());
  12.         double priceInPesos = double.Parse(Console.ReadLine());
  13.         int soldDuringTour = int.Parse(Console.ReadLine());
  14.         double oneConcertInEuro = double.Parse(Console.ReadLine());
  15.         double europe = (soldInEurope * priceInEuros) * 1.94;
  16.         double nAmerica = (soldInNorthAmerica * priceInDolars) * 1.72;
  17.         double sAmerica = (soldInSouthAmerica * priceInPesos) / 332.74 ;
  18.         double pricesCombine = (europe + nAmerica + sAmerica);
  19.         double all = (pricesCombine  - ((pricesCombine * 35) / 100));
  20.         double allMinusTaxes = all - ((all * 20)/ 100);
  21.         double concertProfit = (soldDuringTour * oneConcertInEuro) * 1.94;
  22.         if (concertProfit > 100000)
  23.         {
  24.             concertProfit = concertProfit - (concertProfit * 15) / 100;
  25.         }
  26.         if (concertProfit >= allMinusTaxes)
  27.         {
  28.             Console.WriteLine("On the road again! We'll see the world and earn {0:F2}lv.", concertProfit);
  29.         }
  30.         else
  31.         {
  32.             Console.WriteLine("Let's record some songs! They'll bring us {0:F2}lv.", allMinusTaxes);
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement