PROG24178 Study Guide - Midterm Guide: Init

69 views4 pages
7 Feb 2022
Course
Professor

Document Summary

Modify the suit enum: assign a number to each suit (1 to 4), a display name for each suit, and a unicode character code for the suit"s symbol. The unicode values for each suite are in the table below. Make sure you add the appropriate data members, accessor methods, and a constructor. Unicode values for suit symbols(store in char datatype) Modify the rank enum: assign a numeric value to each card rank (jacks are. 11, queens are 12, kings are 13, and aces are 1), a name for each card (e. g. "two", "five", "jack", "ace"), and a short name for each card (e. g "2", "5", "j", Add the appropriate data members, accessor methods, and a constructor: c. create a regular class called card with the following members: The mutator methods don"t require validation since you can"t pass anything invalid into the parameters: just assign the parameter to the data member.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions