Task - 5 Given the following classes, write the code for the Dog and the Cat class so that the following output is printed. class Animal: OUTPUT: Animal does not make sound def _init_(self,sound): self. sound = sound meow bark def makeSound (self): return self._sound class Printer: def printSound(self, a): print(a.makeSound()) #write your code here Dog ( 'bark') Cat('meow') Animal('Animal does not make sound') d1 = c1 = a1 = pr = Printer() pr.printSound (a1) pr.printSound (c1) pr.printSound (d1)
Q: What are the differences between forward and reverse engineering tools, and how do you use them?
A: ANSWER:-
Q: What are the various logical layers in a distributed client–server architecture application?
A: Logical layers: The most prevalent distributed system design is the client-server architecture,…
Q: What are the tasks of information specialists in the unit of information services?
A: The term "information services" refers to a business's system storing records, forms, statistics,…
Q: As a computer maker, you are confronted with the task of producing high-quality machines with fast…
A: CPU: AMD Ryzen 3 3300XNext-gen features on a tight budget Cores: 4 | Threads: 8 | Base Clock: 3.8GHz…
Q: Using System analytics, you may Undlinsareling Dwn dlivia"" (Bvo0) be able to got a cheupery of the…
A: Bring your own device (BYOD) Bring your own device (BYOD) refers to the trend of employees using…
Q: What is the function of a programming language?
A: Programming language: A programming language is a computer language that is used by programmers…
Q: Consider an ordered disk queue with requests involving tracks 97,145,22,14,124,65 and 67 if the read…
A: Here since the direction of head is not specified, let us assume that it is moving in right…
Q: Design the logic (flowchart and pseudocode) for a program that allows a user to continuously enter…
A: Logic and pseudocode and program in c++: #include <bits/stdc++.h> using namespace std; int…
Q: Explain the concepts of an integrated development environment (IDE) and application life cycle…
A: Answer the above questions are as follows
Q: Design the logic (flowchart and/or pseudocode) for a program that outputs every number from 100…
A: Find the required code in python as language not specified given as below and output :
Q: Describe briefly why traditional software development methods (non-formal) will not work for medical…
A: Introduction: Describe briefly why traditional software development methods (non-formal) will not…
Q: Derive the Boolean expression for the gate structure that clears the sequence counter SC to 0. Draw…
A: Answer To derive the logical expression for clearing the sequence counter SC to 0,. Interrupt…
Q: How will you check the equality of two integer variables without using the arithmetic comparison…
A: How you will check the equality of two integer variables without using the arithmetic comparison…
Q: Explain what an application life cycle management (ALM) environment is and give two examples.
A: The question requires you to define an application life cycle management environment and provide two…
Q: Explain an assault against a web-based cookie-based authentication scheme.
A: Cookies: Cookies are little data files; a cookie is a short bit of text given to your browser by a…
Q: Explain what is the purpose of a validation set, and how it differs from the test set
A: A validation set is used to assess how good the machine performs on a period of time, with different…
Q: Utilize technology and information resources to investigate issues in information systems.
A: You typically think of an information system as a collection of interconnected components that…
Q: Create a simple program that will printout "Hello World"
A: Here in this question we have asked to create a simple program which print hello world. Note -…
Q: Explain why adaptors are frequently required when systems are built by combining application…
A: Adaptors are required in an integrated system because: The implementation is referred to as an…
Q: What role does object-oriented analysis and design play in the future? Agile \smethods?
A: Analysis: Object-oriented analysis and design methodologies are taking on a more significant role.…
Q: What are the most important components of an Expert System? And how do they relate to one another?
A: What is expert system? An expert system is a computer program that uses artificial intelligence…
Q: Compare and contrast the Rational Unified Process with the classic waterfall approach.
A: Waterfall methodology and RUP have defined fixed phases, there are key differences between these two…
Q: arts from 3 and column index is starting from 2. 2
A: In the Arrays:- a i j represents---> the entry in i th row and j th column. Whereas, In…
Q: Code in Java Code with comments and output screenshot Q. Write a method to count the number of…
A: /**Instances of this class will representthe nodes of the Binary tree */public class Node { int…
Q: Give two reasons why various versions of a system with software diversity may fail in the same way?
A: Justification: Recent research on autonomous software diversity investigates many types of programme…
Q: Explain in a few sentences what the term "memberwise assignment" refers.
A: Memberwise Assignment To assign one object to another of the same type, use the assignment operator…
Q: How would you link endpoint devices and infrastructure devices in a local area network? To connect…
A: Cables that pass straight through: These two ethernet cables are the most frequently utilized in…
Q: List out the benefits of biometric authentication?
A: Examples of Biometric Security: Voice Recognition. Fingerprint Scanning. Facial Recognition. Iris…
Q: Assume your boss requests you to inflate the benefit statistics for an IT proposal to boost a…
A: Justification: Raising the benefit estimates on IT proposals solely to increase the project's…
Q: Perform the XOR (exclusive OR) operation on the following bits: a)(10001) O(10000) b)(00001) O…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: What is a dispatcher? How someone can reduce the dispatch 1 latency? Computer science
A: Introduction: The dispatcher is the module that grants a process control over the CPU after the…
Q: Describe the newline character in detail.
A: A newline (often referred to as a line ending, end of the line (EOL), following line (NEL), or line…
Q: Explain how technological advancements can drive a software subsystem to evolve or risk becoming…
A: Advance technology: Because of the following factors, technological advancements provide a danger…
Q: What does it imply when the Internet is called a "Network of Networks" now and then?
A: Introduction: "The network of networks" is the simplest way to describe the Internet. It's the…
Q: Handshaking is a programmable .interface technique True False
A: Find the answer with reason given as below :
Q: Q3: Link between Five right choices in A and B lists, where N=|1 3; 3 5; 57ir List A List A
A: This question is of MATLAB Given: N = [1 3; 3 5; 5 7;] Which means : As per given matrix, 1st…
Q: What happens during the fundamental machine cycle of a computer?
A: Introduction: An instruction cycle, also known as a Machine cycle, is used to carry out each and…
Q: Explain in a few sentences what the term "memberwise assignment" refers.
A: memberwise assignment" refers: When an object is assigned to another thing of the same class, each…
Q: 28. In a linear linked list,. a. the next pointer of each node has the value NULL b. the last node…
A: Linear linked list is a linear data structure. It is a collection of nodes . each node consists…
Q: he Mentcare system is built by adapting a commercially available information system. What do you…
A: The testing methodology and numerous tests used in object-oriented software testing differ…
Q: The evolution of wireless LAN protocols may be summarised in a few sentences.
A: The Answer start from step-2.
Q: For x=0 to 2π the increment 0.5, plot the Cosine function without showing x values on the plot
A: Find the required code in python as language not mentioned given as below and output :
Q: Simplify following Boolean Expressions using Quine-McClukey tabular method.…
A: The Quine–McCluskey algorithm is also known as the method of prime implicants.
Q: In your own words, discuss the benefits and drawbacks of various Wi-Fi security approaches.
A: Introduction: Here, you must weigh the benefits and drawbacks of various Wi-Fi security approaches.
Q: C program array manipulation Write c program to take 10 array elements from user as input Print…
A: ALGORITHM:- 1. Take input for the 10 array elements from the user. 2. Find the maximum element from…
Q: Determine if cloud computing poses a security risk. Is it possible to protect them?
A: Determine if cloud computing poses a security risk. Is it possible to protect them?
Q: Question 1. Please provide the different steps of the TCP Three-way handshaking on both send and…
A: Introduction TCP stands for Transmission control Protocol that indicates that it will one thing to…
Q: According to us, Flynn's taxonomy should be expanded by one level. What distinguishes higher-level…
A: Introduction: Flynn's taxonomy categorizes numerous parallel computer systems. Parallel computers…
Q: a) The set of strings over {a, b, c} with length three. b) The set of strings over {a, b, c} with…
A:
Q: Display the stack with the given information:
A: Result is: 3 12 7 5
use pythone language and inheritance to solve this. Thank you
Step by step
Solved in 2 steps with 2 images
- Java Question - Based on code, which answer out of the choices "A, B, C, D, E" is correct. Question has one correct answer. Thank you. Part 2 - 10. Given the following code, which statement is true? class Water() { ... }class Juice() extends Water { ... }class Apple() { ... }class ApplePie() { Apple a1 = new Apple(); }class AppleJuice() { Apple a1 = new Apple(); Water w1 = newWater(); } A. Juice is a superclass and Water is a subclass.B. ApplePie is a superclass of Apple.C. ApplePie is a composite class that contains an instance of Apple class.D. AppleJuice is a superclass that contains an instance of Apple class and an instance of Water.E. Water is a composite class that contains an instance of Juice.5Part 1: Setting the turtle size when it is instantiated Currently, a turtle is created and given a default size of 50. To change the size of the turtle its increaseTurtleSizeBy10 and decreaseTurtleSizeBy10 methods can be called. Add functionality so that a turtle can be created with a specified size. In the DoodleTurtle class do the following: Overload the DoodleTurtle constructor by creating a one-parameter constructor that takes the size of the turtle as an integer. Add an empty method body. Complete the method specification for the new constructor. The default constructor method specification can be used as a model. The only difference will be that the getTurtleSize() will equal the name of the size parameter instead of INITIAL_SIZE. In the method body of the one-parameter constructor do the following in this order: Call the initializeWithDefaultValues helper method. Call the setSize method passing it the size parameter. Compile the program and fix any…Reply to another student's post. Modify the student's code by providing a modified approach to the class or suggestions for enhancement. * * * Import java.util.Scanner; public class Appliance { //Instance variables declared public int level; public char auto; //Method to assign values for humidity level and auto feature; taken from user input in main method public void setValues(int level, char auto) { this.level = level; this.auto = auto; } //Method to display results from user input public void displayStatus() { System.out.println("You have entered " + level + " for humidity"); System.out.println("You have entered " + auto + " for auto feature"); String setting = null; if (Character.toUpperCase(auto) == 'Y') { setting = "ON"; } else { setting = "OFF"; } System.out.println("\nThe humidity level is " + level + "%"); System.out.println("The auto feature is set to " + setting); } public static void main(String[] args) { //Create instance of class Appliance humidity = new…
- Java Questions - (Has 2 Parts). Based on each code, which answer out of the choices "A, B, C, D, E" is correct. Each question has one correct answer. Thank you. Part 1 - 7. Which is possibly a composite class? class Seed { ... }class Fruit { Seed s1 = new Seed(); }class Apple extends Fruits { ... }class Orange extends Apple { ... }class ApplePie { ApplePie a1 = new ApplePie(); } A. FruitB. AppleC. ApplePieD. OrangeE. Seed Part 2 - 8. Given the following code, the output is __. class Apple { int x = 5; }class Orange { int y = 6; }class Tangerine { int z = 7; } class Banana { Apple a1 = new Apple(); Orange o1 = new Orange(); Tangerine t1 = new Tangerine(); public int show() { return a1.x + o1.y + t1.z; }} public class Sample { public static void main(String[] args) { Banana b1 = new Banana(); System.out.println(b1.show()); }} A. 5B. 6C. 7D. 18E. 5+6+7Design 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())…
- Java Questions - (Has 2 Parts). Based on each code, which answer out of the choices "A,B,C,D,E" is correct. Each question has one correct answer. Thank you. Part 1 - 3. Assume that "cal" is an instance of the java.util.Calendar class, which can return the current time of this Calendar in Milliseconds? A. System.out.println(cal.getTime());B. System.out.println(cal.getTimeInMillis());C. System.out.println(cal.getMillis());D. System.out.println(cal.getMillisTime());E. System.out.println(cal.getTimeMillis()); Part 2 - 4. Assume that "cal" is an instance of the java.util.Calendar class, which can set the month to February? A. cal.set(Calendar.MONTH, 1);B. cal.set(Calendar.MONTH, 2);C. cal.set(Calendar.MONTH, 3);D. cal.set(Calendar.MONTH, Feb);E. cal.set(Calendar.MONTH, February);Insert coding that make the seat cannot be book by other people if already reserved // create a CLASS public class DemoClass { public static void main(String [] args) { // create a OBJECT DemoClass dc = new DemoClass(); int isle= count['2B','5B','8B','11B','14B','5B','17B','20B','23B','26B','29B']; int window= count['3C','6B','9C','12C','15C','18C','21C','24C','27C','30']; int isle= count['1A','4A','7A','10A','13A','16A','19A','22A','25A','28A',]; stdout.writen("type of seat (Double/single)?:"); String?types-stdin.readLinesync(); if(types--'single') { System.out.println("single"); } else { else if(types--'Double') { stdout.wrilwln("chere(isle/window)?:"); String?hc-stdin.reixli inesysnc(); if(hc--'isle') { system.out.pritln("isle"); stdout.writeln("choose your seat?:"); String ? IsleSeat - stdin.readLineSync(); if(isleSeat -- isle) { isle.remove(IsleSeat); System.out.println("isle"); } } else if(BC -- 'window') { System.out.println("window"); } } } } } OUTPUT:using c++ oop !!! kindly need help asap. Implement the shape, rectangle, and square classes with components as shown and the following functionality: Each constructor and destructor prints a message to the screen that it is being called in each class implement the area() method that calculates the area of the figure (for the Shape class you can return 0) Example Constructor shape: Rectanleeeeeee Rectangle constructor 232.5 Rectanleeeeeee Eeeeeeee Rectangle destructor Shape destructor Constructor shape: Squareeeee Rectangle constructor Square constructor Squareeeee AAAaaaa 105.165 Square destructor Rectangle destructor Shape destructor // main.cpp : Defines the entry point for the application.// #include "main.h"using namespace std; int main(void) {{rectangle rec("Rectanleeeeeee", 10, 23.25);std::cout << rec.area() << std::endl;std::cout << rec.get_name() << std::endl;rec.set_name("Eeeeeeee");std::cout << rec.get_name() << std::endl;} {square…
- Java Problem. compile and run the code below: /** A class to test the Door class.*/public class DoorTester{ /** Tests the methods of the Door class @param args not used */ public static void main(String[] args) { Door frontDoor = new Door("Front", "open"); System.out.println("The front door is " + frontDoor.getState()); System.out.println("Expected: open"); }} Create a second Door object called “backDoor” with the name property “Back” and an initial state of “closed”. Verify that the object was properly created. Use the mutator to change the state of object backDoor to “open”. Verify that the mutator is working. Create a third Door object called “sideDoor” with the name property “Side” and an initial state of “open”. Verify that the object was properly created. Use the mutator to change the name of object sideDoor to “Front”. Verify that the mutator is working.2-Create a class named 'Shape' with a method to print "This is This is shape".Then create two other classes named 'Rectangle', 'Circle' inheriting the Shapeclass, both having a method to print "This is rectangular shape" and "This iscircular shape" respectively. Create a subclass 'Square' of 'Rectangle' having amethod to print "Square is a rectangle". Now call the method of 'Shape' and'Rectangle' class by the object of 'Square' class.REFER TO IMAGE (JAVA) a. Write a Java statement that increments the value of count by 1. b. Write a Java statement that outputs the value of count. c. Write the 6 definitions of the constructors and the methods of the class MyClass as described in its definition. d. Write a Java statement that declares myObject1 to be a MyClass object and initializes its instance variable x to 5. __________________________________________________________________ e. Write a Java statement that declares myObject2 to be a MyClass object and initializes its instance variable x to 7. __________________________________________________________________ f. Identify each of the following statements as either valid or invalid (tell why it is invalid). Assume that myObject1 and myObject2 are declared as in parts (d) and (e). myObject1.MyClass( ); ____________________________________ myObject2.setX(50); ____________________________________ MyClass.printCount( );…