subject
Computers and Technology, 11.06.2021 03:10 wrolle

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)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
Create a new file named cards. py (2 points) Make sure that cards. py and assignment8.py is in the s...
Questions
question
Mathematics, 14.07.2019 09:30
question
Mathematics, 14.07.2019 09:30