Aim Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet. Steps for Completion Create a TabletCamera class that will be initialized with a pixels attribute. Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face... Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes. At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Scenario

It's the year 2017. You're working for an electronics company and have been tasked with modeling out the software for a cutting-edge tablet that will have a built-in face recognition front camera: a biometric tablet.

Aim

Create a class called TabletCamera and a class called Facial_recognition that will be the base classes of a derived class called BioTablet.

Steps for Completion

  1. Create a TabletCamera class that will be initialized with a pixels attribute.

  2. Create a Facial_recognition class with a scan_face method that prints the message, Scanning Face...

  3. Create a BioTablet class that inherits from both the TabletCamera and Facial_recognition classes.

  4. At the bottom of the script initialize an instance of the BioTablet class and pass it the value "12MP". Then we call the scan_face method and also print out the pixels attribute.

Run the script with python3 main.py
command and we should have an
output that looks like Snippet 7.91:
Scanning Face...
12MP
Snippet 7.91
Transcribed Image Text:Run the script with python3 main.py command and we should have an output that looks like Snippet 7.91: Scanning Face... 12MP Snippet 7.91
Lab Activity 7.7: Practicing Multiple Inheritance
| Practicing Multiple
duh.py
main.py
>_ Terminal
+
Inheritance
1 class TabletCamera:
workspace $ I
def -_init__(self,pixel):
self.pixel=pixel
def getPixel(se f):
return self .pixel
initialize an instance of the
4
BioTablet class and pass it the
5
</>
value "12MP". Then we call the
7 class Facial_recognition:
def scan_face(self):
print("Scanning Face....")
scan_face method and also
8.
print out the pixels attribute.
10
Run the script with python3 main.py
11
12 class BioTablet(TabletCamera,Facial_recognition):
command and we should have an
def --init__(self,pixel):
TabletCamera.-_init__(self,pixel)
13
output that looks like Snippet 7.91:
14
15
16
Scanning Face...
17 if -_name__ ==
18 # Write an instance of the BioTablet class
'-_main__':
12MP
19
20 # Call the scan_face method from the instance
Snippet 7.91
21
22 # Print the pixels from the instance
23
Grading
Complete each task listed below.
Each task contains automated checks
which are used to calculate your
grade. When you have completed
!!
Transcribed Image Text:Lab Activity 7.7: Practicing Multiple Inheritance | Practicing Multiple duh.py main.py >_ Terminal + Inheritance 1 class TabletCamera: workspace $ I def -_init__(self,pixel): self.pixel=pixel def getPixel(se f): return self .pixel initialize an instance of the 4 BioTablet class and pass it the 5 </> value "12MP". Then we call the 7 class Facial_recognition: def scan_face(self): print("Scanning Face....") scan_face method and also 8. print out the pixels attribute. 10 Run the script with python3 main.py 11 12 class BioTablet(TabletCamera,Facial_recognition): command and we should have an def --init__(self,pixel): TabletCamera.-_init__(self,pixel) 13 output that looks like Snippet 7.91: 14 15 16 Scanning Face... 17 if -_name__ == 18 # Write an instance of the BioTablet class '-_main__': 12MP 19 20 # Call the scan_face method from the instance Snippet 7.91 21 22 # Print the pixels from the instance 23 Grading Complete each task listed below. Each task contains automated checks which are used to calculate your grade. When you have completed !!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY