#The Space Supply Calculator
#You are a mission specialist for the Intergalactic Supply Agency
#(ISA). Your job is to calculate and manage supplies for a spaceship traveling to Mars. The crew depends on your calculationsto survive the journey.
#Let's imagine crew_members = 5 , daily_food_per_person = 2.5 in kg, mission_days = 300
#ask for # of crewmember
crew_members = int(input("Enter how many crewmembers there are please: "))
#ask for # of daily food in kg per person
daily_food_per_person = float(input("Enter how much food per person in kg pleasE: "))
#ask for total days for mission
mission_days = int(input("Enter how many days in total is the mission PLEASE: "))
#add space between demanding input and mission supply report
print("\n")
#assign total food per day with crew member times daily food per person in kg
total_food_perDay = crew_members * daily_food_per_person #12.5kg in this case because with 5 crew, 2.5 daily kg, 12.5 kg = 5 * 2.5
#assign the total foods in kg for the mission with daily food per person times how many crewmember there are times how many days in total for mission
total_foods_mission = daily_food_per_person * crew_members * mission_days
#find average food entire crew spend per day for entire mission
average_food_per_day = total_foods_mission / mission_days
food_packed_kg = 50
#find total crate need for the whole mission. Since 1 crate = 50 kg. total food in kg which can assume 3750, will divide 50 to get how many crate we need for the entire mission 3750 / 50 = 75 crates
full_crates_need = total_foods_mission // food_packed_kg
#with modulo, we find how many kg is left after divide up all the total kg with packed kg, which left 0kg remained
food_crate_leftOver = total_foods_mission % food_packed_kg
#square the total food the crews need
square_totalFood = total_foods_mission ** 2
print(f"MISSION SUPPLY REPORT 👈(゚ヮ゚👈)\n Total food needed: {total_foods_mission}kg\nAverage food per day: {average_food_per_day}kg\nPacked food: 50kg \n -total crates needed for mission : {full_crates_need}kg\n -food leftover(kg):{food_crate_leftOver} \n Square of total food: {square_totalFood}kg")