Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The explanation of the steps does not seem to solve and match the output. Im showing 9 errors on my side even if I followed

The explanation of the steps does not seem to solve and match the output. Im showing 9 errors on my side even if I followed and did every single step shown above. Pls help me create the actual Python codes and commands so when I run it, it will show the needed outputs. Pls help me. Thank you
Create a new file named cards.py (2 points) Make sure that cards.py and assignment8.py is in the same directory / folder In cards.py, define a class with the name Card (2 points) Be sure to give it a constructor, it should take in two extra arguments, one for the suite of the card and another for the card's value (numerical). The assignment8.py file is using this yet to be defined constructor of the Card class to populate the Card's initial data. (2 points) Also define a method within the class with the name: get_display_string (2 points) In the get_display_string method, return a string value that will be used to display what Card this is in an easy to read format. As the user, I want to see what suite the card is and if the card's value is over 10, I want the value to be displayed as "Jack", "Queen", "King", "Ace". That is, an 11 will be displayed as "Jack", 12 as "Queen", 13 as "King", and in a special case 1 will be displayed as "Ace" (since there is no "1" card). Values from 2 to 10 can be displayed as a number. I want the suites to be read in some way other than 1,2,3,4; e.g. Clubs, Spades, Hearts, Diamonds. (2 points)
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

Step: 3

blur-text-image

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago

Question

The nature and importance of the global marketplace.

Answered: 1 week ago