1. Use the Python to declare the following classes. Hint: Document is the parent class, and Book and Email are child classes inheriting the document class. Document -authors: String[] -date : Date +getAuthors(): String[] +addAuthor(name) : void +getDate() : date Book EMail -title : String -subject : String -to : String[] +getTitle(): String +getSubject(): String +getTo(): String[] c 2. Use O(n) to measure the following formular 10000 + log (n) +n Answer: n? + nlog (n) + 5000 n Answer: 2 n20 + 2" Answer: . 3. If the probability of an event occurring is 0.75, the probability of it not occurring must be ). 4. Replace the '?' with the correct information according plot below.
5 Testi Test2 4 1 3 2 1 0 8 10 11 import pylab xVals = [?, ?, ?,?] yVals1 = (?, ?, ?, ?] yVals2 = (?, ?, ?, ?] pylab.plot(xVals, yVals1, '?-', label='Test1") pylab.plot(xVals, yVals2, '?--', label='Test2") pylab.legend() 5. Describe what the following code is doing? def checking (resource, target): resource: string target: list of letter for i in resource: if i not in target: return false return True
1. Use the Python to declare the following classes. Hint: Document is the parent class, and Book and Email are child cla
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Use the Python to declare the following classes. Hint: Document is the parent class, and Book and Email are child cla
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!