Which of the following is true about Interface? Select one: O a. It is use to model multiple inheritance which allows a class to have more than one superclass. O b. It is a special kind of block containing method signatures only O. It defines a standard and public way of specifying the behavior of classes O d. All of these Oe. It defines the signatures of a set of methods without the body
Q: Explain the meaning of the word "software distribution." Explain why shared libraries are commonly…
A: Introduction: Distribution software is a type of application that has grown in popularity,…
Q: What are your responsibilities as a Systems Analyst?
A: Introduction: The purpose of an information technology system analyst is to analyse and provide…
Q: The Barber gives you an A sequence of N's length. Let X mean MEX for A sequence. The cook is…
A: Algorithm: Firstly we will take the value of number of test cases t Then we will call mainsolve…
Q: you are trying to model the average temperature of each day, which model would like to perform best?…
A: The answer is
Q: CPU time is an important computer resource that should be utilised as efficiently as possible.…
A: Introduction: The DMA module bypasses the CPU and transmits the complete block of data to or from…
Q: Assume the following method is in class TestArrayList (outside the KWArrayList class). What does it…
A: We need to find the correct option.
Q: DATABASE MANAGEMENT SYSTEM Create table “STUDENT" with attributes "STUDENT_ID", "STUDENT_NAME",…
A: Since no querying language is mentioned, I am using PL/SQL. Create STUDENT table statement: CREATE…
Q: Total = a + b + c; %3. Average Total / 6; A. Logic Errors B. Run-time Errors
A: Introduction We have the following code : Total = a + b + c; Average = Total / 6; Given Options:…
Q: A computer with subsystems and logical divisions outperforms one that does not have them.
A: Introduction When a computer's processors, memory, and storage are partitioned into logical…
Q: Please compute the difference series of the series below (-999 for not available): T1 T2 T3…
A: We need to compute the difference series of the series given.
Q: Explain the many types of marriages and discuss the two primary concepts that lead an individual in…
A: Introduction: Social institutions are built to satisfy the demands of society, such as the family,…
Q: Four trigonometric identities are given by: a) Sin 4x = 4sin x cos x-8sin x cos x 1- tan?x b) Cos 2r…
A: Issue the following to verify at the command window. Calculate the LHS and RHS of the equation.…
Q: Why did you assemble a barebone/skeleton PC
A: Given: We have to discuss why we have to assemble a barebone/skeleton PC.
Q: Write a project to implement the following functions: String replaceAll(String substring, String…
A: String replaceAll() method public String replaceAll ( String regex, String replacement) parameters:…
Q: C. Using Structures and Files: Create a C++ program for Student record system. Note that: program…
A: We need to use linked list to solve this.
Q: What is the most effecient way to access data when you have mulitple tables? a) use the VLOOKUP…
A: What is the most efficient way to access data when you have mulitple tables?
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: Discuss five specific neural network applications in artificial intelligence.
A: Introduction: Here are five examples of neural network applications in artificial intelligence:
Q: R language The object created with the command data.frame((c(1,2), c(3,4), c("a","b")) is a(n)…
A: Ans: The object created with the command data.frame((c(1,2), c(3,4), c("a","b")) is a(n): 3)…
Q: Discuss any five downsides of cloud computing that are frequently neglected.
A: Introduction: Cloud computing has the following drawbacks:
Q: What is the technique through which an operating system keeps memory, processes, and threads in…
A: Intro Memory management : The operating system (OS) manages a computer's principal or primary…
Q: What exactly is a histogram? Create a scenario for a problem or circumstance, then create a…
A: Introduction: Here we are required to explain what is the histogram. Also, we are asked to draw a…
Q: Who decides when and how data is utilised or managed in an organisation?
A: Introduction: Organization management is the art of bringing people together on a shared platform…
Q: Explain to me in detail what is machine learning in a decision support system?
A: Introduction Most organizations today experience no difficulty gathering information, however…
Q: Consider the following weighted digraph, then fill up its adjacency matrix and also draw its…
A: Adjacent matrix Adjacency matrix are used to represent the graph using 2D array of size v x v.…
Q: List the item ID, description, and category for each pair of items that are in the same category.…
A: ANSWER:-
Q: What are the benefits of utilising exception handling?
A: Introduction In computing and computer programming, exception handling is the process of answering…
Q: wroting a Java program with a single-dimension array that holds 10 integer numbers and identify the…
A: Given data, Writing a Java program with a single-dimension array that holds 10 integer numbers and…
Q: Virtualization simplifies resource use, separates users from one another, and facilitates…
A: Intro Virtualization simplifies resource use, separates users from one another, and facilitates…
Q: What does it mean to say that a programming language is machine independent?
A: The Answer is
Q: Write a Java program to take a string and an int n, print a string made of n repetitions of the last…
A: Required: Write a Java program to take a string and an int n, print a string made of n repetitions…
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: How do reference parameters help procedures interact with one another?
A: Intro A reference parameter is a reference to a variable's memory location that is sent as a…
Q: What should a business do with its password documentation?
A: Introduction: i) As a managed services provider (MSP), you're undoubtedly spending a lot of time…
Q: Modify the swap_string function in this task6.c to swap two strings. task6.c Swapping string Only…
A: Above function will not work because function is changing only local pointer variables so changes…
Q: h of these is a typical class C IP address? A. 9C-35-5B-5F-4C-D7-IC-00 B. 00:0C:29:IC:BC:6B C.…
A: Which of these is a typical class C IP address? A. 9C-35-5B-5F-4C-D7-IC-00 B.…
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: Explain the concepts of data warehousing and data mining.
A: Introduction: Data warehousing is the process of storing data pertaining to a company's business…
Q: c) Which line in the above code would result in a ClassCastException' d) Which line in the above…
A: A piece of code is given and have to answer some sub parts related to the code Given Code:
Q: Hi! Please I want this written in Java programming language. Don’t forget to use documentation…
A: ALGORITHM:- 1. Take input for the grades from the user until he/she enters invalid grade. 2. Keep…
Q: The following code will multiply the value in r0 by a natural number C. What is C? add r1, r0, r0,…
A: The given code will multiply the value in r0 by a natural number C. We need to find C.
Q: Discuss the concept of a candidate key being an attribute that is part of a composite primary key.
A: Introduction: A candidate key is a single field or a composite expression that meets the main key…
Q: In what ways does binary search outperform sequential search?
A: Intro Sequential search: A Sequential Search is more time-efficient when the data is not sorted…
Q: draw the logic diagrams (using gates) of the positive-edge triggered T and JK flip-flops understand…
A: J-K Flip-Flop: Truth Table:
Q: rove that if m and n are integers and mn is even, then m is even or n is even.
A: Proof by Contradiction: Assume that mn is even and that m and n are both odd. Since the product of…
Q: The input is a set of jobs j1, j2, ..., jN, each of which takes one time unit to complete. Each job…
A: Answer is given below-
Q: Computer science what category of attack is a DoS attack an example? Group of answer choices 1.…
A: Introduction: what category of attack is a DoS attack an example?Group of answer choices1.…
Q: List the nine major components of a typical database environment.
A: Introduction: A typical database setup consists of a number of critical components. There are nine…
Q: Which of the following is a method of the Object class? O a. super) O b. encrypt( O c. equals) O d.…
A: Which of the following is a method of the Object class? a.) super() b.) encrypt c.) equals() d.)…
Q: • Define a void function Sleep) that takes a 2D array of type float Time[5][6] as parameter and…
A: We need to declare M,N globally. Code is in step 2.
Step by step
Solved in 2 steps
- Design a console program that will print details of prescribed textbooks of students. Make use of an abstract class Book with variables that will store the author, title, category and price of a book. Create a constructor that accepts the author, title and category through parameters and assign these to the class variables. Create an abstract set method for the price of a book; also create get methods for the variables.Create a subclass TextBook that extends the Book class and implements an iPrintable interface. The interface that must be added is shown below:public interface iPrintable { String DisplayDetails();}The TextBook subclass has a private variable named yearPrescribed for which a get method must be written. The constructor of the TextBook class must accept the author, title, category and yearPrescribed through parameters. Write the code for the setPrice() and DisplayDetails() methods.Write a useBook class and instantiate 2 objects of the TextBook class.True or False a. If you do not write a constructor for a class, java will supply a default constructor. b. Java does not allow constructors to be overloaded. Abstract methods must have a void return type. d. All classes have a default equals (Object) method even if their programmer didn't write one for it. You can override a static method defined in a superclass. A method can have at most one return statement. g. A method cannot return a Wrapper class reference. h. The reserved word super can be used to access a constructor in a parent class. i. Object is an abstract class. e. f.Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…
- Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…Which of the following statements is TRUE about abstract classes in Java? A. An abstract class implementing an interface does not have to implement methods of the interface. B. An abstract class extending another abstract class does not have to define methods of the super abstract class. C. The first subclass of an abstract class should define all the abstract methods inherited from all the interfaces and super abstract classes. D. All the above E. None of the above1 - Student class Make a class student (in student.py) that stores the following information for a student: Name (name) Student number (student_nr) Points per assignment (points_per_assignment) Exam grade (exam_grade) a) Behind each point of information is the name of the parameter to the initializer method. Store this information from the parameters in the object attributes with the same name. b) Add a method course_points() which returns the number of course points the student has gotten. Example: mary = Student("Mary", 15789613, [10, 9, 8, 10, 9, 10], 9)print(mary.course_points()) > 121 The calculation of the course points is explained in the course overview, course setup slides (Links to an external site.) and the first lectureLinks to an external site.. c) Add a method grade() which returns a the final grade of the student, rounded to nearest half (upwards, 6.75 -> 7). As per regulations, a 5.5 becomes a 6. If the student did not pass both the assignments (>= 95…
- What is the design pattern depicted in the diagram below? The intent of this design pattern is to define an interface for creating an object, but let subclasses decide which class to instantiate. It lets a class defer instantiation to subclasses. Client Abstraction normalMethodoe BmakeObjecto Product do some stuff aProduct = makeObjecto: f do some more stuff -aProduct Product ConcreteOne ConcreteTwo makeObjecto : Product ProductOne ProductTwo return new ProductOneo. A. Factory Method Design Pattern B. Singleton Design Pattern C. Proxy Design Pattern D. Adapter Design PatternQUESTION 16 What must be true of a class with one abstract method? O The class must also implement the Iterable interface Any derived class must implement the method The abstract method must have the static modifier O The method cannot specify a return value QUESTION 17 Suppose we wanted to design a set of classes for a veterinarian's office. Our Customer class looks like this: public class Customer { Pet [] pets; } Select all the statements that are true Once the size of the pets array has been set, it cannot be changed Because we're using an array, all pets must be the same A customer must have at least one pet We also need to declare a Pet class QUESTION 18 What is the proper use of an enumeration? To define a set of ordered values To enforce the use of the Comparable interface O To define, or enumerate, the values returned by a Random object generator O To define the classes in an inheritance hierarchyCreate a class Animal and Add a protected data member named id of integer type. Add get/set methods for id data member in Animal class with public access. Also provide default constructor this should initialize id to 0. Also provide parameterized constructor and toString method. Add an abstract method tellAboutSelf method to Animal class with public access Add another abstract method speak method to Animal class. Reptile, Bird, Mammal Next create the three child classes which extends form Animal class. Add a default constructor to each of the above created class. The constructor should initialize the id data member id, Reptile, Bird and Mammal, to 1, 2 and 3 respectively also it display a message “(class Name)’s default constructor”. E.g. for Bird it says “Bird’s default constructor”. Add a parameterized constructor to each of the above created class. The constructor should initialize the id data member, Reptile, Bird and Mammal, to the specified id passed to the constructor also it…
- i. Interface to Interface inheritance is possible. ii. Interfaces have only abstract methods. iii. Interface to Interface inheritance is not possible. iv. Interfaces can not be used for the purpose of multi inheritance. v. For the purpose of multi inheritance more than one Class can be used. Which of the above information(s) is/are wrong? Lütfen birini seçin: a. i-iv-v b. None c. ii-iv d. All e. i-ii-iiiCreate 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…Which of the following is true of abstract classes? a.An abstract class cannot have child classes b.An abstract class is a parent class with more than one child class. c.An abstract class cannot be instantiated. d.An abstract class is another name for a base class. Which of the following is true of abstract methods? Select one: a.An abstract method is a method of the child class which overrides a parent method. b.An abstract method is a method without a body which is declared using the keyword abstract. c.An abstract method is any method of an abstract class d.An abstract method is a method which cannot be inherited. Can an abstract class define both abstract and non abstract methods. a.No. All methods must be one or the other. b.No. All methods must be abstract. c.Yes, but the child classes do not inherit the abstract methods. d.Yes. The child classes inherit both.