CJCoding With Joseph

Constant Field

The TimeConverter class should define a public constant DaysInWeek equal to 7 and a method WeeksToDays(int weeks) that returns weeks * DaysInWeek. Do NOT write a Main method.

For WeeksToDays(3) the program prints:
21

Expected Output:

21
Topics:
Encapsulation
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.