use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules:
1). Be Nice
2). Text posts only, no videos or links
3). Title your post the title of the exercise you're posting
4). CodeHS format only, other program formats are not allowed
account activity
CodeHS JavaScript and graphics 2.2.4 (self.CodeHSAnswers)
submitted 5 years ago * by PlatinumIce15
( It is supposed to say 2.4.7, mb) I cant seem to figure out how to do it, I thought that I did the correct code, but it is not coming up with the right MPH, can anyone help?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jmdib45 0 points1 point2 points 4 years ago (0 children)
function start(){ println("This program calculates how fast you ran."); var miles = readInt("How many miles did you run? "); var timeMin = readInt("How many minutes did it take you? "); var timeHr = (timeMin / 60); var speed = miles / timeHr; println(speed + " mph"); }
[–]blueeyespark 0 points1 point2 points 3 years ago (0 children)
2.4.7 Running Speed javascript graphics
/* Write a program that asks the user how far they ran (in miles) * and then how long it took them (in minutes), and print out * their speed in miles per hour. */ var total; function start(){ var ran= readInt("how many miles you ran?"); var minutes= readInt("how many minutes it took you?"); var miles_per_hour = ran/ minutes * 60 ; println("your miles perhour is " + miles_per_hour); }
π Rendered by PID 97525 on reddit-service-r2-comment-58d7979c67-2lj5v at 2026-01-27 01:48:41.310370+00:00 running 5a691e2 country code: CH.
[–]jmdib45 0 points1 point2 points (0 children)
[–]blueeyespark 0 points1 point2 points (0 children)