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
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
Get Answers For Free
Most questions answered within 1 hours.