Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pls help me to solve Part F, I finished other parts,I really do not know how to do part F.help me,Pls! Part 2 - Visiting
pls help me to solve Part F, I finished other parts,I really do not know how to do part F.help me,Pls!
Part 2 - Visiting Final Fantasy These functions will take parameters and do calculations. means floor (round down) Part A: Create a function called how-much-damage-ff6? that takes two parameters damage and defense and calculates how much damage is done based on Final Fantasy 6's calculation: + 256 Chow-much-damage-ff6? 100 100) 61 Part B: Final Fantasy 7 has more complex formulas Create a function called base-attack-ff7 that takes two parameters: strength and weapon-bonus 32 32 Calculation attack = strength + weapon-bonus (base-attack-ff7 20 18) 38 Part c: Create a function called base-damage-ff7 that takes two parameters: level and base-attack Calculation: base_damage = attack + attack+level attack-level * (base-damage-ff7 6 38) 45 Part D: Create a function called calculate-power-ff7 that takes two parameters: power and base-damage Calculation: power baseDamage 16 (calculate-power-ff7 16 45) 45 Part : Create a function called how-much-damage-ff7? that takes two parameters: defense and power (calculated from previous function) Calculation: [power + 512-defense 512 Chow-much-damage-ff7? 4 45) 44 Part F: So, to get an attack from start to finish in Final Fantasy 7 we need to: Calculate base attack Calculate base damage Calculate power Calculate actual damage Write a function get-attack-damage-ff7 that takes in: level, strength, weapon- bonus, power and defense This is a culmination of all the other functions together. So you'll be calling the other functions and feeding their result as an input into the parameters of the next layer. (get-attack-damage-ff7 6 20 18 16 4) 44Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started