Question

Can someone write me, in python pseudocode, and it doesn't have to be modular, actually, I...

Can someone write me, in python pseudocode, and it doesn't have to be modular, actually, I prefer it not to be modular, for the following question below: If a moderately active person cuts their calorie intake by 500 calories a day, he or she can typically lose about 4 pounds a month. Write a program that has the user enter their starting weight and then displays a table showing what their expected weight will be at the end of each month for the next 6 months if they stay on this diet

Homework Answers

Answer #1

weight = float(input('Enter starting weight:'))
print('Month\t Weight')#print header
for i in range(6):
weight-=4#subtract weight for each month
print('{:<5}\t{:>10}'.format(i+1,weight))#display weight

  
#psuedo code
get input weight
print headers
run loop for 6 times:
subtract 4 from the weight
print weight along with month

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT