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 Problem1
- {
- class Problem1
- {
- static void Main()
- {
- int albumsEU = int.Parse(Console.ReadLine());
- decimal priceEU = decimal.Parse(Console.ReadLine());
- int albumsNA = int.Parse(Console.ReadLine());
- decimal priceNA = decimal.Parse(Console.ReadLine());
- int albumsSA = int.Parse(Console.ReadLine());
- decimal priceSA = decimal.Parse(Console.ReadLine());
- int concerts = int.Parse(Console.ReadLine());
- decimal priceConcert = decimal.Parse(Console.ReadLine());
- decimal priceEUleva = priceEU * 1.94m;
- decimal priceNAleva = priceNA * 1.72m;
- decimal priceSAleva = priceSA / 332.74m;
- decimal concertLeva = priceConcert * 1.94m;
- decimal totalAlbums = albumsEU * priceEUleva + albumsNA * priceNAleva + albumsSA * priceSAleva;
- decimal withoutProducerProfit = totalAlbums - totalAlbums * 0.35m;
- decimal afterTaxes = withoutProducerProfit - withoutProducerProfit * 0.20m;
- decimal concertProfit = concertLeva * concerts;
- if (concertProfit > 100000)
- {
- concertProfit = concertProfit - concertProfit*0.15m;
- }
- if (afterTaxes > concertProfit)
- {
- Console.WriteLine("Let's record some songs! They'll bring us {0:F2}lv.",afterTaxes);
- }
- else
- {
- Console.WriteLine("On the road again! We'll see the world and earn {0:F2}lv.",concertProfit);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment