Question: ICS 3 U Python Culminating Question # 1 File Name: ICS 3 UmultiplierGame.py Description An amusement park is looking for ways to entertain its guests
ICSU Python Culminating Question #
File Name: ICSUmultiplierGame.py
Description
An amusement park is looking for ways to entertain its guests while they wait in line for a very popular ride. They have an idea in mind for a game that could be played while people wait and would like to hire you to create the software for the game. The game will have the player earn points which can then be traded in for a prize after the ride has finished.
The player starts the game with an account with points in it The game consists of rounds of play where the amount of points earned from each round is added to the account. After the rounds are over the player can withdraw all of the points in his account
For Each Round of Play
He player rolls two dice and records the sum.This represents the number of points he earns. One dice has sides the other dice has sides.
The player keeps rolling the two dice and continuously adds the points from the new roll to the points he has already accumulated in that round. There are however both incentives and punishments for rolling the dice too many times.
The player can continue rolling the dice as many times as he wishes during a round and can bank his points to his account at any time he wants, thus starting a new round.
Incentives For Continuing To Roll
If you bank to your account a total of at least points in a single round, you will double the points that sit in the account after the round is complete
If you bank to your account a total of at least points in a single round, you will triple the points that sit in the account after the round is complete
If you bank to your account a total of at least points in a single round, you will quadruple the points that sit in the account after the round is complete
If you roll double s at least times in a single round, you will increase the points that sit in the account after the round is complete by times
Punishments For Continuing To Roll
If you roll a on either dice at any point during the round your total points for the round get reset to zero You can keep rolling in the round
If you roll a sum of then the amount of points you currently have in the round is cut in half round upYou can keep rolling in the round
If you roll a snake eyes Both dice show at any point during the round your total points for the round get reset to zero and your account balance gets reset to zero. You can keep rolling in the round
Prize System
When the game ends the player will have a specific number of points that can be traded in for prizes.
There should be possible prizes each needing a different number of points. You will need to test your game multiple times to determine a reasonable amount of points needed for each prize.
The better the prize the more points it should cost
The player can pick as many prizes as he wants as long as he has enough points to pay for all of them. You should display the maximum amount of each prize the player can pick and update that # as he picks prizes
Statistics
Store and display the following information at the end of the game
The total number of rolls and the points banked for each of the rounds
A horizontal bar graph of s representing the total number of each possible sum that was rolled in the entire game. Scale the amount of stars displayed so that it would fit on the screen
ICSU Python Culminating Question #
File Name: ICSUEmiliaNumbers.py
A positive Integer will be an Emilia Number if it has at least two sets of factors where the sum of one set equals the difference of another set.
For Example:
is an Emilia Number. It has a sets of factors and where
is an Emilia Number. It has sets of factors and where
is an Emilia Number. It has sets of factors and where
Write a function that finds Emilia Numbers, and then use it to count how many Emilia numbers would you find for the numbers from to
ICSU Python Culminating Question #
File Name: ICSUrepeatCipher.py
You are sending a message to your friend. Instead of sending the actual message, you send a set of consecutive characters that represent the real letter. The number of consecutive characters determines the real letter.
A single consecutive character represents the letter A
Two consecutive characters represents the letter B
Three consecutive characters represents the letter C
etc
If you sent the message:
bbbbb&&&&&&&&&&&&zzzzzzzzzzzzzzz
It would decode to HELLO because there are
characters in a row H
b characters in a row E
& characters in a row L
characters in a row L
z characters in a row O
You need to write a program that DECODES messages
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
