Note: I don\'t need a program, I need Design a python program for: You can find
ID: 3727021 • Letter: N
Question
Note: I don't need a program, I need Design a python program for: You can find a program from link below:
http://www.chegg.com/homework-help/questions-and-answers/write-program-computes-taxes-following-schedule-status-single-taxable-income-tax-amount-0--q10533713
I need algoritm something like this:
Example Design Insert Header Information (Name, Program, Date, etd) Program Explanation - What does this do Import the random number generat Initialize/declare variables: response totaldice 0 Print/ask user if they want to pla import random die1 = random.randrange(6) +1 die2= random.randrange(6)+1 Calculations: totaldice = die1 + die2 print die1 print die2 print "You rolled... totaldice If totaldice 7 or 11 - print "Congratulations Press "Enter"to quit the gameExplanation / Answer
Step 1: Start
Step 2: import random module in the program
Step 3: Declare variables die1,die2,response and totaldice
Step 4:Initialize variables die1=0,die2=0,response=' ' and totaldice=0
Step 5:Repeat the steps until response='no' or user presses enter
5.1: die1=Call random.randrange(6)+1
5.2: die2=Call random.randrange(6)+1
5.3: totaldice=die1+die2
5.4: Display die1
5.5: Display die2
5.6: Display "You rolled...",totaldice
5.7: if totaldice=7 or 11
Display "Congratulations"
Step 6: Stop
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.