Task - 3 Write the CheckingAccount class so that the following code generates the output below: class Account: OUTPUT: Number of Checking def _init_(self, balance): self._balance = balance Accounts: 0 Account Balance: 0.0 Account Balance: 100.00 def getBalance(self): return self._balance Account Balance: 200.00 Number of Checking Accounts: 3 print('Number of Checking Accounts: ', CheckingAccount.number0fAccount) print(CheckingAccount()) print(CheckingAccount(100.00)) print(CheckingAccount(200.00)) print('Number of Checking Accounts: ', CheckingAccount.numberOfAccount)
Q: 2. Create a program that approximates the three roots of the equation f(x) = 5.3221 x3 - 4.2842 x2 -…
A: Task : Given the function f(x). The task is to find the root of the equation using any of the three…
Q: What is the main role of an ER diagram in data modelling? How many courses each student can have?…
A: What is the main role of an ER diagram in data modeling? An entity-relationship diagram, or ER…
Q: 4. If E-1 X = 60 and E-1x² = 90, find each of the following: 5 d. Ex? + 60 е. f.
A: - We need to work on the simplified additions.
Q: s, for any given undirected graph G = (V, E), whether there is a way to color each vertex in V with…
A: the solution is an given below :
Q: What are the different types of general difficulties that have an impact on software?
A: Issues that affect the type of software in general: Heterogeneity is the first factor that…
Q: Short answer Computer science Explain MVC? Media View Controller
A: Introduction: Model-View-Controller (MVC) is an architectural pattern that splits an application…
Q: Java
A:
Q: Your data warehousing project team is debating whether a data warehouse prototype should be built…
A: Intro Warehouse of data The data warehouse is a repository for data that is utilized for…
Q: Normally, how are the untrusted network, the firewall, and the trustworthy network connected?
A: Introduction: While the Internet or another portion of a public access network is frequently used as…
Q: Describe the security model used by the CNSS.
A: Introduction: John McCumber developed the CNSS security paradigm. It is a three-dimensional model…
Q: Consider a health band as a real-world use case to demonstrate the possibilities and benefits of an…
A: Introduction: The usage of the Online of Things (IoT) in healthcare (business, personal health…
Q: What does it mean for a database to have entity as well as referential integrity?
A: Intro Database: In databases, entity integrity refers to the ability of all rows in each table to…
Q: Example. Convert NFA to a DFA. Convert this NFA to a DFA a 6. 8 5
A: Below is the answer to above question. I hope this will be helpful for you..
Q: Briefly describe the use of implicit and explicit output in SAS programming. What is the purpose of…
A: the solution is as given below :
Q: What are the capabilities of activities like email and online surfing on Linux? What is the most…
A: Introduction: In Linux, tasks like as email and web surfing are carried out using the pre-installed…
Q: Discuss a few limitations of virtual machine migrations.
A: Discuss a few limitations of virtual machine migrations.
Q: What are three particular activities that an organization can take to overcome consumer distrust?
A: Every organization is facing more problems towards the idea behind their customers in shopping.
Q: verage 1 ment to see how many scores you need to include. (Keep ½. Create the chart for the…
A: Answer is in given below:-
Q: You're replying to a troubleshooting request concerning a broken HR laser printer. The printer…
A: Printer - Laser A laser printer is an output device that generates an image on its drum by a laser…
Q: need sequence diagram An office supply distributer has a set of criteria for preparing bills. When…
A: Sequence diagram Sequence diagram for preparing bills
Q: How to proceed the data in each excel entry box into separate txt files and upload them to the SAS…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. More often…
Q: A. Smart home device eg.amazon alexa or google home B. Doorbell camera C. Smart lock Question: a.…
A:
Q: Describe the disadvantages of a register-register vector processing architecture.
A: Introduction: Vector registers are specialised registers that can hold a high number of vector…
Q: What Exactly Is an Application Program?
A: Introduction: PROGRAM A programme consists of a set of instructions.It is a minor component of…
Q: 33. Use the Backtracking algorithm for the 0-1 Knapsack problem (Algorithm 5.7) to maximize the…
A: answer is below-
Q: What is the default location for the ISO file when it is produced by default?
A: Introduction: ISO files is additionally known as ISO image. ISO images are utilized for…
Q: find one, and what is it used for? What would a computer forensic investigat
A: The international mobile subscriber identity (IMSI) is a number that interestingly distinguishes…
Q: Assume that the following method is within the KWLinkedList class, what does this method do? public…
A: ANSWER:-
Q: I need a code that will store the images in mongodb using python language
A: To store the image in MongoDB we will use these 2 library dependencies: GridFs PyMongo (1).…
Q: Please write python codes to smooth an image by using median filter and Bilateral filter separately.…
A: Here i am writing the code for both filter separately. You can use code and use any input image as…
Q: Problem 5: A bi-directional associative memory has the following paired bipolar patterns & = (1, -1,…
A: NOTE: Here I am using python to calculate the weight matrix ALGORITHM: Step 1: The bidirectional…
Q: What are the benefits of low-density networks? What explains why these benefits exist
A: Given: we Have to discuss What are the benefits of low-density networks.explains why these…
Q: What exactly is a decision support system in machine learning
A: Machine Learning is the latest development in the business world and can be elaborated as Industrial…
Q: discuss the role and value of communications media.
A: The Role and Value of Communication media Media messages convey important influences Mass media…
Q: Based on the methodologies used to detect intrusions, intrusion detection and prevention systems…
A: Introduction: In a complex IT environment, examining network traffic patterns for vulnerabilities…
Q: Get the time complexity of each of the following: 1) for (int i = 1; i <=n; i += c) { for…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Rock, paper scissor games. Use a random function for generating the random output by the computer…
A: Solution: Given, Use a random function for generating the random output by the computer side. The…
Q: 1. Biden's Cybersecurity Executive Order was released in May 2021, what is it? Explain how Section 2…
A: WHAT IS Cyber Security? Cyber security is basically a process of protecting (securing) computers,…
Q: In general, computer experts advise increasing the computer's Random Access Memory (RAM) when the…
A: Statement evaluation : Yes, having additional RAM will improve performance. It will enhance the…
Q: Explain the difference between analog and digital computer
A: An Analog computer system is a computer system that uses continuously changeable physical entities…
Q: Show that the 3-colorability problem of graphs can be reduced to the 3SAT problem in polynomial…
A: Boolean Satisfiability Problem(3SAT) The Boolean satisfiability problem, also known as 3SAT, is a…
Q: A string such as "AUM" is really an array of individual characters in C. Select one: O True O False
A: In C strings is not a datatype on its own.
Q: The chef gives you an A sequence of N's length. Let X mean MEX for A sequence. The cook is…
A: Input/Output Explanation: The initial part of code we will take the input that contains a single…
Q: Create a modified version of your get_json() function to save the resulting JSON data to a file…
A: ALGORITHM:- 1. Declare a function save_json() that receives a json string and writes it to an output…
Q: computer science - List and discuss all of the criteria that Decision Support Systems can take into…
A: Introduction: Due to the huge number of stakeholders with distinct, and sometimes competing,…
Q: What exactly is security auditing?
A: Introduction: A security audit is a systematic review of the security of a company's information…
Q: e FOUR (4) main layers of automata theory, and explain each layer briefly. b) Define what is a…
A: Automata Theory is a part of computer science that arrangements with planning dynamic selfpropelled…
Q: the ranks ace-king, and suit is a single character "d," "c," "h," or "s" indicating the suit…
A: Answer is in given below:-
Q: Which of the following is true about Interface? Select one: O a. It is a special kind of block…
A: Answer 1: Option d is correct Explanation: Interfaces define what a class must be able to perform.…
Q: Write a Haskell recursive function pascal() that returns the nth line of the Pascal triangle. For…
A: We need to write a Haskell recursive function pascal() that returns the nth line of the Pascal…
Solve USing Python3 and inheritance method
Step by step
Solved in 3 steps with 1 images
- Implement “SoftwareEngineer” and “CheifEngineer” class derived from “Employee” class with necessary properties so that the expected output is generated. Do not change any given code. class Employee: employeeInfo = {} def __init__(self, name, designation, workHour): #workHour = Per week working hour self.name = name self.designation = designation self.workHour = workHour def calculateWeeklyIncome(self): pass def __str__(self): s = f"Name: {self.name}\nDesignation: {self.designation}\nWork hour per week: {self.workHour} hours" return s # Write your codes here. # Do not change the following lines of code. sw1 = SoftwareEngineer("Bob","Software Engineer",40,1200) print('1.------------------------------------') sw1.calculateWeeklyIncome() print('2.------------------------------------') print(sw1) print('3.------------------------------------') sw2 = SoftwareEngineer("Carol","Software Engineer",45,1200,5) print('4.------------------------------------') sw2.calculateWeeklyIncome()…Write the CheckingAccount class so that the following code generates the output below: class Account: def __init__(self, balance): self._balance = balance def getBalance(self): return self._balance print('Number of Checking Accounts: ', CheckingAccount.numberOfAccount) print(CheckingAccount()) print(CheckingAccount(100.00)) print(CheckingAccount(200.00)) print('Number of Checking Accounts: ', CheckingAccount.numberOfAccount) OUTPUT: Number of Checking Accounts: 0 Account Balance: 0.0 Account Balance: 100.00 Account Balance: 200.00 Number of Checking Accounts: 3Question: 3Implement the design of the Student_Tutor class that inherit from Student class so that the following code generates the output below:Hint: Each room has a capacity of 2 Student tutors.class Student: def __init__(self,name,student_id): self.name = name self.student_id = student_id self.semester = "Spring 2022" def details(self): print("Name:",self.name) print("Student_ID:",self.student_id) print("Current Semester:",self.semester)# Write your code here:STs = []S1 = Student("Reem", 18101235)S1.details()print("1.======================================")ST1 = Student_Tutor("Moynul", 16107892, 35, "CSE110", "CSE111")ST2 = Student_Tutor("Priyo", 16107792, 25,"CSE320")ST3 = Student_Tutor("Ronok", 18207892, 36, "CSE110", "CSE111", "CSE221", "CSE220")ST4 = Student_Tutor("Zeba", 19307892, 48, "CSE110")STs.extend([ST1, ST2, ST3, ST4])print("2.======================================")for i in range(len(STs)): STs[i].details()…
- Implement the design of the CSE and EEE classes that are derived from the Department class so that the following output is produced: Driver Code Output class Department: def __init__(self, s): self.semester = s self.name = "Default" self.id = -1 def student_info(self): print("Name:", self.name) print("ID:", self.id) def courses(self, c1, c2, c3): print("No courses Approved yet!") s1 = CSE("Rahim", 16101328,"Spring2016") s1.student_info() s1.courses("CSE110", "MAT110", "ENG101") print("==================") s2 = EEE("Tanzim", 18101326, "Spring2018") s2.student_info() s2.courses("Mat110", "PHY111", "ENG101") print("==================") s3 = CSE("Rudana", 18101326, "Fall2017") s3.student_info() s3.courses("CSE111", "PHY101", "MAT120") print("==================") s4 = EEE("Zainab", 19201623, "Summer2019") s4.student_info() s4.courses("EEE201", "PHY112", "MAT120") Name: Rahim ID: 16101328 Courses Approved to this CSE student in Spring2016 semester : CSE110 MAT110 ENG101 ==================…Design TomCruise class and DulquerSalman class which inherit from Actor class so that the following code provides the expected output.You can not change any of the given code. Do not modify the given parent class.Note: add_movie() method in both child classes should work for any number of parameters and assume parameters will be even numbers.class Actor: def __init__(self, name, rating, industry): self.name = name self.rating = rating self.industry = industry def add_movie(self, *info): pass def __str__(self): s = f"Name: {self.name}\nRating: {self.rating}\nIndustry: {self.industry}" return s# Write your codes here.tom_cruise = TomCruise("Tom Cruise", 9.5, "Hollywood", 0)tom_cruise.add_movie("Knight & Day", "Action", "Top Gun", "Action", "Jerry Maguire", "Romance", "Jack Reacher", "Thriller", "The Firm",…????????: Design TomCruise class and DulquerSalman class which inherit from Actor class so that the following code provides the expected output. You can not change any of the given code. Do not modify the given parent class. Note: add_movie() method in both child classes should work for any number of parameters and assume parameters will be even numbers. class Actor: def __init__(self, name, rating, industry): self.name = name self.rating = rating self.industry = industry def add_movie(self, *info): pass def __str__(self): s = f"Name: {self.name}\nRating: {self.rating}\nIndustry: {self.industry}" return s # Write your codes here. tom_cruise = TomCruise("Tom Cruise", 9.5, "Hollywood", 0) tom_cruise.add_movie("Knight & Day", "Action", "Top Gun", "Action", "Jerry Maguire", "Romance", "Jack Reacher", "Thriller", "The Firm", "Thriller") print('1.------------------------------------') print(tom_cruise.oscar_status())…
- Modify the above code to use the alternative method for multithreading (i.e., implementing the Runnable interface). Name your main class RunnableHelloBye and your subsidiary classes Hello and Goodbye respectively. The fi rst should display the message ‘Hello!’ ten times (with a random delay of 0–2 s between consecutive displays), while the second should do the same with the message ‘Goodbye!’. Note that it will NOT be the main class that implements the Runnable interface, but each of the two subsidiary classes.Design FullTimeEmployee class and PartTimeEmployee class which inherit Employee class so that the following code provides the expected output.[addFullTimeEmployee() and addPartTimeEmployee() methods should work any number of parameters assuming that the parameter number will be an even number and greater than 1]class Employee: total_employee = 0 def __init__(self, name, work_hour): self.name = name self.work_hour = work_hour def __str__(self): s = “Department: ”+self.name+", Work hours: "+str(self.work_hour) return s# Write your codes here.# Do not change the following lines of code.p1 = FullTimeEmployee(“Finance”, 40 )print("=================================")p1.addFullTimeEmployee(“Bob”, 12, “Carol”, 18, “Mike”, 15)print("=================================")print(p1)print("=================================")p2 = PartTimeEmployee(“Others”, 25)print("=================================")p2.addPartTimeEmployee(“David”, 12, “Simon”,…????????:Suppose you are an owner of a car wash & service center. Now, implement the design of the Car class so that the following output is produced:[Your code should work for any number of services added in the add_Services method]# Write your code hereprint(“No.of Car=”, Car.count)c1 = Car('Lamborghini', 2002)c1.add_Services('Battery Replacement', 'A/C Recharge')c2 = Car('Toyota Corolla', 2016)c2.add_Services('Radiator Flush', 'Fill Service')c3 = Car('Mitsubishi Pajero', 2018)c3.add_Services('Filter change', 'Timing Belt Replacement')print("=========================")c1.printCarDetail()print("=========================")c2.printCarDetail()print("=========================")c3.printCarDetail()print("=========================")print(“No.of Car =”, Car.count)Output:No.of Car = 0=========================Name: LamborghiniYear of manufacture: 2002List of Services: Battery Replacement , A/C Recharge=========================Name: Toyota CorollaYear of manufacture: 2016List of Services:…
- Implement the design of the Ironman and DoctorStrange class derived from Avengers class so that the following code generates the output below: class Avengers: numberOfAvengers = 0 def __init__(self, name = None): self.name = name print('Welcome to Multiverse!') if self.name == None: print('Who is your favourite Super Hero?') else: print(f'{self.name} is your favourite Super Hero!') def hasSuperPower(self): print('All Avengers have super powers.') def fightThanos(self): return 'No avenger can fight Thanos' #Write your code here #------------------------------------------------------------------------------------- print('1.===============================') print('Number of Avengers:', Avengers.numberOfAvengers) print('2.===============================') a1 = Avengers() print('3.===============================') a1.hasSuperPower() print('4.===============================') print(a1.fightThanos()) print('5.===============================') im1 = Ironman('Tony Stark')…Question: 3Implement the design of the Ironman and DoctorStrange class derived from Avengers class so that the following code generates the output below:class Avengers: numberOfAvengers = 0 def __init__(self, name = None): self.name = name print('Welcome to Multiverse!') if self.name == None: print('Who is your favourite Super Hero?') else: print(f'{self.name} is your favourite Super Hero!') def hasSuperPower(self): print('All Avengers have super powers.') def fightThanos(self): return 'No avenger can fight Thanos'#Write your code here#-------------------------------------------------------------------------------------print('1.===============================')print('Number of Avengers:', Avengers.numberOfAvengers)print('2.===============================')a1 =…???????? 2: Design the required class(es) so that the following expected output is generated. Do not change any given code. Your code should work for any number of arguments in init and setToppings method of pizza class. For simplicity, you can consider there will be only 3 categories of pizzas and they are: Chicken, Beef, Cheese. #Write your code here dom = Dominos("Domino's Pizza") print("1.=================================") p1 = Pizza("Spicy Chicken","Spicy Chicken","Onion","Capsicum") dom.addPizza(p1) p2 = Pizza("Margherita","Mozzarella Cheese") print("2.=================================") p3 = Pizza("Beef Kala Bhuna") print("3.=================================") p3.setToppings("Curried Beef","Capsicum","Paprika","Onion") print("4.=================================") dom.addPizza(p2,p3) p4 = Pizza("Chicken Dominator","Barbecue Chicken,Spicy Chicken,Grilled Chicken") p5 = Pizza("Beefzza","Minced Beef","Beef Pepperoni","Onion","Jalapeno") dom.addPizza(p4,p5)…