There is a file attached that contains multiple lines. On each alternating line you will find a
Fantastic news! We've Found the answer you've been seeking!
Question:
There is a file attached that contains multiple lines. On each alternating line you will find a double and then a boolean.
Your task: Sum all doubles that are followed by a true value, and ignore all values that are followed by a false value.
the file is called "Problem13"
The text file has this inside of it:
0.35057989617641006 false 0.4011745518570221 true 0.8704329175145333 false 0.5005129666820816 false 0.7180188199150055 true 0.49528176330332896 true 0.619406521897445 false 0.12286890045943932 false 0.9600368538079368 true 0.6225288689441805 true 0.4915916606255619 true 0.3599636189832842 false 0.7679810581020672 true 0.14545305067452552 true
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date: