Tier 2 Series 100

100D: The Engineer's Exam

Capstone Exam
"The aircraft is on the tarmac. The systems are failing. Identify the three critical architectural errors in the AI-generated code below to clear the flight for takeoff."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using UnityEngine;
using UnityEngine.UI; // Error Spotted?

public class FuelManager : MonoBehaviour {
    
    // Audit Requirement: Chapter 4
    public float currentFuel = 100f; 
    public float maxFuel = 100f; 

    public Text fuelDisplay; // Audit Requirement: Chapter 6

    void Start() {
        UpdateUI();
    }

    // Audit Requirement: Chapter 5
    void OnCollisionEnter(Collision other) {
        if (other.gameObject.tag == "FuelPod") {
            currentFuel += 25f;
            Destroy(other.gameObject);
            UpdateUI();
        }
    }

    void UpdateUI() {
        fuelDisplay.text = "Fuel: " + currentFuel;
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_1fddd4ab342edb77
Session Secure

Failure Point #1

Data Decoupling Failure

The AI has welded the fuel manifest (Data) directly to the engine logic (Code). Construct a prompt that directs the AI to decouple 'maxFuel' and 'burnRate' into a 'FuelData' ScriptableObject.

Failure Point #2

Physics Logic Failure

The ship 'crashes' into fuel pods. Command the AI to use the correct Trigger interaction.

Failure Point #3

UI Implementation Failure

The AI used legacy 'UnityEngine.UI'. Direct it to use the modern UI Toolkit (UXML).