1,Write a graphics program that changes colors depending where the user clicks on the window. If the user clicks on the left side, your name (or initials) should appear in green in the window. If the user clicks on the right side, your name (or initials) should appear in red in the window. (You may write your name in text or initials using graphics or text, and you may color the letters or the background-- just as long as it is clear hat the color has changed when the mouse is clicked on the left or the right). Your program should allow the user to click 5 times before ending the program

2,Write a function that takes as two parameters: the zone and the ticket type, and returns the Copenhagen Transit fare.
If the zone is 2 or smaller and the ticket type is "adult," the fare is 23.
If the zone is 2 or smaller and the ticket type is "child," the fare is 11.5.
If the zone is 3 and the ticket type is "adult," the fare is 34.5.
If the zone is 3 or 4 and the ticket type is "child," the fare is 23.
If the zone is 4 and the ticket type is "adult," the fare is 46.
If the zone is greater than 4, return a negative number (since your calculator does not handle inputs that high).

3,Write a program that allows the user to choose which currency they would like to convert. Using the chart from #5, choose the currencies that begin with the first five unique letters of your name. You should print out the currencies your program will convert, ask the user for their currency choice, and then amount of money to be converted. Your program should then print the amount of money in the chosen currency. For example:
Sameh's Currency Converter
Converts from dollars into Somali Shilling, Afghan Afghanis, Moroccan Dirhams,
Euros, and Hungarian Forints.
Choose a currency ('S', 'A', 'M', 'E', 'H'): h
What amount: 1000

The chosen currency is: Hungarian Forints
The converted amount is: 4.56
4,Write a program that asks a user to enter a list of clothing items purchased. Your program should then calculate their total bill with tax. In New York City, the tax on clothing items that priced $110 or less is 0%. The tax on clothing items priced more than $110 is 8.5%.
Here is a sample run of the program:

Please enter clothing prices, separated by commas: 100, 9.99, 200, 159.99

Your receipt:
    200.00 T
    159.99 T
5,Write a program that asks the user to enter a number between -10 and 10. If they enter a number out of range, print a message that the number is out of range and prompt them again for a number between 1900 and 2012. When the user enters a number in range, print the number to the screen and end the program.

6, Write a guessing word program. First, pick a word, name, or phrase for the user to guess,
While the user has not guessed the word, print out two messages: one that says whether the message that was entered is too short, just right, or too long. Your second message should tell the user if there guess was before or after in the ordering of strings. Your game should continue until they guess your secret string and then should print a message congratulating them.

7.Write a program that asks the users to enter a sequence of amounts to credit or debit to their account. Your program should continue to process their amounts as long as their balance is positive. If at any point they have a negative balance, print a message and end the program. If you are able to process all the amounts, print the final balance to the screen before ending the program. You may assume that their beginning balance is $1000.
One sample run of the program:

Please enter the amounts to credit/debit from your account, separated by commas:

Beginning Balance: $1000.00

Amount: -500
Balance: $500.00
Amount: 100.01
Balance: $600.01
Amount: -1000

Your balance has dropped below 0! Please contact the bank immediately!

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

#This program converts currencies using L, I, Y, K, A as the currency codes from
#chart 5. It will keep running if an incorrect currency code is entered, but
#it will quit if an incorrect number is entered. Also this program rounds the
#value to 2 decimal places

exchanged = 0
while(exchanged == 0):
    print("What currency would you like to convert from US dollars to?")
    print("Lebanese Pound (LPP)")
    print("Indonesian Rupiah (IDR)")
    print("Yemeni Rial (YER)")
    print("Kenyan Shilling(KES)")
    print("Afghan Afghani (AFN)")...

By purchasing this solution you'll be able to access the following files:

50% discount

$36.00 $18.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats