Question

Machines are good at crunching numbers - faster and more accurately than most humans! Create a...

Machines are good at crunching numbers - faster and more accurately than most humans! Create a program that calculates something useful to you (making you smile is useful). It should incorporate numeric user input, a float, use at least one of the number operators we saw in class: + - / * . It should use the accumulation pattern with a loop. It should use at least one conditional statement comparing numbers.

Week 4 Rubric

Criteria Ratings Pts This criterion is linked to a Learning OutcomeCode gets numeric user input 1.0 pts Perfect 0.5 pts Some improvement needed 0.0 pts Missing 1.0 pts This criterion is linked to a Learning OutcomeCode uses a float 1.0 pts Perfect 0.5 pts Some improvement needed 0.0 pts Missing 1.0 pts This criterion is linked to a Learning OutcomeCode uses at least 1 arithmetic operator 1.0 pts Perfect 0.5 pts Some improvement needed 0.0 pts Missing 1.0 pts This criterion is linked to a Learning OutcomeCode uses the accumulator pattern with a loop Initializes and accumulates 2.0 pts Perfect 1.0 pts Some improvement needed 0.0 pts Missing 2.0 pts This criterion is linked to a Learning OutcomeReadability Header is complete, variables are well-named, spacing makes it easy to read 1.0 pts Perfect 0.5 pts Some improvement needed 0.0 pts Poor 1.0 pts This criterion is linked to a Learning OutcomeOverall correctness Does the code run? 3.0 pts Runs 0.0 pts Doesn't run 3.0 pts This criterion is linked to a Learning OutcomeCode uses at least one conditional statement comparing numbers 1.0 pts Perfect 0.5 pts Some improvement needed 0.0 pts Missing 1.0 pt

Homework Answers

Answer #1
num=float(input("Enter the number for which you want to print table : "))  #taking input from user
for i in range (1,11,1):   #itertaing to print value of table on console
    print(num*i)  #printing the value of table 
if num>25: #prompting if num is greater than 25 that it is hard to remember
    print("Table of large variable is hard to remember")

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT