Write a class "machine" and "washing machine". Class "washing machine" should inherit from class "machine". Attributes of the machine will be: name, type, year. The washing machine should have the attributes: volume, depth, weight. In both classes should be method "show_attributes" which prints the attributes. Demonstrate in main function the usage of these classes.
Q: What is the name of the process that begins with the start symbol of a grammar, runs a series of…
A: Please find the answer below :
Q: Tell me about the benefits of taking baby steps.
A: The programme is separated into individual modules or components in the incremental model, and each…
Q: In python, using turtle, make the following: • Pressing keys R, G or B should change tess’ color to…
A: According to the information given:- We have to follow the code in order to get desired output.
Q: A floor plan is arranged as follows: • You may freely move between rooms 1 and 2. • You may freely…
A: According to the information given;- We have to follow the instruction in order to get desired…
Q: Talk about the concept of testability, and then provide a quick overview of the compiler.
A: Software Testing: Software testing explores, analyses, and establishes the completeness and quality…
Q: Question 21 In most occurrences of data breach, when it is realized that there is a breach:…
A: Dear learner, hope you are doing well, I will try my best to answer this question. Acc. to our…
Q: Information security management's function in today's environment
A: Information security management describes the set of policies and procedural controls that IT and…
Q: CREATE A SQL QUERY PROBLEM:Create a list of instructors that have taught only the Project…
A: Instructor Table: INSTRUCTOR_ID…
Q: IT What is listening and why is it important for students and professionals?
A: Children who engage in active listening are more likely to think about things in a more thoughtful…
Q: // define ListNode elements specific for this type of list, indicating current, previous and next //…
A: I have written code below:
Q: 9. In a circular queue, how do you increment the rear end of the queue? A. rear++ B. (rear %…
A: We know in a circular queue, the rear end can take values from 0 to (queue.length - 1). So when we…
Q: Suppose you want to use Naive Bayes to perform document classification (binary clas- sification)…
A:
Q: What are software development's top four qualities? What are the other four software development…
A: The four most critical features of professional software are Acceptability, Dependability and…
Q: Are there any examples that you might offer of virtual servers being utilized in educational…
A: A dedicated capability of a real server may be recreated using a virtual server. By installing many…
Q: Why are limits on access still a thing in this day and age? Please provide two instances of such…
A: As per my understanding beliefs, that now a days security is myth because all the information and…
Q: What are the advantages of having servers automatically supplied and configured rather than doing it…
A: Introduction: advantages of automatically provisioning and configuring serversSignificant time…
Q: Describe the function of LSI chips in modern computers.
A: LSI Chips are used in the average contemporary computer. Large-scale integrating Integration or…
Q: Please consider the following sets: W = {3, 1, 6, 4, 0} X = {3, 1, 6, 0} Y = {5, 0, 6} Z = {a} a)…
A: Below I have provided a solution for the given question.
Q: How is it decided what image from the ImageList should be shown in a PictureBox, and what value is…
A: INTRODUCTION: The Image property, which may change its value during run time or design time,…
Q: For Python, write a program that reads and processes sets of data until a sentinel value of a…
A: A program that reads and processes sets of data until a sentinel value of a negative number. The…
Q: What should a university's students, professors, and administrators hope to achieve with mobile…
A: The primary goal of installing mobile device management software should be productivity advantages…
Q: Information security management's function in today's environment
A: Information security management: It is a set of policies and procedural controls that IT and…
Q: Determine and evaluate the many distinct applications to which information systems are put to use in…
A: The answer to the question is given below:
Q: Explain how the software development lifecycle and UCD ideas are related.
A: ans=> UCD is an iterative design method where designers focus on users and their requirements at…
Q: Investigate how different organizations use information systems.
A: The organization use different types of information system. Because all the organization has…
Q: Comparisons are made between DHCP and APIPA. I was wondering what the benefits of combining these…
A: Dynamic Host Configuration Protocol, or DHCP, is a network management protocol that is used on…
Q: V. 3 1 5 2 Match the following two columns. RAID Level: 0 Description: Block Interleaved Dual…
A: for this problem we have added the matched row and column and added them into the A group. Please…
Q: Make care to include the view layer, the data layer, alt frames, and loop frames while drawing the…
A: A multiplayer sequence diagram helps us grasp use case understandings in the logical or rational…
Q: Is a database error worse than another?
A: Minor database errors may aid an attacker by revealing precisely what information they need to…
Q: uestion below 11. USE PYTHON LANGUAGE. READ INPUT FROM FILE (NAME THE FILE "input.txt') The…
A: CODE:
Q: in c++ create code that does the following(binary search tree) 1 void add(string); // add…
A: Here is a possible implementation of a binary search tree in C++ that includes the functions…
Q: What are the most effective strategies for backing up data on the cloud? Give an example of the kind…
A: We need to discuss the most effective strategies for backing up data on the cloud.
Q: What is the name of the process that begins with the start symbol of a grammar, runs a series of…
A: Please find the answer below :
Q: Explain in simple terms: There are essentially three ways to improve the quality of audio files for…
A: Please provide a concise explanation of the following three methods for optimising audio files for…
Q: Never argue that deep access is better than shallow access based only on performance considerations.
A: Deep Access's objective is to keep a stack of active variables active. Use control links rather…
Q: D Question 25 The system calls of an operating system typically Consist of a pre-defined set May be…
A: According to the information given:- We have to choose the correct option in order to satisfy the…
Q: For each statement below, declare the propositions and then write the statements in symbolic logic.…
A: Symbolic Logic: Symbolic logic is distinct from conventional logic in that it makes heavy…
Q: A binary tree is a rooted tree in which each node may produce no more than two children. Demonstrate…
A: A binary tree is a rooted tree in which each node may produce no more than two children.
Q: 1. A router receives a packet with destination address (222.186.114.16) Show how it finds the…
A: INTRODUCTION: A device known as a router can link many packet-switched networks or subnetworks to…
Q: Investigate how information systems are employed in many sectors.
A: 1. A database management system (or DBMS). 2. It is essentially just a computer-based data storage…
Q: How strongly do you think information during transmission and storage must be protected? As an added…
A: Here is the solution: Data must be encrypted in order to be protected while it is being used or…
Q: Why should I know how to operate a computer in the information age?
A: Computer literacy is essential since it opens up more career options, assists in remaining current,…
Q: Explain why deep access is preferable than shallow access from a developer's point of view, rather…
A: Deep access refers to a technique for accessing variables that are not local to the current…
Q: With refer to the below code write the code for this qustion thank you In this part of the course…
A: Note : As per the guideline we can solve the 1st question answer in respect me one ast in the other…
Q: Why do we give the file path for spring-security.xml as relative path…
A: Dear Student, The answer to your question is given below -
Q: The program written for binary search, calculates the midpoint of the span as mid: (Low + High)/2.…
A: The solution is given in the below step with explanation Solution:- mid = Low + (High - Low) / 2
Q: How would you describe the cloud computing, Internet of Things, and the wireless revolution?
A: This inquiry focuses on the Internet of Things and the transformation brought about by wireless…
Q: How has the proliferation of information technology benefited society?
A: The study of electronic equipment for storing and processing data, especially computer devices, is…
Q: What are the many factors that must be considered while building a compiler that generates correct…
A: Instructional Principles: Compilers receive instruction set notions. These guidelines help compiler…
Q: Let A € Rmxn be a matrix in the Command Window. Use [one] MATLAB statement in each part. a) Generate…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
quick
Step by step
Solved in 2 steps with 1 images
- Implement the Seller class as a derived class of Person class. Create the seller.h and seller.cppfiles for this class. The Seller class contains additional data members that hold a seller’s:o average star rating received from the buyers, ando total number of items sold.These data should be accessible by its derived classes. (should these data be private, public, orprotected?) The following methods are included in the seller class:• A default constructor and a copy constructor• A constructor that receives all of the data for a seller.(for the constructors, make sure to call the base class constructor as appropriate)• Appropriate get and set functions for the new data in this class• print() – overrides the base class print() to print the base class data and print all additionalseller data with appropriate messages. Make sure to call the base class print to print thebase class data.• read() – overrides the base class read() to read the base class data and reads all additionalseller data…Create a class BeautyProduct with name, color, brand. Provide Constructors, getters, setters and also write toString method. Now create a class Lipstick which extends the class BeautyProduct as Lipstick is-a Beauty Product it has totalVolume, remainingVolume, price, texture (gloss, matt) as private data members. Provide Constructors, getters, setters and an apply() method whenever this method is called a beauty item is applied and its volume decreases by 10.This should also check that volume must not be zero if it then u have to throw exception. Also write toString method which prints all details like name, color, brand, price, texture and volume. Create another class foundation having totalVolume, remainingVolume, price, texture (liquid, cake) and lastingTime (number of hours foundation remain intact on face and does not crease) as private data members. This also extends the base class i.e. BeautyProduct. Provide Constructors, getters, setters and an apply() method whenever this…In c++ ( without empty constructor)Create a lecturer class with member-data name (name) and department (department). For the Lecturer class, write constructors, get & set methods, and the toString () method, which returns the textual description of the object. Write a Lecture class with data member:- subject (discipline)- weekday (day of the week when it takes place)- hour (start time, integer)- online (boolean value, whether remote or not)- lecturer (object of class Lecturer)For the Lecture class, write:- constructors- get & set methods- method isItMorning (), returning a Boolean value, the result of checking whether the lecture starts at 7-11- give a new implementation of the toString () method so that it returns the text description of the Lecture objectIn the test function main ()1. Create objects of both classes and illustrate the use of all possible methods for them.2. Create an array of Lecture objects and display it on the screen and in a file.
- Define a class named Employee. This class should extend the Person class from the previous question. The class should have a constructor, which takes the name, age, employer (String) and salary (int) as parameters (in that order). The first two parameters should be passed to the constructor of the superclass and the value of the last two parameters should be stored in instance variables. The class should define the methods, getSalary which returns the salary of the employee and getEmployer which returns the name of the employer. Any methods from the previous question that need to be overridden should be overridden! Use super and instanceof as appropriate. I.e., for the following methods you should be able to call the method in the superclass for specific situations (e.g. the compareTo method in the superclass can be called if you receive anything other than an Employee, and this also holds for the equals method). The toString method only needs to append details and as such can also…•Person Class: Person class has attributes: String name, address and int age. Write setperson() function to set values and getPerson() to Print attributes. Also write appropriate constructors.•Employee Class: Write another class Employee having attributes department and salary of type string and double. Write methods setEmployee(), getEmployee() and appropriate constructors for Employee class.•Student Class:•Write a class Student having attributes registration number and GPA of type string and float. Also write setStudent(), getStudent() methods and required constructors. Use the concept of inheritance to achieve the above functionality. Write a main() function to display the information of employee and student.• Note: Call the constructors/methods of parent class in child class where required in java codeChange the classes "Line" and "Matrix" as follows: a. all static properties of classes should be changed only inside class methods; b. select one or more sub methods (if it has not been done before) and arrange them as static methods.
- •Person Class: Person class has attributes: String name, address and int age. Write setperson() function to set values and getPerson() to Print attributes. Also write appropriate constructors. •Employee Class: Write another class Employee having attributes department and salary of type string and double. Write methods setEmployee(), getEmployee() and appropriate constructors for Employee class. •Student Class: •Write a class Student having attributes registration number and GPA of type string and float. Also write setStudent(), getStudent() methods and required constructors. Use the concept of inheritance to achieve the above functionality. Write a main() function to display the information of employee and student. • Note: Call the constructors/methods of parent class in child class where requiredFor the Faculty class, create the following: A private int instance variable m_salary. A constructor that takes three parameters (in the order of name, department, salary). It should use the parameter for salary to set the m salary instance variable and then explicitly call the parent class constructor using the super keyword and pass in the two other parameters. A getPaycheck method that implements the same method in the Employee class. It returns the faculty member's paycheck as a string in the following format (the amount of money is equal to m_salary): Pooh-Mathematics-$50000QUESTION 7 Assume a Pet class contains a declaration for a method called getName () that returns a String. Later, we do this: public class Dog extends Pet{ ... How would we go about overriding this method in the new class? O We can only override this method if it is abstract in the Pet class O We must declare a method in the new class with the same method name and parameter list O We must first use the super () constructor to ensure that the name has a value We must declare a method in the new class with the same method name and return type QUESTION 8 Consider a linked list of nodes containing integer values. What it the run time associated with searching for a specific value in the list? O 0(1), because we can always access a specific node with an index O O(n), where n is the size of the list O(log n), if the list is in sorted order The length of the list is undefined, therefore the run time cannot be determined QUESTION 9 Given the following class definition: public class Car {…
- Write a class named Person with data attributes for a person’s name, address, and telephone number. Provide accessors/getters and mutators/setters for each attribute. Write a displayPerson() to print out the attributes of the Person. Next, write a class named Customer that is a subclass of the Person class. The Customer class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Provide accessors/getters and mutators/setters for each attribute. Write a display customer() to print out the attributes of the Customer. Demonstrate an instance of the Customer class in a simple program. All your programs will be modular. It will have the main() method that is executed first. Submit code that has no syntax error. And test your code, so as to not have logic errors. Each program must contain your name in the comments section and the date you created the code.Person and Customer Classes Write a class named (Person) with data attributes for a person’s name, address, and telephone number. Provide accessors/getters and mutators/setters for each attribute. Write a displayPerson() to print out the attributes of the Person. Next, write a class named (Customer) that is a subclass of the (Person) class. The (Customer) class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Provide accessors/getters and mutators/setters for each attribute. Write a display customer() to print out the attributes of the Customer. Demonstrate an instance of the (Customer) class in a simple program.Make a class Person, with instance variable name, age, and gender. Make a class Employee inheritfrom Person, with extra data for salary, and hiring date. Make another class Student inherit from Person,with data for program name, level (undergraduate/graduate), and program year. Supply required methods forthe superclass and the subclasses. Make a subclass Manager from Employee, with bonus salary, andoverride the corresponding method(s). Provide toString method for the Employee class and its subclass,Manager, such that it returns employee name, type of the employment, and salary. For instance if you createan object, manager1, from Manager class, with name=”John Smith” and annual salary of $125,000 and bonusweekly bonus of $200, and then write a print statement like System.out.println(manager1); , the output willbe:John Smith, Manager, Salary = $125,000/year, Weekly bonus = $200