Sep 15th 2023, 22:17:56
LOL
Oct 5th 2023, 5:12:20
Nov 23rd 2023, 15:18:53
#include <stdio.h>
#include <stdlib.h>
#define OVERSEND 1.1
struct Military
{
int troops;
int turrets;
int tanks;
};
struct Tech
{
double weapons;
};
struct Country
{
struct Military military;
struct Tech tech;
double attack_bonus;
double readiness;
};
int jets_needed(struct Country target)
{
return ((target.tech.weapons * target.attack_bonus * target.readiness * OVERSEND) *
(target.military.troops + target.military.turrets*2 + target.military.tanks*4)) /2;
}
int main()
{
struct Country Target;
Target.military.troops = 100;
Target.military.turrets = 100;
Target.military.tanks = 100;
Target.attack_bonus = 1.00;
Target.readiness = 1.00;
Target.tech.weapons = 1.00;
printf("Jets needed: %d", jets_needed(Target));
}
Mar 2nd 2024, 22:00:32
Mar 10th 2024, 6:48:12
WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4) + min(WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4), 0.25 * (AlliesTroops + AlliesJets*2 + AlliesTanks*4)) where min(value1,value2) = lower of the two values
Jun 10th 2024, 13:57:10
Jul 18th 2024, 12:02:57