Tier 1 Series 3

3G: The Vault Exam

Capstone Exam
Pilot Record
Student Profile
"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);
        }
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_fc620e15e0d7a3fa
Session Secure

Failure Point #1

The Magic Number Trap

The fuel threshold is hardcoded as '5'. Command the AI to use a serialized float constant for easier tuning.

Failure Point #2

Precision Rounding Deadlock

The vertical speed is an integer, causing jittery movement. Command it to use a float to allow for sub-pixel math.

Failure Point #3

Negative Logic Friction

The ground check uses 'isNotGrounded'. Command it to use positive naming to prevent audit fatigue.