Draft
Grasshopper - Fantasy points
55 of 75danleavitt0
Description:
Fantasy points
You are playing a fantasy sports league and are trying to figure out the total number of points that your team earned this week. Your team had a total of 4 goal, 3 assists, 4 chances created, 5 shots on target, 3 crosses, and 10 successful dribbles. The points break down is like this:
Event | Points |
---|---|
Goals | 9 |
Assists | 6 |
Chances Created | 3 |
Shots on Target | 2 |
Crosses | 1 |
Successful Dribbles | 1 |
Create 6 variables to store the quantity of each event. The variables should be named:
goals
assists
chancesCreated
shotsOnTarget
crosses
successfulDribbles
Create a variable points
that finds the total number of points your team earned for the week.
Similar Kata:
Stats:
Created | Sep 30, 2015 |
Warriors Trained | 169 |
Total Skips | 16 |
Total Code Submissions | 328 |
Total Times Completed | 75 |
JavaScript Completions | 55 |
Python Completions | 13 |
Ruby Completions | 9 |
Total Stars | 2 |
% of votes with a positive feedback rating | 100% of 1 |
Total "Very Satisfied" Votes | 17 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 3 |