Cody

Problem 1072. Television Screen Dimensions

Solution 1883796

Submitted on 25 Jul 2019 by Dimas
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   Pass
[W,H]=teledims(2.4,1,46); assert(H == 17.7 && W == 42.5)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint1 (line 1) In solutionTest (line 3)]

2   Pass
[W,H]=teledims(4,3,32); assert(H == 19.2 && W == 25.6)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)]

3   Pass
[W,H]=teledims(3,2,60); assert(H == 33.3 && W == 49.9)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)]

4   Pass
[W,H]=teledims(1.85,1,42); assert(H == 20.0 && W == 36.9)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)]

5   Pass
[W,H]=teledims(3,2,1000); assert(H == 554.7 && W == 832.1)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint5 (line 1) In solutionTest (line 11)]

6   Pass
[W,H]=teledims(16,10,92); assert(H == 48.8 && W == 78.0)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint6 (line 1) In solutionTest (line 13)]

7   Pass
[W,H]=teledims(2.4,1,92); assert(H == 35.4 && W == 84.9)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint7 (line 1) In solutionTest (line 15)]

8   Pass
[W,H]=teledims(16,10,32); assert(H == 17.0 && W == 27.1)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint8 (line 1) In solutionTest (line 17)]

9   Pass
[W,H]=teledims(3,2,82); assert(H == 45.5 && W == 68.2)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint9 (line 1) In solutionTest (line 19)]

10   Pass
[W,H]=teledims(16,10,82); assert(H == 43.5 && W == 69.5)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint10 (line 1) In solutionTest (line 21)]

11   Pass
[W,H]=teledims(16,10,60); assert(H == 31.8 && W == 50.9)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint11 (line 1) In solutionTest (line 23)]

12   Pass
[W,H]=teledims(3,2,92); assert(H == 51.0 && W == 76.5)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint12 (line 1) In solutionTest (line 25)]

13   Pass
[W,H]=teledims(1.85,1,1000); assert(H == 475.5 && W == 879.7)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint13 (line 1) In solutionTest (line 27)]

14   Pass
[W,H]=teledims(2.4,1,42); assert(H == 16.2 && W == 38.8)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint14 (line 1) In solutionTest (line 29)]

15   Pass
[W,H]=teledims(1.85,1,27); assert(H == 12.8 && W == 23.8)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint15 (line 1) In solutionTest (line 31)]

16   Pass
[W,H]=teledims(16,10,82); assert(H == 43.5 && W == 69.5)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint16 (line 1) In solutionTest (line 33)]

17   Pass
[W,H]=teledims(4,3,46); assert(H == 27.6 && W == 36.8)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint17 (line 1) In solutionTest (line 35)]

18   Pass
[W,H]=teledims(2.4,1,60); assert(H == 23.1 && W == 55.4)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint18 (line 1) In solutionTest (line 37)]

19   Pass
[W,H]=teledims(4,3,92); assert(H == 55.2 && W == 73.6)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint19 (line 1) In solutionTest (line 39)]

20   Pass
[W,H]=teledims(1.85,1,60); assert(H == 28.5 && W == 52.8)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In teledims (line 2) In ScoringEngineTestPoint20 (line 1) In solutionTest (line 41)]