Write an abstract class called A and a second class called B which inherits from A. Class A will have an abstract void callMe() method which does not take any parameters. Class A will also have a void method called callMeToo() which takes no parameters and prints the message "This is a concrete method". Class B will also have a void callMe() method which prints the message "B's implementation of callMe". In your main program, create a B object and call the callMe() and callMeToo() methods using that object.
Q: Consider the following graph: Draw the DFS and BFS spanning trees for the above graph starting from...
A: Breadth-First Search(BFS): In BFS we explore the adjacent nodes first and then we explore the childr...
Q: ii. Show that 2n^3 + 5n^2 + 6n + 18 is in Theta (n^3).
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other questi...
Q: an I please have the flow chart for this Python Code. current_year = 2021 class Employee:...
A: Here below i make simple flow chart of given python code: ==========================================...
Q: float named MN. The function returns an integer. Write the definition of a function named Ave that ...
A: As per guidelines, we can only solve one question at a time. Hence resubmit the question for further...
Q: Make a view corresponding to SELECT CUS_AREACODE, SUM(CUS_BALANCE) AS TOT_BALANCE FROM CUSTOMER GROU...
A: Updateable View : It is a kind of deletable view. An updateable view is a type of view whose column...
Q: Non-Fungible Token (NFT) 1. What? 2. When? 3. Why?
A: Note: A per our guidelines, we are supposed to answer only the first three subparts. Kindly repost o...
Q: Create an application that receives an internet application from a company’s prospective customers. ...
A: Code in C#: namespace InternetApplication{ partial class frmInternetApplication { /// &...
Q: ys to represent a res
A: Below the 3 popular ways to represent a resource in REST
Q: What is the equivalent value of 1010 1101 in binary going to decimal (do NOT include the base in you...
A: Your question is about what is the equivalent value of 1010 1101 in binary going to decimal
Q: YOUR CALCULATOR ONLY NEEDS TO WORK FOR +, -, and * YOUR CALCULATOR ONLY NEEDS TO WORK ON INTEGERS.
A: The code we use here is for multiple digits so there should be space between operands and operators....
Q: Let's begin with a lesson in roulette. Roulette is a casino game that involves spinning a ball on a ...
A: Given The answer is given below.
Q: Q5: For the Binary search tree given below.
A: Solution - In the given question we have to find the In-order, Pre-order and Post-order of the Binar...
Q: Describe the clocking methodology.
A: Please find the detailed explanation and details in the following steps.
Q: What is the process through which a virtual network interface card (VNIC) obtains a MAC address?
A: Defined the process through which a virtual network interface card(vNIC) obtains a MAC address
Q: beros protocol. Why would this proposed modification be useful?
A: Kerberos is an authentication system that allows a client and server to mutually authenticate each o...
Q: Type the program's output Input 6 4 target = int(input()) n = int(input()) while n <= target: ...
A: Type the program's output Input 6 4 target = int(input()) n = int(input()) while n <= target: pri...
Q: In this program write in pseudocode, Thankyou Public Class Test Public Shared Sub Main() ...
A: Every code is considered as the psuedocode . To convert any perfect code to psuedocode we just have...
Q: To facilitate the retrieval of specific records from a file, one field in each record is chosenas a(...
A: A key in a file is the field (or fields) whose value identifies a record among others in a data file...
Q: Provide an example of a qualitative data analysis. The example should be within the healthcare domai...
A: answer is
Q: Define the GetConsoleMode function.
A: Answer: The GetConsoleMode() function may be used to get the current input and output modes of a con...
Q: Project name: Errand Assistance service application(ease app) Create the Data Flow Diagram and Data...
A: The answer is given below.
Q: 1. Why is packet switching efficient? Explain your response. 2. Compare implicit allow and implicit...
A: Packet Switching Packet Switching is a method of transferring data in the form of packet. Packet sw...
Q: 4 Sample Problems Prove that the following answers are correct. Handwritten work is fine, if you wan...
A: The binary number is converted into a decimal number by multiplying each element with power of 2 bas...
Q: Can I please have the flow chart for this python code?
A:
Q: Internet is based on an open standard called __. It is a store-and-forward packet switching techniq...
A: Below is the answer to above question. I hope this will be helpful for you.
Q: Define the concept of a unified memory architecture.
A: The goal of unified memory is to reduce data redundancy by copying data between separate areas of me...
Q: 3. The equilibrium constant for the reaction of chlorine gas with phosphorus trichloride to form pho...
A: a) Mole balance equation: 0.414 PCl3 + 0.0064 Cl2 ----->0.0086 PCl5 For part b & c mention ...
Q: Q3 (6%). Let x = [æ1, x2, x3] and y =+ log, 22 – . Calculate the fo * at x = [9,1, ): Hint: the answ...
A: 1.
Q: Explain how the Internet of Things works.
A: Introduction: Devices and items with built-in sensors are connected to an Internet of Things platfor...
Q: Write a program that contains two classes a Main class and a Student class: • • The Student class ha...
A: I give the code in Java along with output and code screenshot
Q: Construct a Fibonacci number pattern that involves square roots. Both sides of the equation should b...
A: The Answer is
Q: Many user-created passwords are simple and easy to guess. Write a program that takes a simple passwo...
A: Start input word make password string according to condition using if append in password print pass...
Q: What is printed by the call test_b(4)? А.024 В.0 2
A:
Q: A number 428 in duodenary (base 12) is to be added to C10 in tredenary (base 13), what is their sum ...
A: Concept: Duodenary or base 12 number system have digit 0,1,2,3,4,5,6,7,8,9,A,B. Tredenary or base 13...
Q: Counting Operations to Produce Polynomials In the following section, I will present you with multipl...
A: given by The amount of abstract operations achieved in the above code are: 1. 1(since the func...
Q: The ArraySet method add searches the entire set. Discuss the consequences of this search of the enti...
A: Introduction: Input :A = {0, 2, 4, 6, 8}B = {1, 2, 3, 4, 5} Output : Union : [0, 1, 2, 3, 4, 5, 6, 8...
Q: Differentiate between manually matching transactions and Advanced Mode transactions in QuickBooks De...
A: Introduction: Bank feeds can be set up and managed in a variety of ways. After obtaining your electr...
Q: 2. When hydrogen gas reacts with iodine gas at elevated temperatures, the following equilibrium is e...
A: Solution ::
Q: Please code the following in Python. Thanks. I'll give upvote if correct. Make a Big-O function tha...
A: For the question above , a code of O(n) complexity is implemented below with output def big_O(lst,n)...
Q: Describe the steps necessary to prepare a brand new computer for usage ?
A: The basic process will prepare a new computer for use:
Q: Suppose the procedure given in class for balancing multiple pairs of symbols in a string is executed...
A: The answer is given below.
Q: Who or what is the Virtual Key Symbol for the Left Menu on the computer?
A: Virtual key: Virtual keys are keys that are not physically present on the keyboard but are mapping t...
Q: aw the KMP flowchart with fail indexes for the pattern “aanbaan
A: Lets see the solution.
Q: In PYTHON, write a code that allows the user to input two non-negative number sequences in increasin...
A: the answer is given below:-
Q: What are six of the most common causes for computer mishaps today?
A: A computer is a powerful electronic machine that takes user input, processes it and produces output....
Q: ho are the 5 most cited researchers in the field of artificial intelligence? With a brief about his ...
A: Lets see the solution.
Q: he mile race at the Penn Relays. Write a program that scans in the race time in minutes and seconds...
A: Code: #include <stdio.h> #define FEET_PER_MILE 5280.0#define FEET_PER_KM 3282.0#define RACE_DI...
Q: ftware archite
A: Software Architecture: Simply said, software architecture is the way a system is organized. This org...
Q: What is tha main function of router?
A: Introduction: Routers are computer networking devices used to transport data packets from one networ...
Q: Algorithms are important to know if you want to use computers to invest in the financial market.
A: Solution: The computer algorithm are makes life easier by trimming the time it takes to manually do ...
Do in c#
Step by step
Solved in 4 steps with 2 images
- 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…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…In this Assignment you will use an abstract class to define, read, store, and print questions for a test. you will start by writing an abstract TestQuestion class that contains the following: • A protected String variable that holds the test question. • An abstract method protected abstract void readQuestion() to read the question. Now define two subclasses of TestQuestion, Essay and MultChoice which implement the abstract methods. Essay will need an instance variable to store the number of blank lines needed for the answering space. MultChoice will not need this variable, but it will need an array of Strings to hold the choices along with the main question. You will also need to write toString methods for the MultChoice and Essay classes that return nicely formatted versions of the questions. Now define a class WriteTest that creates an Arraylist of TestQuestion objects. Assume that the input as the following: 1. type of question (character, m3Dmultiple choice, e=essay). 2. number of…
- Define a new "Exam" class that manages the exam name (string) and its score (integer). For example, an exam can have - "Midterm Exam", 100 - "Final Exam", 50 The class must not provide the default constructor. It must require the exam name and score in order to initialize the Exam object. The class must provide only the following methods (no more and no less): - isPerfect method that returns true if the score is exactly 100 and false otherwise. - isPassing method that returns true if the score is equal or greater than 70 and false otherwise. - toString method must return all the exam information including the result of the exam as a string in the following format: EXAM(<name>) SCORE(<score>) RESULT(Pass/Fail) such asEXAM(Midterm Exam) SCORE(100) RESULT(Pass) EXAM(Final Exam) SCORE(50) RESULT(Fail) "Pass" means the score is greater or equal 70. "Fail" is whenever the score is below 70. - isGreater method that compares with another Exam object and return true if the score…Consider a class "Fan" with two integer data members, "state" (0/1 i.e. on or off) and "speed". 1. Write a parameterized Constructor for this class. 2. Write a member function "changeState( )" which behaves similar to pressing a button i.e. it should change the state of the fan. If it is off (0), calling the function should turn it on (1) and vice versa.. Multi Line Text.Create an abstract class called Employee that has an abstract method called calculatePay() which calculates the total pay per employee using the rate per hour = R100. The method should accept the number of hours the employee has worked. Create a child class called employeeChild and provide the implementation. In the main method invoke that method and get the number of hours worked from the user and pass it to the called method.
- 1. Create a Student class that implements the Person interface. As well as storing the students name and email, also store their course grade (e.g A, B, C) in a member variable. The grade should be accessible via a getGrade method. For the implementation of getDescription return a message along the lines of “A C grade student”, substituting the students actual grade.2. Create a Lecturer class that implements the Person interface. This class should also store the subject that the lecturer teaches. Add a getSubject method, and implement getDescription so that it returns a suitable message, e.g. “Teaches Biology”.3. Create a third class, Employee that implements the interface. This should also store the name of the department the Employee works in (available via getDepartment). Again, getDescription should return a suitable message.An abstract class Clock has been provided with following instance variables hours mins secs This class has an abstract method tick(). The responsibility of this method is to represent the passage of 1 second but what time is reached after ticking depends upon whether the clock is 24 hrs or 12 hours. You need to provide two subclasses namely Clock12 and Clock24 which reprent the 12 and 24 hours clock respectively. Override the tick() mehtod in each of these classes so that 1 tick increases the time by 1 secont and updates all values (hrs min and seconds accordingly). On 24 hours clock 1 tick increases 1 second but consider the situation if the current time was 10:59:59 then ticking once will make it 11:00:00. You will have to consider all situations. 1 second can mean just increment in the seconds value. But if the seconds become 60 then you need to make it 0 again and increment mins instead and so on. Also, after 23:59:59 the time becomes 00:00:00 On the 12 hours clock we…Write a java program in which Animal:Create 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, MammalNext 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…
- write a class Point with parametrized constructor. This class have four member variables, a,b,c,d. Write the following member functions a. drawTriangle(int x, int y, int z ) b. drawRectangle(int x, int y, int z, int a). Each function should display the length of lines for each of the shape (triangle, rectangle). For example triangle should calculate length of its three lines by following methods as shown in code. Note: the number of lines depends on the name of shape. void drawTriangle(int x, int y, int z ) { int line 1 = x - y; // convert to positive value if line length is negative int line 2 = y -z; int line 3 = z -x; cout<< The length of each lines is: << //// here display length of each line with proper formatting. } Write similar code for drawRectangle(int x, int y, int z, int a). Wtite main function to call these three functionCreate a class MyTime which has the datamembers as follows: 1. hour: integer (1 to 12)2. minute: integer (0 to 59)3. second: integer (0 to 59)4. pm: bool variable. True means PM time and false means AM time. Implement a default constructor, a parameterized constructor and a copy constructor. Write set and get functions for all the four members of the class. Overload these operators: 1. Extraction operator >> : Prompt the user for hours, minutes, seconds and for am/pm and initialize the structure. Left operand istream object and right operand MyTime2. Assignment = : Assign the right object to the left object. Both operands are of type MyTime.3. Insertion << : Print the time in the format HH:MM SS PM. Left operand of type ostream and right operand of type MyTime. this in c++.Create a class named Shape with a function that prints "This is a shape". Create another class named Polygon inheriting the Shape class with the same function that prints "Polygon is a shape". Create two other classes named Rectangle and Triangle having the same function which prints "Rectangle is a polygon" and "Triangle is a polygon" respectively. Again, make another class named Square having the same function which prints "Square is a rectangle".Now, try calling the function by the object of each of these classes.Please code C++