[ad_1]
ICS 2O Pellet Maker Python Assignment
Program General Description:
Write a program that determines the number and the shapes of pellets of a new radioactive element called Satecium. The program will also calculate the amount of radiation given off by the pellets.
The basic program: 85%
displays a program name, description of what the program will do
prompts the user for an amount of Satecium to turn into pellets o calculates the minimum number of pellets in the
different sizes:
900, 200, 50 and 8 gram sizes o calculates the radiation given off by each size of
pellets, and a final overall radiation count o the amount of radiation is dependent on the size
as follows:
900 gm pellets 3.5 Roetgens/pellet 200 gm pellets 2.3 Roetgens/pellet 50 gm pellets 1.2 Roetgens/pellet 8 gm pellets 0.6 Roetgens/pellet o any amount of Satecium that cannot be formed
into one of these pellet sizes will be identified as left-over; the radiation will not be calculated for the left-overs
a maximum of 5000 gm will be permitted
the above calculations will be displayed orderly with appropriate text, in the command line interface
displays an accompanying picture graph, of the number of the different pellet sizes needed
use ovals to indicate 1 of each size; for example if 2 900 gm pellets, and 3 50 gm pellets are needed, then the picture graph will have a column of 5 ovals
for all amounts, the full, single column will be the same size; the ovals making up the column will differ each time
the window/canvas dimensions will not be changeable by the user
one possible creative determinant is to use another context other radioactive pellets; whatever the context is, there needs to be two measures (eg. the number of the 900 gm pellets, and the radiation produced by those pellets); the context cannot be the same as the ones used in the first or second semester
the column will be centered. ICS 2O Pellet Maker Python Assignment
Technical details:
follow conventions taught in class
has comments
will not use techniques not taught in class (so no ifs, etc)
neatness, creativity for the interface/interaction
assume the user always enters valid input – do not worry about errors if user enters invalid values
the only library permitted is tkinter
do not have long statements with many calculations – better to use more variables
should not have to scroll sideways to see an entire line, when the window (both the IDLE and the output CLI) is expanded to full size
print statements should not have calculations in them,
Example Output:
Pellet Counter
This program takes in an amount of Satecium in grams, and will determine the number of pellets to be made
Enter an amount of Satecium : 305 Number of 900 gm pellets : 0 Rad: 0 Number of 200 gm pellets : 1 Rad: 2.3 rads Number of 50 gm pellets : 2 Rad: 2.4 rads Number of 8 gm pellets : 0 Rad: 0 Overall radiation : 4.7 rads Leftover : 5 gm
Graphic:
The column will reach a maximum length, but since there are 3 pellets in total, it will be 1 oval (1/3 the column size) for the 900 gm pellet, and 2 ovals (2/3 the column size) for the 200 gm pellets
Next Additional: 10%
The graphic will have space for 4 columns. The columns will indicate the number of pellets used. The maximum count of any column is 6. The window/canvas dimensions will not be changeable by the user. The columns will be centered.
Final Additional : 5%
The user can enter the dimensions for the window/canvas. The denomination columns will adjust to be 2/3 the height of the window/canvas. The width of all columns combined that appear will be 9/10 the width of the window/canvas. The columns will be centered. ICS 2O Pellet Maker Python Assignment
Need Help with a similar Assignment?
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."