Sep-14-2017, 10:37 PM
(Sep-14-2017, 09:12 AM)Larz60+ Wrote: We will not write it for you.
Here's some Pseudo code to help:
- Begin function
- Declare constant: loss_per_month = 4
- Enter starting weight
- Create empty list to hold weights hint: weights = []
- Ask Starting weight and save in cell 0 of list
- Iterate through loop 6 times, start at 1, continue through 6
- weights[index] = weights[index-1] - loss_per_month
- finish loop
- display contents of loop
Thank you for at least doing this. Unfortunately, I can't remember how to do lists for the life of me. I've gone through my textbook in the chapters we've covered and couldn't find anything about it and I've been googling for help online and haven't found any clear answer on how to do it. At this rate, my homework for this class will never be done.