Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace issue1
- {
- class Program
- {
- static void Main(string[] args)
- {
- double EuropeAlbums = double.Parse(Console.ReadLine());
- double EuropeAlbumPrice = double.Parse(Console.ReadLine());
- double NorthAmericaAlbums = double.Parse(Console.ReadLine());
- double NorthAmericaAlbumsPrice = double.Parse(Console.ReadLine());
- double SouthAmericaAlbums = double.Parse(Console.ReadLine());
- double SouthamericaAlbumsPrice = double.Parse(Console.ReadLine());
- double WorldTours = double.Parse(Console.ReadLine());
- double ConcertProfit = double.Parse(Console.ReadLine());
- double Europe, NorthAmerica, SouthAmerica;
- Europe = Math.Abs(EuropeAlbums * (EuropeAlbumPrice * 1.94));
- NorthAmerica = Math.Abs(NorthAmericaAlbums * (NorthAmericaAlbumsPrice * 1.72));
- SouthAmerica = Math.Abs((SouthAmericaAlbums * SouthamericaAlbumsPrice)/332.74);
- double FirstProducer = Europe + NorthAmerica + SouthAmerica;
- double ProducerCut = FirstProducer * 0.35;
- double taxes = (FirstProducer - ProducerCut) * 0.2;
- double FirstproducerTotal = (FirstProducer - ProducerCut) - taxes;
- double SecondProducer = (ConcertProfit * 1.94) * WorldTours;
- double SecondProducer1 = 0;
- double SecondProducerCut = SecondProducer * 0.15;
- if (SecondProducer > 100000)
- {
- SecondProducer1 = SecondProducer - SecondProducerCut;
- }
- else
- {
- SecondProducer1 = SecondProducer;
- }
- if (FirstProducer > SecondProducer1)
- {
- Console.WriteLine("Let's record some songs! They'll bring us {0:f2}lv.", FirstproducerTotal);
- }
- else
- {
- Console.WriteLine("On the road again! We'll see the world and earn {0:f2}lv.", SecondProducer1);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment