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.

Stats:

CreatedSep 30, 2015
Warriors Trained169
Total Skips16
Total Code Submissions328
Total Times Completed75
JavaScript Completions55
Python Completions13
Ruby Completions9
Total Stars2
% of votes with a positive feedback rating100% of 1
Total "Very Satisfied" Votes17
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes3
Ad
Contributors
  • danleavitt0 Avatar
  • GiacomoSorbi Avatar
Ad