UEEN1043 Object-Oriented Concept and Programming Techniques 2020 Assignment #2 In this assignment, you are asked to demonstrate a program which uses the concept of inheritance and polymorphism in OOP...

The assignment requirement is attached in the file below


UEEN1043 Object-Oriented Concept and Programming Techniques 2020 Assignment #2 In this assignment, you are asked to demonstrate a program which uses the concept of inheritance and polymorphism in OOP to automatically generate a HTML input form using Python based on an user’s simple descriptive inputs. The HTML input forms often exhibits a significant amount of repetitive structures that are time consuming to design, hence making use of Python to provide a general solution to automatically generate various kinds of form structures is attractive and can be a part of the building blocks for industry 4.0 applications. The contents used to design each HTML element, such as textarea, textbox, checkbox, radio, and dropdown menu, are provided to you in separate CSV files. The output in HTML is given to you and you need to complete the yattable.py in MyLib/ directory using the OOP approach. You are not allowed to delete whatever codes provided to you, but you can add and optimize it, for example, by moving the __init__() and render() to other objects. The sample output is given to you in template/ and your solution of yattable.py should produce the output exactly the same as it. The so-called user’s inputs are located in inputs/. These inputs files are the plain description of what you need place in the table shown on the HTML input form, but for some of them you need to re-arrange their positionings. Again, you are not allowed to modify the input files. To program HTML tagging handily, you need to install the yattag module and the tutorial to install is recorded at https://www.yattag.org/download-install and the tutorial to use the module is at https://www.yattag.org/#tutorial. All the examples are simple and can be tried out at your Spyder IDE. Lastly, you are encouraged to provide a solution that is general to produce the desired results where the values of variables A and B can be changed by the users. To do so, you need to implement the functionality to take command line inputs from the users. The tutorial to do so is recorded at https://www.tutorialspoint.com/python/python_command_line_arguments.htm. Go to the path where you unzip the codes provided to you in the cmd prompt, to run it please type python3 questionnaire.py 2 3, where 2 and 3 are the command line inputs: Marking scheme: (Total 30 marks) 1. Demonstrate modular programming technique. (3 marks) 2. Show effective use of inheritance, overriding, and polymorphism. (9 marks) 3. Show effective use of pandas or numpy module to handle input files. (4 marks) 4. Show effective use of collective parameters. (3 marks) 5. The solution does not have nested loops with three levels or more. (2 marks) 6. The Solution can run to completion without error messages. (2 marks, not a dummy run) 7. Fix the bug in questionnaire.py so that your output matches the sample output. (2 marks) 8. The solution is a general solution that can handle different kinds of input contents and dimensions of the contents shown in the HTML output. (3 marks) 9. The solution can take command line input correctly. (2 marks) UNIVERSITI TUNKU ABDUL RAHMAN page 1 https://www.tutorialspoint.com/python/python_command_line_arguments.htm UEEN1043 Object-Oriented Concept and Programming Techniques 2020 Note: • To view your output or the index.html, you can simply double click it from your Window explorer, or drag-and-drop it to your web browser. • The sample output of A = 3, B = 2 is located templates/index.3x2.html Submission  The deadline is 6pm on 17th April 2019 (Friday)  NO LATE submission is accepted.  One submission for one group is sufficient.  Do NOT submit input files.  Only submit your solution of yattable.py and questionnaire.py by emailing them to [email protected] with email subject equal to ◦ UEEN1043 2019 A2 G[group number] ◦ e.g. UEEN1043 2019 A2 G[13] for group #13.  Failure to conform to the naming format above will result in 10% deduction of your total mark. UNIVERSITI TUNKU ABDUL RAHMAN page 2 mailto:[email protected]
Mar 30, 2021UEEN1043
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here