Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to write a program in PYTHON that asks the user to choose between losing weight or gaining muscle. I have a problem,

I am trying to write a program in PYTHON that asks the user to choose between losing weight or gaining muscle. I have a problem, though, because even if I pick lose weight it will not only ask user questions only pertaining to people with weight concerns but also the people with the desire to gain muscle. How do I eliminate that problem? I included my image from the visual studios document and copy and pasted the code below.image text in transcribed

overallGoal= str(input("Do you desire to lose weight or gain muscle? ")) if overallGoal == "lose weight" or overallGoal == "LOSE WEIGHT": currentWeight = int(input("Please enter current weight in pounds. ")) idealWeight= int(input("Please enter the weight you wish to obtain ultimately. "))

else if overallGoal == "gain muscle" or "GAIN MUSCLE": maxBench = int(input("Please enter your current 1 rep max bench press in pounds. ")) idealmaxBench= int(input("Please enter your ideal 1 rep max bench press in pounds. ")) maxbackSquat = int(input("Please enter your current 1 rep max back squat in pounds. ")) idealmaxSquat= int(input("Please enter your ideal 1 rep max back squat in pounds. ")) maxmilitaryPress= int(input("Please enter your current 1 rep max military press in pounds. ")) idealmilitaryPress = int(input("Please enter your ideal 1 rep max military press in pounds. ")) maxdeadLift= int(input("Please enter your current 1 rep max deadlift in pounds. ")) idealdeadLift= int(input("Please enter your ideal 1 rep max deadlift in pounds. "))

goalSetting= str(input("Do you wish to set goals biweekly or monthly? ")) if goalSetting == "biweekly" or goalSetting== "BIWEEKLY" && goalSetting == :

5hopity Python libra x 9. Classes python 3 pythorir Else: An In-C Chegg Study I Guided G and statement python x x x x C Secure I https://www.chegg.com/study/qa/post Chegg. Study TEXTBOOK SOLUTIONS EXPERT Q&A Search I submit one question per post 2 Get a fast expert answer within hours 3 Post u Exercise App-Microsot Visual Studio Quick Lau File Edit View Project Build Debug Team Tools Test Analyze Window Help Vie've notices that a tocl window 'Errer Lis is slowing Visual Studio.Manage Visual Studio Performance fx workout I am try pick los eliminat oveloal- str(input("Do you desire to lose weight or gain muscle?")) 4it overallGoal"lose weight" or overallGoal"LOSE WEIGHT" overallG if overa currentWeightint (input("Please enter current weight in nounds. ")) idealweight- int (input(" Please enter the weight you wish to obtain ultimately. ")) else if overallGoal"gain muscle" or "GAIN MUSCL 18 Selec11 12 13 14 15 16 17 axBench- int (input("Please enter your current 1 rep max bench press in pounds. ")) idealmaxBench- int(input("Please enter your ideal 1 rep max bench press in pounds. ")) maxbackSquat int(input("Please enter your current 1 rep max back squat in pounds.")) idealmaxSquat- int (input("Please enter your ideal 1 rep max back squat in pounds. ")) maxmilitaryPress- int (input "Please enter your current 1 rep max military press in pounds. ")) idealmilitaryPress int(input ( "Please enter your ideal 1 rep max military press in pounds. ")) maxdeadLift- int(input("Please enter your current 1 rep max deadlift in pounds. " idealdeadl ift- int nput"Please enter your ideal 1 rep max deadlift in pounds ")) Math Algeo 19 alsettine- str(input"Do you wish to set goals biweekly or monthly?") if goalsetting = "biweekly" or goa 1 setting--"HIWtEKLY" && goalsetting-w 21 Preca 23 3:34 PM Type here to search

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

4. What decision would you make and why?

Answered: 1 week ago

Question

3. Review the evidence. Do you believe the testimony presented?

Answered: 1 week ago

Question

1. What are the marketing implications of this situation?

Answered: 1 week ago