The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Phillip, Alex, Emily, and Neha have gotten together to play a game of Settlers of Catan. Each of them know that it is vital to get a good spot in the beginning of the game, yet each of them differ on their opinions of what makes a spot good. Each of them ranks the different resources in a different way. For example, Phillip thinks that sheep are the key to victory while Alex is a brick man. Help them figure out where they should put their starting settlement. Create a program that takes in a settlers board, with each tile being represented by a letter ID, a letter denoting which resource, and a roll frequency, followed by a list of the players and their ranking of each resource, and output the top spot each player should pick. .
Â
Â
Â
A board of tiles, followed by a list of people, followed by the ranking of each resource for that person. Each tile shall be represented with a letter ID, a letter for the resource, and a number for the frequency.
Â
Â
A list of people followed by a 3 letter code representing the vertex that person should pick..
Â
Â
Â
Â
Input: A W .1389 B G .1111 C S .1111 D B .0833 E S .0556 F B .1389 G S .0833 H S .1389 I S .1111 J D -10 K G .1111 L S .0278 M B .0556 N W .0278 O G .0833 P W .0556 Q G .0556 R W .0833 S S .1389 Phillip Neha Will B O W S G S O G B W G W B S O This input refers to this board Output: Phillip: CFG Neha: DHI Will: ABE
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll