Tier 1
Series 3
3G: The Vault Exam
Capstone Exam
"The flight computer is reporting "Data Flux." Identify the three critical variable failures in the AI-generated logic to stabilize the data vault."
Target Asset for Audit
FRAGILE_CODE_DETECTED
using UnityEngine;
public class FlightComputer : MonoBehaviour {
// Audit Requirement: Lesson 3E (Organization)
public int health = 100;
public int maxHealth = 100;
public int fuel = 50;
public int maxFuel = 100;
// Audit Requirement: Lesson 3B (Precision)
public int verticalSpeed = 5;
// Audit Requirement: Lesson 3D (Boolean Clarity)
public bool isNotGrounded = true;
void Update() {
// Audit Requirement: Lesson 3A (Magic Numbers)
if (fuel < 5) {
Debug.Log("Emergency: Low Fuel!");
}
if (isNotGrounded) {
transform.Translate(Vector3.up * verticalSpeed * Time.deltaTime);
}
}
}