Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def main ( ) : reply = input ( What color would you like? ) if elif color = elif : else: print ( I
def main:
reply input "What color would you like?"
if
elif
color
elif
:
else:
print "I don't know that color. Please pick again."
Please fill in the blanks and complete the codes by
following the chart above.
Write a program to find how long it takes to have a
million dollar salary, if you start by making $ and
get a percent raise each year?
Initialize salary to
Initialize year to
Initialize percent annual raise to
While salary the program calculates the new
salary salary salary raise amount and accumulates
the number of years year year
Finally, print out "Salary exceeded a million dollars after
fillinnumberofyears years".
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started