Question: Multiplication Table Objectives : Practice nested loop and pretty print. Design a Python program to display N Times Table. The program prompts users to enter
Multiplication Table
Objectives:
Practice nested loop and pretty print.
Design a Python program to display N Times Table. The program prompts users to enter the desired N.
It is required to have both column and row headers in a multiplication table. Cells in the table are right-aligned. There are examples of 10 Times Table and 12 Times Table at https://www.mathsisfun.com/tables.html.
User interface specifications:
Input o The program prompts users to enter the desired N of N Times Table to be displayed. You can assume N will be in between 1 and 16 inclusively.
Output o Display on screen an N Times Table.
Code specifications:
The first comment line contains the name of the script file you submitted for grade.
The header comment lines at the top of the file contain a brief description of the program. The description should be one or 2 lines long describing the purpose of the program.
Partition the task into smaller subtasks and implement each subtask with function(s). Each function must have comment lines describing its functionality, inputs, and outputs, as applicable.
Your program must have a main function to aggregate the decomposed subtasks as shown in the loan example in class. You also have to include comment lines in your main function to describe the logic or flow of your solution to the whole problem.
Finally, dont forget to use the following idiom to call your main function within your program.
if __name__ == "__main__":
main()
Use descriptive variable names and function names.
Submission:
The name of submitted file must be in the following format:
H13_yourfirstname.py
Total points: 10 o 6 if your program runs correctly, including computations and required formats o 4 if your submission follows all of the specifications in this assignment sheet
1 for correct naming of submitted file
1 for task decompositions
1 for comments on functions
1 for comments on user-interaction codes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
