Cody

Problem 1658. Simple equation: Annual salary

Solution 264120

Submitted on 19 Jun 2013 by matlab.zyante.com
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% wage = 10; salary_correct = 10*2000; assert(isequal(ComputeSalary(wage),salary_correct))

2   Pass
%% wage = 30; salary_correct = wage * 2000; assert(isequal(ComputeSalary(wage),salary_correct))

3   Pass
%% wage = 12.50; salary_correct = wage * 2000; assert(isequal(ComputeSalary(wage),salary_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!