IN PYTHON PLEASE CAN YOU PLEASE WRITE THE PROGRAM 3 TIMES TO REFLECT THE ASSIGNMENT NOT JUST ONE COD

IN PYTHON PLEASE

CAN YOU PLEASE WRITE THE PROGRAM 3 TIMES TO REFLECT THE ASSIGNMENT NOT JUST ONE CODE Section 1: Create the program Create a program that allows the user to play Blackjack against a computer dealer Console BLACKJACK! Blackjack payout is 3:2 Money: 100.0 Bet amount: 10 DEALER' S SHOW CARD: 9 of Diamonds YOUR CARDS 5 of Hearts 5 of clubs Hit or stand? (hit/stand): hit YOUR CARDS: 5 of Hearts 5 of Clubs 7 of Diamonds Hit or stand? (hit/stand) stand DEALER' S CARDS: 9 of Diamonds Jack of Hearts YOUR POINTS: 17 DEALER S POINTS: 19 Sorry. You lose. Money: 90.0 Play again? (y/n) Come back soon! Bye! Specifications If necessary, learn the rules of Blackjack by researching it on the web. For this program The dealer must continue taking cards until the dealer has at least 17 points Don't allow a player to “split” a hand or “double down.” The program should accept integer or float entries for the bet amount. Getting a blackjack pays out 3:2, which is 1.5 times the bet amount The program should round the blackjack payout to a maximum of two decimal places Section 1: Create the program (continued) Specifications (continued) Use a list to store the suit, rank, and point value for each card. Use a list of lists to store the cards in the deck. You can uset create the deck of cards Use a list of lists to store the dealer's hand and the player's hand. two nested loops to When the program starts, it should read the player's money amount from a CSV file named money.txt. The program should write the player's money amount to a file any time the data is changed Store the functions for writing and reading the money amount in a separate module named db.py Handle the exception that occurs if the program can't find the data file. Handle the exceptions that occur if the user enters a string where an integer or float value is expected The program should validate the bet amount The minimum bet should be 5 The maximum bet should be 1,000. . The bet can't be bigger than the player's current amount of money If the money amount drops below the minimum bet (5), the program should give the player the option to buy more chips. Section 2: Improve the program Use the skills you learned in section 2 to improve this program. This should improve the appearance of the console and the readability of the code Console BLACKJACK! Blackjack payout is 3:2 Start time: 11:43:03 AM Money: $110.00 Bet amount: 10 DEALER S SHOW CARD 6 of Clubs YOUR CARDS 9 of Clubs Jack of Clubs Hit or stand? (hit/stand) stand DEALER' S CARDS 6 of Clubs Queen of Hearts Queen of Diamonds YOUR POINTS DEALER S POINTS: 26 19 Yay! The dealer busted. You win! Money: $120.00 Play again? (y/n): n Stop time: 11:43:20 AM Elapsed time: 00:00:16 Come back soon! Bye! Specifications Use the locale module to display the amount of money in the format for your current locale Make sure the program doesn't yield incorrect money amounts due to floating-point errors When the program starts, display the start time at the top of the console using the 12- hour format and include hours, minutes, and seconds. When the program ends, display the end time using the 12-hour format as well as the amount of time that elapsed while the program was running Use a dictionary to store the data for each card: rank, suit, and points. This shouldn't change the functionality of the program, but it should make the code easier to read and understand Section 3: Create an object-oriented program Convert the Blackjack program from procedural to object-oriented. This shouldn't change the functionality of the code, but it should make the code more modular, reusable, and easier to maintain. Console BLACKJACK! Blackjack payout is 3:2 Start time: 11:43:03 AM Money: $110.00 Bet amount: 10 DEALER' S SHOW CARD: 6 of Clubs YOUR CARDS 9 of clubs Jack of Clubs Hit or stand? (hit/stand): stand DEALER' S CARDS: 6 of clubs Queen of Hearts Queen of Diamonds 19 YOUR POINTS: DEALER S POINTS: 26 Yay! The dealer bus ted. You win! Money: $120.00 Play again? (y/n): n Stop time: 11:43:20 AM Elapsed time: 00:00:16 Come back soon! Bye! Specifications Use a Card class that provides attributes that store the rank, suit, and points for a card. This class should provide a_str_method that returns a string that includes the rank and suit of the card. Use a Deck class that provides for a standard 52-card playing deck. This class should include methods that allow you to shuffle the deck and to deal cards from it Use a Hand class to store the dealer's hand and the player's hand. This class should include methods that allow you to add a card, get a card, count the number of cards and get the total points for a Blackjack hand. It should also include an iterator. Use a file named ui to store the code for the user interface. Use a file named objects to store the code for the Card, Deck, and Hand classes . Use a file named db to store the functions that work with the data file.

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code SAVE15 for 15% discount