已知玩家李宗璋用从阿萨拉卫队士兵的盒子里翻出来的野牛冲锋枪和四个弹夹的一级9x19子弹(一个弹夹45发子弹)击杀了行政楼中的阿萨拉卫队士兵首领赛伊德,一发子弹重0.1千克,赛伊德自身和装备重90千克,请问最终死者赛伊德重多少千克?请用c++编程解决。
#include <iostream>
int main() {
int magazines = 4;
int roundsPerMag = 45;
double bulletWeightKg = 0.1;
double initialWeightKg = 90.0;
int totalRounds = magazines * roundsPerMag;
double totalBulletWeight = totalRounds * bulletWeightKg;
double finalWeight = initialWeightKg + totalBulletWeight;
std::cout << "子弹总数: " << totalRounds << " 发" << std::endl;
std::cout << "子弹总重量: " << totalBulletWeight << " 千克" << std::endl;
std::cout << "赛伊德初始重量: " << initialWeightKg << " 千克" << std::endl;
std::cout << "最终死者赛伊德重量: " << finalWeight << " 千克" << std::endl;
return 0;
}