#Last Will Exercise (C++)

4 messages · Page 1 of 1 (latest)

fossil citrus
#

Solving the first part of the exercise and it keeps giving me an error (?) I can't figure out what im doing wrong since all i have to do according to them is make a namespace and call it estate_executor

worthy dagger
#

Please share your full code as text wrapped in code blocks (```). Pictures can be hard to read.

fossil citrus
# worthy dagger Please share your full code as text wrapped in code blocks (\`\`\`). Pictures ca...

// Secret knowledge of the Zhang family:
namespace zhang {
    int bank_number_part(int secret_modifier) {
        int zhang_part{8'541};
        return (zhang_part*secret_modifier) % 10000;
    }
    namespace red {
        int code_fragment() {return 512;}
    }
    namespace blue {
        int code_fragment() {return 677;}
    }
}

// Secret knowledge of the Khan family:
namespace khan {
    int bank_number_part(int secret_modifier) {
        int khan_part{4'142};
        return (khan_part*secret_modifier) % 10000;
    }
    namespace red {
        int code_fragment() {return 148;}
    }
    namespace blue {
        int code_fragment() {return 875;}
    }
}

// Secret knowledge of the Garcia family:
namespace garcia {
    int bank_number_part(int secret_modifier) {
        int garcia_part{4'023};
        return (garcia_part*secret_modifier) % 10000;
    }
    namespace red {
        int code_fragment() {return 118;}
    }
    namespace blue {
        int code_fragment() {return 923;}
    }
}

// Enter your code below

namespace estate_executor {
    
}```
lofty kestrel
#
Define a namespace called estate_executor. The code from the next tasks should be defined in the body of the estate_executor namespace.