SlideShare a Scribd company logo
1 of 2
Download to read offline
Due: Sunday, March 12, 2023 at 11:59pm 100 pts Instructions: YOU WILL SUBMIT MULTIPLE
FILES FOR THIS PROGRAMMING PROJECT. Create a subdirectory named "hw2" in your cs410
directory. Use that subdirectory for all your file submissions on this assignment. At the end of the
homework assignment, as a minimum, these files should be found in your hw2 directory: -
hw2_functions.cpp (function definitions) - hw2_functions.h (function declarations) - hw2.cpp (main)
- a "typescript" file demonstating program compilation, execution and testing You may include
other source/header files if you please. Background: After weeks of stress, Krusty is taking a
vacation to Atlantis. But now, the Atlantians (those wierdos living in Atlantis) have made it so that
he can't leave to go back home unless he jumps through the right hoops. Those "hoops" are that
be first visits with enough of the inhabitants (weirdos) to satisfy the Atlantis Visitors' Bureau. And
to prove that he has done so, he has to collect the business cards of each one he visits and show
the "gate keepers" as he leaves. There's just one problem .... Krusty is his own worst enemy in
that he has a business card fetish: he won't carry in his hands multiple cards unless he can stack
them in such a way that no card is smaller than the card below it'. Now, he can orient the stacked
cards any way he wants, but a card can't "hang over" (or be the same size as) the card above it.
This is stupid, but oh well! It's part of the reason why Krusty is an interesting character. Fortunately
for Krusty, there's an out: IF he visits enough different inhabitants, then he can get out of Atlantis
regardless of how the cards are stacked. Specifications: Your program is to simulate this situation.
Krusty will visit at random some of the various "creatures" (inhabitants) of Atlantis, whereupon
each of the creatures will say something chosen at random from a list of comments (below), and
then give him their card which he will put in his pocket. Each creature has a card specific to them.
What is important about their card is its dimensions: length and width (assume these are integers).
Each time he gets a card, he needs to assess whether or not be can leave Atlantis (like really! No
good hay-bars...only sushi restaurants.) When he confirms he has satisfied the Rules of
Leavature, he needs to output an exclamation that he is leaving (we'll leave the wording up to you
- make it clean) and returning home, and state with detail what gives him the right to leave.
Leavature Rules are specified below. And what details are we expecting? Either output the names
of the ereatures' cards and their dimension of the 6 stackable cards', or output the 14 different
names of the 14 different creatures he got cards from. I As an example: card1 is 48, card2 is 29.
These can NoT satisfy Krusty/s criteria since there is no way to orient (at right angles) these two
cards without one hanging over the other. As another example; cardl is 23 and carde is I x2.
These two. CAN satisfy Krusty's criteria since card 2 can be stacked below cardl in a way that it
will not hang over the top card since 1 c 2 and 2<3. So, you ice, you must compare the cands in
both oricatations. Both dimensions of a lower card must not exceed. either dimensions of an upper
card, and at least one dimension of an upper card must be strictly greater than at least one.
dimension of a lower card. (Another ex: a 11 card can be below a 12 card)Details: - You are
expected to use a struct for a creature that includes its name and the dimensions of its card. - You
are expected to use arrays in this assignment as appropriate. For example, you could set up a
const string array loaded with the sayings that the creatures can speak. Think about how you
could randomly choose an entry from that array. - You can assume that our hero Krusty will collect
no more than 150 cards. (Hmmmm, is that another hint about an appropriate use of arrays???) -
Leavature Rules (a.k.a. Rules of Leavature): Krusty can leave if he has 6 (six) "stackable"l cards
(like, you know, n'stuff, non-overlapping); OR he has cards from 14 different creatures (implies 11
tunas' cards and 3 sardines' cards ain't gonna do it!) - In your code, generate a random creature
before you generate a random saying. - If you end up stacking cards that you had repeats of (e.g.
you stack a 23 and you got two of these cards from two different creatures), we care not which
creature's card you use. - Each creature has many cards. So, each time it is visited, it can hand a
card to Krusty - Here's the data to use (creature and their card specs): WandaWalrus
StanleySardineSylviaSeahorseJanieJellyfishDorisDolphinBobBlobfishSammySharkWalterWhale
StevieSafmonSheilaShellfishDanielOctopusMarkHerringsBernieTunaOscarTilapia2631421108415
8462231337953553 - Here's a list of the things they can say: Whazcup? Duuude, totally love the
clown head and human body combol" Looking for a card (shark)? Are you someone famous? You
look fishy to me; or are you clowning around? Don't trust the salmon!I! Here's some advice: the
shark wants you to be his chum! Better take some paper towels if you visit the blobfish Hey man,
got any sea-weed? Let me give you my card. my phone number is on the back. Id gladly pay you
Tuesday for a lobster roll today. Don't be so crabby! Just keep swimming, swimmin, swimming.
You just keep sinking, sinking, sinking,Special Underwater Observation: You will find your coding
easier if you were to sort your cards when gathering them. Think carefully how this has to be done.
You wouldn't want to overload your day with an overload of work when overloading your brain
while coding... When you submit: seed your random number generator with 37 . Please
understand that we specify the seed for submission on the hopes that your output will be the same
as everyone else. However, because of slight differences in how you all code, this may not work
out as planned. But, we're hoping that it pays off to some significant degree. And, as always, let
your instructor know if you need any help.

More Related Content

More from info317548

Downtown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfDowntown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfinfo317548
 
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfE56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfinfo317548
 
e We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfe We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfinfo317548
 
e wwwR that is w is a palindrome f g The set of.pdf
e wwwR that is w is a palindrome  f  g The set of.pdfe wwwR that is w is a palindrome  f  g The set of.pdf
e wwwR that is w is a palindrome f g The set of.pdfinfo317548
 
E coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfE coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfinfo317548
 
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdfDoru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdfinfo317548
 
E Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfE Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfinfo317548
 
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfDynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfinfo317548
 
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfE 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfinfo317548
 
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfdxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfinfo317548
 
e Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfe Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfinfo317548
 
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfDwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfinfo317548
 
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfDuygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfinfo317548
 
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfDove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfinfo317548
 
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
Durum 2 International Foodsta novasyon   sorular 15  1 T.pdfDurum 2 International Foodsta novasyon   sorular 15  1 T.pdf
Durum 2 International Foodsta novasyon sorular 15 1 T.pdfinfo317548
 
During transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfDuring transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfinfo317548
 
During the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfDuring the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfinfo317548
 
During the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfDuring the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfinfo317548
 
During the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfDuring the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfinfo317548
 
During the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfDuring the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfinfo317548
 

More from info317548 (20)

Downtown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdfDowntown Bancshares has 32000 shares of 10 par value commo.pdf
Downtown Bancshares has 32000 shares of 10 par value commo.pdf
 
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdfE56 Static Preparing a Bank Reconciliation and Journal En.pdf
E56 Static Preparing a Bank Reconciliation and Journal En.pdf
 
e We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdfe We are both tropical epiphytes that have symbiotic relati.pdf
e We are both tropical epiphytes that have symbiotic relati.pdf
 
e wwwR that is w is a palindrome f g The set of.pdf
e wwwR that is w is a palindrome  f  g The set of.pdfe wwwR that is w is a palindrome  f  g The set of.pdf
e wwwR that is w is a palindrome f g The set of.pdf
 
E coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdfE coli cells are simultaneously infected with two strains o.pdf
E coli cells are simultaneously infected with two strains o.pdf
 
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdfDoru ya da yanl  7 1920 sonbaharnda Wall Streetteki bomba.pdf
Doru ya da yanl 7 1920 sonbaharnda Wall Streetteki bomba.pdf
 
E Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdfE Assume instead of 24 bits for the network address part of.pdf
E Assume instead of 24 bits for the network address part of.pdf
 
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdfDynamics of Accumulation Stocks are accumulations The diffe.pdf
Dynamics of Accumulation Stocks are accumulations The diffe.pdf
 
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdfE 55 F 65 G 75 14 In the following pedigree a single ge.pdf
E 55 F 65 G 75 14 In the following pedigree a single ge.pdf
 
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdfdxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
dxyi1Nyixi2path dM702 80H40000040H742v3239l4 4.pdf
 
e Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdfe Gire the mnan and the standard devistion of the sampling.pdf
e Gire the mnan and the standard devistion of the sampling.pdf
 
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdfDwightn grd bir Instagram gnderisine gre asalak yass .pdf
Dwightn grd bir Instagram gnderisine gre asalak yass .pdf
 
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdfDuygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
Duygusal zekann nasl olduunu tartn farkndalk ve dikkatsizli.pdf
 
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdfDove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
Dove ve Dove Men+Care yan yana markalar olarak baarl olmaya.pdf
 
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
Durum 2 International Foodsta novasyon   sorular 15  1 T.pdfDurum 2 International Foodsta novasyon   sorular 15  1 T.pdf
Durum 2 International Foodsta novasyon sorular 15 1 T.pdf
 
During transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdfDuring transformation only one plasmid enters an E coli ce.pdf
During transformation only one plasmid enters an E coli ce.pdf
 
During the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdfDuring the first year of COVID19 there werent enough high.pdf
During the first year of COVID19 there werent enough high.pdf
 
During the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdfDuring the pandemic the Centers for Disease Control and Pre.pdf
During the pandemic the Centers for Disease Control and Pre.pdf
 
During the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdfDuring the month of March Sandhill Cos employees earned wa.pdf
During the month of March Sandhill Cos employees earned wa.pdf
 
During the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdfDuring the year Wright Company sells 515 remotecontrol air.pdf
During the year Wright Company sells 515 remotecontrol air.pdf
 

Recently uploaded

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Due Sunday March 12 2023 at 1159pm 100 pts Instructions.pdf

  • 1. Due: Sunday, March 12, 2023 at 11:59pm 100 pts Instructions: YOU WILL SUBMIT MULTIPLE FILES FOR THIS PROGRAMMING PROJECT. Create a subdirectory named "hw2" in your cs410 directory. Use that subdirectory for all your file submissions on this assignment. At the end of the homework assignment, as a minimum, these files should be found in your hw2 directory: - hw2_functions.cpp (function definitions) - hw2_functions.h (function declarations) - hw2.cpp (main) - a "typescript" file demonstating program compilation, execution and testing You may include other source/header files if you please. Background: After weeks of stress, Krusty is taking a vacation to Atlantis. But now, the Atlantians (those wierdos living in Atlantis) have made it so that he can't leave to go back home unless he jumps through the right hoops. Those "hoops" are that be first visits with enough of the inhabitants (weirdos) to satisfy the Atlantis Visitors' Bureau. And to prove that he has done so, he has to collect the business cards of each one he visits and show the "gate keepers" as he leaves. There's just one problem .... Krusty is his own worst enemy in that he has a business card fetish: he won't carry in his hands multiple cards unless he can stack them in such a way that no card is smaller than the card below it'. Now, he can orient the stacked cards any way he wants, but a card can't "hang over" (or be the same size as) the card above it. This is stupid, but oh well! It's part of the reason why Krusty is an interesting character. Fortunately for Krusty, there's an out: IF he visits enough different inhabitants, then he can get out of Atlantis regardless of how the cards are stacked. Specifications: Your program is to simulate this situation. Krusty will visit at random some of the various "creatures" (inhabitants) of Atlantis, whereupon each of the creatures will say something chosen at random from a list of comments (below), and then give him their card which he will put in his pocket. Each creature has a card specific to them. What is important about their card is its dimensions: length and width (assume these are integers). Each time he gets a card, he needs to assess whether or not be can leave Atlantis (like really! No good hay-bars...only sushi restaurants.) When he confirms he has satisfied the Rules of Leavature, he needs to output an exclamation that he is leaving (we'll leave the wording up to you - make it clean) and returning home, and state with detail what gives him the right to leave. Leavature Rules are specified below. And what details are we expecting? Either output the names of the ereatures' cards and their dimension of the 6 stackable cards', or output the 14 different names of the 14 different creatures he got cards from. I As an example: card1 is 48, card2 is 29. These can NoT satisfy Krusty/s criteria since there is no way to orient (at right angles) these two cards without one hanging over the other. As another example; cardl is 23 and carde is I x2. These two. CAN satisfy Krusty's criteria since card 2 can be stacked below cardl in a way that it will not hang over the top card since 1 c 2 and 2<3. So, you ice, you must compare the cands in both oricatations. Both dimensions of a lower card must not exceed. either dimensions of an upper card, and at least one dimension of an upper card must be strictly greater than at least one. dimension of a lower card. (Another ex: a 11 card can be below a 12 card)Details: - You are expected to use a struct for a creature that includes its name and the dimensions of its card. - You are expected to use arrays in this assignment as appropriate. For example, you could set up a const string array loaded with the sayings that the creatures can speak. Think about how you could randomly choose an entry from that array. - You can assume that our hero Krusty will collect no more than 150 cards. (Hmmmm, is that another hint about an appropriate use of arrays???) - Leavature Rules (a.k.a. Rules of Leavature): Krusty can leave if he has 6 (six) "stackable"l cards
  • 2. (like, you know, n'stuff, non-overlapping); OR he has cards from 14 different creatures (implies 11 tunas' cards and 3 sardines' cards ain't gonna do it!) - In your code, generate a random creature before you generate a random saying. - If you end up stacking cards that you had repeats of (e.g. you stack a 23 and you got two of these cards from two different creatures), we care not which creature's card you use. - Each creature has many cards. So, each time it is visited, it can hand a card to Krusty - Here's the data to use (creature and their card specs): WandaWalrus StanleySardineSylviaSeahorseJanieJellyfishDorisDolphinBobBlobfishSammySharkWalterWhale StevieSafmonSheilaShellfishDanielOctopusMarkHerringsBernieTunaOscarTilapia2631421108415 8462231337953553 - Here's a list of the things they can say: Whazcup? Duuude, totally love the clown head and human body combol" Looking for a card (shark)? Are you someone famous? You look fishy to me; or are you clowning around? Don't trust the salmon!I! Here's some advice: the shark wants you to be his chum! Better take some paper towels if you visit the blobfish Hey man, got any sea-weed? Let me give you my card. my phone number is on the back. Id gladly pay you Tuesday for a lobster roll today. Don't be so crabby! Just keep swimming, swimmin, swimming. You just keep sinking, sinking, sinking,Special Underwater Observation: You will find your coding easier if you were to sort your cards when gathering them. Think carefully how this has to be done. You wouldn't want to overload your day with an overload of work when overloading your brain while coding... When you submit: seed your random number generator with 37 . Please understand that we specify the seed for submission on the hopes that your output will be the same as everyone else. However, because of slight differences in how you all code, this may not work out as planned. But, we're hoping that it pays off to some significant degree. And, as always, let your instructor know if you need any help.