static void Main(string[] args) { // Month 4 //deadlift, bench, squat, overhead, inclineBench, straightDeadlift, frontSquat, closeGripBench Maxes month4MaxesMicah = new Maxes(273, 210, 265, 132, 150, 195, 165, 150, Lifter.Micah); Maxes month4MaxesMatt = new Maxes(273, 210, 285, 132, 150, 195, 165, 150, Lifter.Matt); List <Maxes> month4Maxes = new List <Maxes>() { month4MaxesMicah, month4MaxesMatt }; // Month 3 Maxes month3MaxesMicah = new Maxes(263, 210, 255, 127, 145, 185, 155, 145, Lifter.Micah); Maxes month3MaxesMatt = new Maxes(263, 210, 275, 127, 145, 185, 155, 145, Lifter.Matt); List <Maxes> month3Maxes = new List <Maxes>() { month3MaxesMicah, month3MaxesMatt }; MonthlyWorkout(Week.WeekOne, month4Maxes, "MonthFourWeekOne", "531 - Month Four - Week One"); //MonthlyWorkout(Week.WeekThree, month3Maxes, "MonthThreeWeekThree", "531 - Month Three - Week Three"); //MonthlyWorkout(Week.WeekOne, maxes, "MonthThreeWeekOne", "531 - Month Three - Week One"); //MonthThreeWeekOne(month3MaxesMicah, month3MaxesMatt); //MonthThree(month3MaxesMicah, month3MaxesMatt); }
private static void MonthThree(Maxes micahMaxes, Maxes mattMaxes) { string deadliftWeekOne = CalculateDeadlift(Week.WeekOne, micahMaxes); string benchWeekOne = CalculateBench(Week.WeekOne, micahMaxes); string deadliftWeekTwo = CalculateDeadlift(Week.WeekTwo, micahMaxes); string benchWeekTwo = CalculateBench(Week.WeekTwo, micahMaxes); string deadliftWeekThree = CalculateDeadlift(Week.WeekThree, micahMaxes); string benchWeekThree = CalculateBench(Week.WeekThree, micahMaxes); string deadliftWeekFour = CalculateDeadlift(Week.WeekFour, micahMaxes); string benchWeekFour = CalculateBench(Week.WeekFour, micahMaxes); PrintWorkout(benchWeekOne + Environment.NewLine + deadliftWeekOne, "MonthThreeWeekOne", "Month Three"); PrintWorkout(benchWeekTwo + Environment.NewLine + deadliftWeekTwo, "MonthThreeWeekTwo", "Month Three"); PrintWorkout(benchWeekThree + Environment.NewLine + deadliftWeekThree, "MonthThreeWeekThree", "Month Three"); PrintWorkout(benchWeekFour + Environment.NewLine + deadliftWeekFour, "MonthThreeWeekFour", "Month Three"); }
private static void MonthThreeWeekOne(Maxes micahMaxes, Maxes mattMaxes) { string deadliftWeekOneMicah = CalculateDeadlift(Week.WeekOne, micahMaxes); string benchWeekOne = CalculateBench(Week.WeekOne, micahMaxes); string overheadWeekOne = CalculateOverhead(Week.WeekOne, micahMaxes); string squatWeekOneMatt = CalculateSquat(Week.WeekOne, mattMaxes); string squatWeekOneMicah = CalculateSquat(Week.WeekOne, micahMaxes); List <string> workouts = new List <string>() { deadliftWeekOneMicah, benchWeekOne, overheadWeekOne, squatWeekOneMatt, squatWeekOneMicah }; string filename = "MonthThreeWeekOne.txt"; string description = "531 - Month Three - Week One "; PrintWorkouts(workouts, filename, description); //PrintWorkout(deadliftWeekOneMicah + Environment.NewLine + benchWeekOne + Environment.NewLine + overheadWeekOne, "MonthThreeWeekOne", "Month Three"); }
public static string CalculateDeadlift(Week week, Maxes maxes, bool printName = false) { //string deadliftCalculations = week.ToString() + " Deadlift " + maxes.Deadlift.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; // TODO: Change every workout to programmatically print names printName = false; string deadliftCalculations = string.Empty; if (printName) { deadliftCalculations = week.ToString() + " Deadlift " + maxes.Deadlift.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; } else { deadliftCalculations = week.ToString() + " Deadlift " + maxes.Deadlift.ToString() + " 1RM " + Environment.NewLine; } double mainLiftSetOne = 0; double mainLiftSetTwo = 0; double mainLiftSetThree = 0; double assistanceLiftSetOne = 0; double assistanceLiftSetTwo = 0; double assistanceLiftSetThree = 0; if (week == Week.WeekOne) { mainLiftSetOne = Mainlift.Percentages.WeekOne.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekOne.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekOne.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekOne.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekOne.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekOne.setThree; } else if (week == Week.WeekTwo) { mainLiftSetOne = Mainlift.Percentages.WeekTwo.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekTwo.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekTwo.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekTwo.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekTwo.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekTwo.setThree; } else if (week == Week.WeekThree) { mainLiftSetOne = Mainlift.Percentages.WeekThree.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekThree.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekThree.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekThree.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekThree.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekThree.setThree; } else if (week == Week.WeekFour) { mainLiftSetOne = Mainlift.Percentages.WeekFour.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekFour.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekFour.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekFour.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekFour.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekFour.setThree; } // Warmup double deadliftWarmupSet1 = maxes.Deadlift * Mainlift.Percentages.Warmup.setOne; double deadliftWarmupSet2 = maxes.Deadlift * Mainlift.Percentages.Warmup.setTwo; double deadliftWarmupSet3 = maxes.Deadlift * Mainlift.Percentages.Warmup.setThree; List <double> platesDeadliftWarmupSet1 = Plates.SelectPlates(deadliftWarmupSet1, Exercise.Deadlift); List <double> platesDeadliftWarmupSet2 = Plates.SelectPlates(deadliftWarmupSet2, Exercise.Deadlift); List <double> platesDeadliftWarmupSet3 = Plates.SelectPlates(deadliftWarmupSet3, Exercise.Deadlift); Dictionary <double, List <double> > warmupDictionary = new Dictionary <double, List <double> >() { { deadliftWarmupSet1, platesDeadliftWarmupSet1 }, { deadliftWarmupSet2, platesDeadliftWarmupSet2 }, { deadliftWarmupSet3, platesDeadliftWarmupSet3 }, }; string warmupString = FormatWarmup(warmupDictionary); // Sets string sets = string.Empty; double deadliftSet1 = maxes.Deadlift * mainLiftSetOne; double deadliftSet2 = maxes.Deadlift * mainLiftSetTwo; double deadliftSet3 = maxes.Deadlift * mainLiftSetThree; List <double> platesDeadliftSet1 = Plates.SelectPlates(deadliftSet1, Exercise.Deadlift); List <double> platesDeadliftSet2 = Plates.SelectPlates(deadliftSet2, Exercise.Deadlift); List <double> platesDeadliftSet3 = Plates.SelectPlates(deadliftSet3, Exercise.Deadlift); Dictionary <double, List <double> > setDictionary = new Dictionary <double, List <double> >() { { deadliftSet1, platesDeadliftSet1 }, { deadliftSet2, platesDeadliftSet2 }, { deadliftSet3, platesDeadliftSet3 }, }; string setsString = FormatSets(setDictionary, week); // Assistance string frontSquat = string.Empty; double frontSquatSet1 = maxes.FrontSquat * assistanceLiftSetOne; double frontSquatSet2 = maxes.FrontSquat * assistanceLiftSetTwo; double frontSquatSet3 = maxes.FrontSquat * assistanceLiftSetThree; List <double> platesFrontSquatSet1 = Plates.SelectPlates(frontSquatSet1, Exercise.FrontSquat); List <double> platesFrontSquatSet2 = Plates.SelectPlates(frontSquatSet2, Exercise.FrontSquat); List <double> platesFrontSquatSet3 = Plates.SelectPlates(frontSquatSet3, Exercise.FrontSquat); Dictionary <double, List <double> > assistanceDictionary = new Dictionary <double, List <double> >() { { frontSquatSet1, platesFrontSquatSet1 }, { frontSquatSet2, platesFrontSquatSet2 }, { frontSquatSet3, platesFrontSquatSet3 }, }; string assistanceString = FormatAssistance(assistanceDictionary, week, "Front Squat " + maxes.FrontSquat + " 1RM"); deadliftCalculations += warmupString + setsString + assistanceString; return(deadliftCalculations); }
private static string CalculateBench(Week week, Maxes maxes, bool printName = false) { //string benchCalculations = week.ToString() + " Bench " + maxes.Bench.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; // TODO: Change every workout to programmatically print names printName = false; string benchCalculations = string.Empty; if (printName) { benchCalculations = week.ToString() + " Bench " + maxes.Bench.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; } else { benchCalculations = week.ToString() + " Bench " + maxes.Bench.ToString() + " 1RM " + Environment.NewLine; } double mainLiftSetOne = 0; double mainLiftSetTwo = 0; double mainLiftSetThree = 0; double assistanceLiftSetOne = 0; double assistanceLiftSetTwo = 0; double assistanceLiftSetThree = 0; if (week == Week.WeekOne) { mainLiftSetOne = Mainlift.Percentages.WeekOne.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekOne.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekOne.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekOne.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekOne.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekOne.setThree; } else if (week == Week.WeekTwo) { mainLiftSetOne = Mainlift.Percentages.WeekTwo.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekTwo.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekTwo.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekTwo.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekTwo.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekTwo.setThree; } else if (week == Week.WeekThree) { mainLiftSetOne = Mainlift.Percentages.WeekThree.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekThree.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekThree.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekThree.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekThree.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekThree.setThree; } else if (week == Week.WeekFour) { mainLiftSetOne = Mainlift.Percentages.WeekFour.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekFour.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekFour.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekFour.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekFour.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekFour.setThree; } // Warmup double benchWarmupSet1 = maxes.Bench * Mainlift.Percentages.Warmup.setOne; double benchWarmupSet2 = maxes.Bench * Mainlift.Percentages.Warmup.setTwo; double benchWarmupSet3 = maxes.Bench * Mainlift.Percentages.Warmup.setThree; List <double> platesBenchWarmupSet1 = Plates.SelectPlates(benchWarmupSet1, Exercise.Bench); List <double> platesBenchWarmupSet2 = Plates.SelectPlates(benchWarmupSet2, Exercise.Bench); List <double> platesBenchWarmupSet3 = Plates.SelectPlates(benchWarmupSet3, Exercise.Bench); Dictionary <double, List <double> > warmupDictionary = new Dictionary <double, List <double> >() { { benchWarmupSet1, platesBenchWarmupSet1 }, { benchWarmupSet2, platesBenchWarmupSet2 }, { benchWarmupSet3, platesBenchWarmupSet3 }, }; string warmupString = FormatWarmup(warmupDictionary); // Sets string sets = string.Empty; double benchliftSet1 = maxes.Bench * mainLiftSetOne; double benchliftSet2 = maxes.Bench * mainLiftSetTwo; double benchliftSet3 = maxes.Bench * mainLiftSetThree; List <double> platesBenchSet1 = Plates.SelectPlates(benchliftSet1, Exercise.Bench); List <double> platesBenchSet2 = Plates.SelectPlates(benchliftSet2, Exercise.Bench); List <double> platesBenchSet3 = Plates.SelectPlates(benchliftSet3, Exercise.Bench); Dictionary <double, List <double> > setDictionary = new Dictionary <double, List <double> >() { { benchliftSet1, platesBenchSet1 }, { benchliftSet2, platesBenchSet2 }, { benchliftSet3, platesBenchSet3 }, }; string setsString = FormatSets(setDictionary, week); // Assistance double inclineSet1 = maxes.InclineBench * assistanceLiftSetOne; double inclineSet2 = maxes.InclineBench * assistanceLiftSetTwo; double inclineSet3 = maxes.InclineBench * assistanceLiftSetThree; List <double> platesInclineSet1 = Plates.SelectPlates(inclineSet1, Exercise.InclineBench); List <double> platesInclineSet2 = Plates.SelectPlates(inclineSet2, Exercise.InclineBench); List <double> platesInclineSet3 = Plates.SelectPlates(inclineSet3, Exercise.InclineBench); Dictionary <double, List <double> > assistanceDictionary = new Dictionary <double, List <double> >() { { inclineSet1, platesInclineSet1 }, { inclineSet2, platesInclineSet2 }, { inclineSet3, platesInclineSet3 }, }; string assistanceString = FormatAssistance(assistanceDictionary, week, "Incline Bench " + maxes.InclineBench + " 1RM"); benchCalculations += warmupString + setsString + assistanceString; return(benchCalculations); }
private static string CalculateOverhead(Week week, Maxes maxes, bool printName = false) { //string overheadCalculations = week.ToString() + " Overhead " + maxes.Overhead.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; // TODO: Change every workout to programmatically print names printName = false; string overheadCalculations = string.Empty; if (printName) { overheadCalculations = week.ToString() + " Overhead " + maxes.Overhead.ToString() + " 1RM " + "(" + maxes.Person.ToString() + ")" + Environment.NewLine; } else { overheadCalculations = week.ToString() + " Overhead " + maxes.Overhead.ToString() + " 1RM " + Environment.NewLine; } double mainLiftSetOne = 0; double mainLiftSetTwo = 0; double mainLiftSetThree = 0; double assistanceLiftSetOne = 0; double assistanceLiftSetTwo = 0; double assistanceLiftSetThree = 0; if (week == Week.WeekOne) { mainLiftSetOne = Mainlift.Percentages.WeekOne.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekOne.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekOne.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekOne.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekOne.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekOne.setThree; } else if (week == Week.WeekTwo) { mainLiftSetOne = Mainlift.Percentages.WeekTwo.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekTwo.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekTwo.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekTwo.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekTwo.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekTwo.setThree; } else if (week == Week.WeekThree) { mainLiftSetOne = Mainlift.Percentages.WeekThree.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekThree.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekThree.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekThree.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekThree.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekThree.setThree; } else if (week == Week.WeekFour) { mainLiftSetOne = Mainlift.Percentages.WeekFour.setOne; mainLiftSetTwo = Mainlift.Percentages.WeekFour.setTwo; mainLiftSetThree = Mainlift.Percentages.WeekFour.setThree; assistanceLiftSetOne = AssistanceLift.Percentages.WeekFour.setOne; assistanceLiftSetTwo = AssistanceLift.Percentages.WeekFour.setTwo; assistanceLiftSetThree = AssistanceLift.Percentages.WeekFour.setThree; } // Warmup double overheadWarmupSet1 = maxes.Overhead * Mainlift.Percentages.Warmup.setOne; double overheadWarmupSet2 = maxes.Overhead * Mainlift.Percentages.Warmup.setTwo; double overheadWarmupSet3 = maxes.Overhead * Mainlift.Percentages.Warmup.setThree; List <double> platesOverheadWarmupSet1 = Plates.SelectPlates(overheadWarmupSet1, Exercise.Overhead); List <double> platesOverheadWarmupSet2 = Plates.SelectPlates(overheadWarmupSet2, Exercise.Overhead); List <double> platesOverheadWarmupSet3 = Plates.SelectPlates(overheadWarmupSet3, Exercise.Overhead); Dictionary <double, List <double> > warmupDictionary = new Dictionary <double, List <double> >() { { overheadWarmupSet1, platesOverheadWarmupSet1 }, { overheadWarmupSet2, platesOverheadWarmupSet2 }, { overheadWarmupSet3, platesOverheadWarmupSet3 }, }; string warmupString = FormatWarmup(warmupDictionary); // Sets string sets = string.Empty; double overheadLiftSet1 = maxes.Overhead * mainLiftSetOne; double overheadLiftSet2 = maxes.Overhead * mainLiftSetTwo; double overheadLiftSet3 = maxes.Overhead * mainLiftSetThree; List <double> platesOverheadSet1 = Plates.SelectPlates(overheadLiftSet1, Exercise.Overhead); List <double> platesOverheadSet2 = Plates.SelectPlates(overheadLiftSet2, Exercise.Overhead); List <double> platesOverheadSet3 = Plates.SelectPlates(overheadLiftSet3, Exercise.Overhead); Dictionary <double, List <double> > setDictionary = new Dictionary <double, List <double> >() { { overheadLiftSet1, platesOverheadSet1 }, { overheadLiftSet2, platesOverheadSet2 }, { overheadLiftSet3, platesOverheadSet3 }, }; string setsString = FormatSets(setDictionary, week); // Assistance double closeGripSet1 = maxes.CloseGripBench * assistanceLiftSetOne; double closeGripSet2 = maxes.CloseGripBench * assistanceLiftSetTwo; double closeGripSet3 = maxes.CloseGripBench * assistanceLiftSetThree; List <double> platesCloseGripSet1 = Plates.SelectPlates(closeGripSet1, Exercise.CloseGripBench); List <double> platesCloseGripSet2 = Plates.SelectPlates(closeGripSet2, Exercise.CloseGripBench); List <double> platesCloseGripSet3 = Plates.SelectPlates(closeGripSet3, Exercise.CloseGripBench); Dictionary <double, List <double> > assistanceDictionary = new Dictionary <double, List <double> >() { { closeGripSet1, platesCloseGripSet1 }, { closeGripSet2, platesCloseGripSet2 }, { closeGripSet3, platesCloseGripSet3 }, }; string assistanceString = FormatAssistance(assistanceDictionary, week, "Close Grip Bench Press " + maxes.CloseGripBench + " 1RM"); overheadCalculations += warmupString + setsString + assistanceString; return(overheadCalculations); }