Advertisement
Guest User

01 - Four Factors

a guest
Jan 12th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 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 _01_FourFactors
  8. {
  9. class FourFactors
  10. {
  11. static void Main(string[] args)
  12. {
  13. uint FG = uint.Parse(Console.ReadLine());
  14. uint FGA = uint.Parse(Console.ReadLine());
  15. uint ThreeP = uint.Parse(Console.ReadLine());
  16. uint TOV = uint.Parse(Console.ReadLine());
  17. uint ORB = uint.Parse(Console.ReadLine());
  18. uint OppDRB = uint.Parse(Console.ReadLine());
  19. uint FT = uint.Parse(Console.ReadLine());
  20. uint FTA = uint.Parse(Console.ReadLine());
  21.  
  22. double eFG = (FG + 0.5 * ThreeP) / FGA;
  23. double TOVp = TOV / (FGA + 0.44 * FTA + TOV);
  24. double ORBp = (double)ORB / (double)(ORB + OppDRB);
  25. double FTp = (double)FT / (double)FGA;
  26.  
  27. Console.WriteLine("eFG% {0:F3}", eFG);
  28. Console.WriteLine("TOV% {0:F3}", TOVp);
  29. Console.WriteLine("ORB% {0:F3}", ORBp);
  30. Console.WriteLine("FT% {0:F3}", FTp);
  31.  
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement