No gender and no case given: work out both from each sentence.
No gender given — you have to know it. Type the missing endings, the article's as well as the adjective's; if no ending is needed, type –. A wrong answer shows the gender with the rule.
No case and no gender: work out both from the sentence, then the endings.
No case and no gender: work out both from the sentence, then the endings.