Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Input SET is played with a special deck of cards. Each card has four attributes: 1. Color 2. Symbol 3. Shading (of symbols) 4. Number

Input SET is played with a special deck of cards. Each card has four attributes: 1. Color 2. Symbol 3. Shading (of symbols) 4. Number of symbols) Each attribute has three potential values and each card is unique, so there are a total of 81 (34) possible cards. In the input to our program, the four attributes of a SET card will be represented as follows: 1. Color -- one of the words "blue", "green", or "yellow" 2. Symbol -- the three symbols will be represented by the letters A, S, and H 3. Shading - the shading of the symbols will be represented by the case of the letter: one of lower-case (a,s,h), upper-case (A, S, H), or "symbol-case" (@. $. #) 4. Number -- the letter will appear one, two, or three times For example, possible SET cards include: yellow S -- one Yellow upper-case S blue aaa -- three Blue lower-case A's green ## -- two Green symbol-case H's The input to our program will be through standard input (not through a file) and will contain an integer N, with 3

image text in transcribed

Input SET is played with a special deck of cards. Each card has four attributes: 1. Color 2. Symbol 3. Shading (of symbols) 4. Number of symbols) Each attribute has three potential values and each card is unique, so there are a total of 81 (34) possible cards. In the input to our program, the four attributes of a SET card will be represented as follows: 1. Color -- one of the words "blue", "green", or "yellow" 2. Symbol -- the three symbols will be represented by the letters A, S, and H 3. Shading - the shading of the symbols will be represented by the case of the letter: one of lower-case (a,s,h), upper-case (A, S, H), or "symbol-case" (@. $. #) 4. Number -- the letter will appear one, two, or three times For example, possible SET cards include: yellow S -- one Yellow upper-case S blue aaa -- three Blue lower-case A's green ## -- two Green symbol-case H's The input to our program will be through standard input (not through a file) and will contain an integer N, with 3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions