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

 

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

Taylor Swift is coming to Australia (Eeeeeeeee!!!) and has concerts in Sydney and Melbourne. The number of tickets sold in each concert is stored in an array. Define a function that when passed this array, returns the total tickets Tay Tay sold.


tayTayTixSold([10000, 100002, 10323]) → 120325
tayTayTixSold([]) → 0
tayTayTixSold([8]) → 8

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

int tayTayTixSold(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: 2 Post-solution available

Copyright Nick Parlante 2017 - privacy