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

 

davereed@creighton.edu > blinksPerDay
prev  |  next  |  chance

blinksPerDay() - You are given two integers, denoting a number of seconds and the number of times a person has blinked during that duration. Assuming a consistent blink rate, you must calculate and return the total number of blinks over a day (24 hours). The number of blinks per day should be rounded to the nearest integer.


blinksPerDay(60, 30) → 43200
blinksPerDay(60, 40) → 57600
blinksPerDay(100, 50) → 43200

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

public int blinksPerDay(int numSeconds, int numBlinks) { }

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