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

 

gaurav.gupta@mq.edu.au arrays > tayTayTix
prev  |  next  |  chance

Taylor Swift is coming to Australia (Eeeeeeeee!!!) and has concerts in Sydney and Melbourne. The ticket prices are stored in an array named tayTay. Define a function that when passed this array, returns the average price of the tickets.


tayTayTix([10, 21]) → 15.5
tayTayTix([70, 80, 90, 101]) → 85.25

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

double tayTayTix(int[] tayTay) { }

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

Difficulty: 3 Post-solution available

Copyright Nick Parlante 2017 - privacy