Charles Darwin University
|Teaching Period||Semester 2, 2020|
|HIT137 – Software Now|
|Reading Time: 15 minutes|
|Writing Time: 120 minutes|
|Scanning and uploading: 20 minutes|
|INSTRUCTIONS TO CANDIDATES|
|1. Read all questions carefully. 2. Answer all questions. 3. Total marks available on this test are 50. 4. Questions are of equal value. 5. Open book exam. 6. Submit your solution in one single “.py” file.|
|You may begin writing from the commencement of the examination session. The reading time indicated above is provided as a guide only. Please make sure that you submit your work on time.|
|This is an OPEN BOOK examination|
In the given text file ‘HIT137cdu.txt’, programmatically count the total number of phrases: “You Make CDU” and “Great. You Make CDU” and print it in the console.
A file concordance tracks the unique words in a file and their frequencies. Write a program that displays a concordance for the given file ‘HIT137cdu.txt’. The program should output the unique words and their frequencies in alphabetical order.
Write your initials (First characters of your Name) using turtle graphics. For example:
Name: John Robinson Doe
(Only two letters are fine)
Use function to draw individual letter
CDU is a world class university with multiple colleges focused to give quality education. All of the colleges have some similarity in terms of structure, properties and functionalities. Using the object-oriented programming concept, can you create “College of Engineering, IT and Environment” and list out the number of students, list of courses available, building address, and print it on the screen? You can choose number of students, list of courses and building address of your own.
Hint: Use the concept of class & object
Create a python window containing a grid of 2×2 buttons. In that window, place 4 buttons that has 4 different functionalities:
1. Button 1: Pressing Button 1 will print a random integer number.
2. Button 2: Pressing Button 2 will print a random float number
3. Button 3: Pressing Button 3 will print a random lowercase word containing a-z
4. Button 4: Pressing Button 4 will print a random uppercase word containing A-Z
Example window will look like:
|Button 1||Button 2|
|Button 3||Button 4|
“END OF EXAM”
Get expert help for HIT137 – Software Now and many more. 24X7 help, plag free solution. Order online now!