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
- Write a java program that has:A class University that has:- Three private instance variables named firstName, lastName, and id- A constructor to initialize the three instance variables- A toString method to return: “Welcome,” + firstName +” “ + lastName + “Your ID is ” + id- AccessorsA subclass Employee that has:- Five additional private instance variables named department, rate, bonus, hours, and salary- An appropriate constructor to use constructor of superclass in defining those of the subclass- A method named compteSalary ( ) to return salary- A method named computeBonus ( ) to return bonus- Accessors A subclass Staff that:- Overrides computeBonus ( ) such that if hours are greater than 40, there will be %10 bonus for each additional houradded to salary- Overrides compteSalary ( ) such that salary = (rate * hours) + bonus- Overrides toString method to add department and salary into the outputA subclass Faculty that:- Overrides computeBonus ( ) such that if hours are greater than…Can you implement the Derived Class Parameterized constructor? A solution is placed in the "solution" section to help you, but we would suggest you try to solve it on your own first. Implement the constructor Dell(String name) of the Derived Class Dell which takes a string, name. We have already implemented the Base Class Laptop with the member function getName() and a parameterized constructor. Input# Laptop name is being passed through the parameterized constructor. Output# getName() method is returing Laptop name. Sample Input# Dell dell = new Dell("Dell Inspiron"); Sample Output# "Dell Inspiron"Implement the following concepts by constructing suitable classes in Java -a. Constructorsb. Constructor Overloadingc. Function Overloadingd. Function Overridinge. InheritanceCreate a class Person - Field - Name, Birthdate, Contact no and Mail idMethods - Constructor, accept and displayClass Employee - Inherits the Person classFields : Emp ID, grade, basic salary, Gross Salary, HRA (House Rent Allowance), TA (TravelingAllowance), DA (Dearness Allowance)Given:Grade Basic TAA 8000 2000B 7000 1500C 6000 1000D 5000 500Calculate Gross Salary :Gross Salary = Basic + HRA (20% of Basic) + DA (50% Basic) + TAe.g if Basic = 8000TA = 2000HRA = 20% of 8000 = 1600DA = 50 % of 8000 = 4000Gross = 8000 + 2000 + 1600 + 4000 = 15600Optional : you can implement increment function in which you can change grade of an employee andrecalculate salary with new grade
- Write a java program to create a class Employee which contains member variables as name (String object)empid (Integer object)salary (Float object)age (Integer object)Define a default as well as a parameterized constructor to initialize member variables with default and specified values respectively. Define and overload a method search as defined below boolean search (Employee e[ ], String name) To search an employee with name in an array of employee objects, if found return true, else false.boolean search (Employee e[ ], Integer empid) To search an employee with the empid in an array of employee objects, if found return true, else false.Also define another method to get the name of employee having highest salary in a set of employees. String getHighestSalary(Employee e[ ]) To return the name of the employee with highest salary in an array of employee objects.Input: At least 3 employee details like name, empid, salary and age.Name of employee to searchId of employee to searchOutput:…First, you need to design, code in Java, test and document a base class, Student. The Student class will have the following information, and all of these should be defined as Private: A first name (given name) A last name (family name/surname) Student number (ID) – an integer number (of type long) The Student class will have at least the following constructors and methods: (i) two constructors - one without any parameters (the default constructor), and one with parameters to give initial values to all the instance variables of Student. (ii) only necessary set and get methods for a valid class design. (iii) a reportGrade method, which you have nothing to report here, you can just print to the screen a message “There is no grade here.”. This method will be overridden in the respective child classes. (iv) an equals method which compares two student objects and returns true if they have the same student number (ID), otherwise it returns false. You may add other…Say we have a collection of animal classes, with each class represents a kind of animal. They all share a common ability of “speak”. Dog speak in the way of “Woof! Woof!”, cats speak in the way of “Meow! Meow!”, etc. In order to capture this common characteristic, we need an interface named Speakable: public interface Speakable { // put the method header here } Think about what method is needed for the Speakable interface? (what method can describe the speakable feature? ) We simply need one method speak() to print out the way that the animal “speaks”. Put the method header in the interface body. This method does not take any parameter and does not return any value. Be reminded that you only need to put the method header with a semicolon (abstract method) into the interface. BE NOTED: Adding an interface is different from adding a class. You need to click File tab -> New -> Interface, to add an interface file to the project. Now download Cat.java. Have them implement the…
- Say we have a collection of animal classes, with each class represents a kind of animal. They all share a common ability of “speak”. Dog speak in the way of “Woof! Woof!”, cats speak in the way of “Meow! Meow!”, etc. In order to capture this common characteristic, we need an interface named Speakable: public interface Speakable { // put the method header here } Think about what method is needed for the Speakable interface? (what method can describe the speakable feature? ) We simply need one method speak() to print out the way that the animal “speaks”. Put the method header in the interface body. This method does not take any parameter and does not return any value. Be reminded that you only need to put the method header with a semicolon (abstract method) into the interface. BE NOTED: Adding an interface is different from adding a class. You need to click File tab -> New -> Interface, to add an interface file to the project. Now download Dog.java. Have them implement the…Consider the following class implementation, which represents a price in dollars and cents: class Price { private: int dollars; int cents; public: Price() { dollars = cents = 0; } Price(int d, int c) { dollars = d; cents = c; } bool operator!=(Price); bool operator<(Price); }; Write an implementation for both overloaded operators. != should return true if the Prices are not equivalent, and should return false if they are equivalent. < should return true if the Price of the calling object (left object) is less than the parameter Price object (right object). You do not need to demonstrate calling these operators.Create a program that has the following classes: Point - Just like in the lecture, with attributes x and y set to 0 by default. Circle - Contains two attributes, center and radius. center is of type Point defined above (initialize a Point instance for this), while radius is set to 0 by default. The program must have the function point_in_circle(c, p) where c is a Circle and p is a Point. The function returns True if the point is within the circle, and False otherwise. You may use the math module (and nothing else) if necessary. You may also create other functions that can help you code the main function much easier. Example usage # Initialize a circle with center at (0, 0) and radius 1 (unit circle). c = Circle() c.center.x, c.center.y, c.radius = 0, 0, 1 # Initialize a point located at (1, 1) p = Point() p.x, p.y = 1, 1 # This returns False since (1, 1) is outside the circle point_in_circle(c, p)
- Create a base class with an abstract print( ) method that is overridden in a derived class. The overridden version of the method prints the value of an int variable defined in the derived class. At the point of definition of this variable, give it a nonzero value. In the base-class constructor, call this method. In main( ), create an object of the derived type, and then call its print( ) method. Explain the results. (JAVA)Write Java classes to solve the following problem: A company has two types of employees. These are called Exempt and NonExempt. Exempt means the employee is not eligible for overtime pay and is paid a fixed amount each pay period. NonExempt means the employee is paid by the hour and receives 1.5 times the hourly rate for hours worked over 40. Each Employee has an id number which is a string. They also have a name. Employee should be an abstract class with the member variables described in number 2. Employee should have an abstract method called findPay, a toString method, and it should implement the Comparable interface. Use alphabetical order of id number to determine less than, greater than, and equal to. The toString method should produce a string like the following: Emp: ID: 4590 Emp Name: Fred Jones Employee should have an equals method. Define two employees to be equal if they have the same name and the same id number. Provide accessor and mutators for Employee. NonExempt should…FOR JAVA Implement the following classes / abstract classes below. Monster abstract class which has health point (int), damage point (int), name (String), resistance rate (int) fields and following methods. – A constructor that takes the name as a parameter and sets the health and damage points to random numbers between 10 and 100. – isDead() method which returns true if hp is less than or equal to 0, and false otherwise. – fight() method which prints the applied damage after resistance (see below). WaterMonster class whose resistance rate is %20. For example, if the damage of an instance of this class is 100, the fight method should print 80. FireMonster class whose resistance rate is %10. SlicingMonster class whose resistance rate is %5.