id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com logic > logic_calculateScore
prev  |  next  |  chance

Write a method that will calculate your score when you beat a Mario level. Your score in Mario is 100 for every coin you collected plus how much time you had remaining.


logic_calculateScore(1, 300) → 400
logic_calculateScore(2, 250) → 450
logic_calculateScore(4, 50) → 450

...Save, Compile, Run (ctrl-enter)

public int logic_calculateScore(int coins, int time) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy