1. Create a program that generates a multiplication table for all numbers between 1 and 10. You should use iterations (f

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1. Create a program that generates a multiplication table for all numbers between 1 and 10. You should use iterations (f

Post by answerhappygod »

1 Create A Program That Generates A Multiplication Table For All Numbers Between 1 And 10 You Should Use Iterations F 1
1 Create A Program That Generates A Multiplication Table For All Numbers Between 1 And 10 You Should Use Iterations F 1 (36.6 KiB) Viewed 38 times
1. Create a program that generates a multiplication table for all numbers between 1 and 10. You should use iterations (for or while loops) and your output should look similar to this: 1 2 3 4 5 6 7 8 9 10 1 1 2 3 4 5 6 7 8 9 10 2 12 14 16 18 20 3 3 6 9 12 15 18 21 24 27 30 X 2 4 6 8 10 4 10 20 30 40 10 [10 marks 2. Given the code snippet below: amount = float(input("Please enter the amount eg 456,32 for R456.32: R")) 200 Famount // 200 remaining - amount % 200 amount = remaining 100 = amount // 100 remaining - amount % 100 amount = remaining 50 = amount // 50 remaining amount % 50 print("Here's the breakdown:") print("R200:"str(+200)) print("R100:"str(r100)) print("R50:" + str(r50)) print("Here's what's remaining: R" str(remaining) It should become very clear to you (hopefully) that the program cannot compute the number of R20, R10, RS, R2 and/or R1 notes/coins that are required to make the entire payment. You are thus required to modify the program to do this. Your answer should include the above code le. it should be the full program and not just your portion. [10 marks).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply