Answered step by step
Verified Expert Solution
Link Copied!

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 $20K and
get a 7 percent raise each year?
Initialize salary to 20K.
Initialize year to 0.
Initialize percent annual raise to 7.
While salary 1m, the program calculates the new
salary (salary = salary + raise amount) and accumulates
the number of years (year = year +1).
Finally, print out "Salary exceeded a million dollars after
fill_in_number_of_years years".
image text in transcribed

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago