Cody

Problem 42766. Is my wife really right?

Solution 3905373

Submitted on 29 Nov 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
Question1 = 'Will you be ready soon?'; Question2 = 'What is the meaning of life, universe and everything?'; Question3 = 'Do you wan''t to go out today?'; Question4 = 'Can you help me?'; y_correct = ['yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes']; [yes, yes, yes, yes, yes, yes, yes, yes, yes] = YesSheIs(Question1, Question2, Question3, Question4, Question1, Question2, Question3, Question4, Question3); assert(strcmp([yes, yes, yes, yes, yes, yes, yes, yes, yes] , y_correct))

varargin = 1×4 cell array {'Will you be ready soon?'} {'What is the meaning of life, unive…'} {'Do you wan't to go out today?'} {'Can you help me?'}

One or more output arguments not assigned during call to "varargout".

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!