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

 

abraskin@mbusd.org 2016_problem_set_06-djklslwf > adjustedScores
prev  |  next  |  chance

Given two parallel arrays, one of student names, and an equal length array of integer scores, return a parallel array of modified scores such that the same number of points is added to each original score so that the highest score is 100.


adjustedScores(["Fritz", "Clyde", "Monty", "Penelope", "Liza"], [94, 95, 100, 100, 95]) → [94, 95, 100, 100, 95]
adjustedScores(["Adam", "Belinda", "Carly", "Jimmy", "Ann"], [94, 95, 99, 88, 92]) → [95, 96, 100, 89, 93]
adjustedScores(["Ken", "Gena", "Jason", "Aaron", "Shawn", "David"], [97, 70, 95, 92, 75, 75]) → [100, 73, 98, 95, 78, 78]

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

public int[] adjustedScores(String[] names, int[] scores) { }

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: 200

Copyright Nick Parlante 2017 - privacy