Tax Season ! How much is my salary? - MATLAB Cody - MATLAB Central

Problem 2196. Tax Season ! How much is my salary?

Difficulty:Rate

Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of the week starting from first Friday since I am employed. Help me find out how much did I earn during my employment period.

Example

 x = 01-Jan-2014
 y = 14-Feb-2014
 z = $2000 (x will always be <y)

This period has total 4 alternate Fridays which were my "pay-days", so the salary for this period was 4*2000 = %8000

Solution Stats

48.51% Correct | 51.49% Incorrect
Last Solution submitted on Jan 01, 2025

Problem Comments

Solution Comments

Show comments

Group

Number theory Image
Number theory
  • 44 Problems
  • 21 Finishers

Problem Recent Solvers63

Community Treasure Hunt

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

Start Hunting!
Go to top of page