Write a Java program A2p1.java with a public class A2p1 and no named packages to read from stdin information for several singers and dancers. You should design a superclass Person with appropriate constructor(s) to initialize member variables such as name (of type String), sex (of type String) and age (of type int). You should design two additional subclasses Singer and Dancer of the Person class with appropriate constructor(s) to initialize additional member variables such as favorite (of type String). You can add the toString method to these three classes to provide a suitable string representation for objects of these classes. Put all four classes in the same file. A sample run can look like the following (you can also try running it with standard input redirection):
Q: What will the value of eax be after this sequence? O 8 09 O 10 mov eax, 10 push eax dec [esp] inc…
A: Answer: 10
Q: What part does AI play in the design of databases? What benefits and drawbacks come with integrating…
A: Introduction: The more practical notion and focus of this explanation is using a purpose-built…
Q: Define the Language Interoperability feature of .NET Framework
A: 1. Interoperability basically means a software can exchange information. .NET Framework Provides a…
Q: A topological issue has to be solved, please. The internet, however, did not. Give a thorough…
A: A topological issue has to be solved:-
Q: Translate this into Assembly code int x[5]; int sum = 0; for (int i = 0;…
A: BELOW STEP BY STEP COMPLETE SOLUTION REGARDING YOUR PROBLEM :
Q: You need to be able to name four design models used in system design.
A: 1.Design the environment 2. Design the application software 3. Design the database
Q: Examine the potential of artificial intelligence in light of its current developments
A: Introduction: Artificial Intelligence (AI) is reshaping the future of practically every industry and…
Q: In this problem, we wish to design and build components of an assessment management system using…
A: import ballerina/io; import ballerina/grpc as grpc; ReposityOfFunctionsClient ep = check new…
Q: Not one of the optimised bubble sort's benefits over other sorts for sorted items. a) Quicker…
A: Bubble sort is a straight-forward sorting algorithm that iterates over an input list element by…
Q: Create a python game
A: Below is a simple python based retro game made using pygame module. The objective of the gaim is to…
Q: Write algorithm for the continually growing set of linear approximations of the constraints simply…
A: algorithm for the continually growing set of linear approximations of the constraints simply makes…
Q: The implementations look quite similar! Generalize this logic by writing a function count_cond,…
A: Hi please find the solution below and I hope it would be helpful for you. Please find the code…
Q: .Write a Java program to print an American flag on the screen. Expected Output * || || ||
A: Required language is Java:
Q: what does the word "computer" mean?
A: Computer is an electronic device used for processing and storing data.It also performs…
Q: Make a list of the top five risks and issues that emerging technologies face as they develop and are…
A: Introduction: Emerging technologies improve community and user experience. Let's quickly explore…
Q: Consider yourself the Authentication Manager of an IT organization, and you see that things were…
A: Here is the logic behind setting hacker-resistant passwords. When you're asked to create a password…
Q: Q3. Consider a system in which a process is allocated three frames in memory. Given the page…
A: optimal replacement:- number of hit=9hit ratio =920=45%number of page fault=11fault…
Q: In 20 words or fewer, describe how you would create a heuristic function for the scenario you choose…
A: Introduction: Determine a heuristic function to apply to the issue. A heuristic function, which is…
Q: In no more than 20 words, describe when two search algorithms are comparable. Exists a search…
A: Introduction: The search methods described in this part do not contain any extra information about…
Q: What are the outcomes of the UP exercise "Design a subsystem" (correct answers minus incorrect…
A: A user interface specification, often known as a UI specification, is a document that compiles. The…
Q: 3. Given the XML document NKU_Programs.xml file, a function that prints the contents of the Program…
A: I attached your answer below.
Q: A topological issue has to be solved, please. The internet, however, did not. Give a thorough…
A: Introduction: TOPOLOGYTopologies map a network's components. Topology describes a network's physical…
Q: Do our computers have any method for us to see the patches and hot fixes that have been downloaded?
A: Introduction Patches: Patches are upgrades to the software and operating systems (OS) that fix…
Q: Why would you want to utilise a reverse proxy server in your network setup and what precisely is…
A: Introduction: Server That Acts as a Reverse Proxy: It is in charge of managing any internet or…
Q: Exists an information system analysis and design self-study handbook?
A: Introduction: Analyzing and designing IT: It's a way used by corporations to construct and manage…
Q: It is what it says it is: the IEEE MAC sublayer. Why all the fuss? Give an illustration of a…
A: Describe the IEEE MAC sublayer: The logical layer receives an abstraction of the physical layer from…
Q: number to month name in dataframe in pandas
A: Lets see the solution.
Q: Input and output devices are collectively referred to as hardware in computer systems. What exactly…
A: Getting Started with Hardware: Hardware: Hardware refers to all of the computer's tangible pieces or…
Q: The hardware used to replicate Pep/9 has 64K memory. But what is its purpose? So far, just 0x0030 of…
A: Pep/9 equipment: The three parts that make up the Pep/9 hardware are the disc, the CPU, and the main…
Q: 16 - Compare two number a =150, b = 225 and print if they are: equal, greater, greater than or equal…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: Any software project may use verification, validation, and security testing techniques.
A: Computer testing Verification software verification Examining the documentation, the specification,…
Q: Define a function cycle that takes in three functions f1, f2, f3, as arguments. cycle will return…
A: Required language Python:
Q: Spam is the term for unsolicited commercial mass emailing systems. According to some detractors, the…
A: Five features of spam emails. 2. Don't have authorization to email subscribers. 3. Your IP is spam…
Q: The need for a Hadoop ecosystem and its components should be discussed.
A: HADOOP: Hadoop ecosystem helps solve large data concerns. It has parts and services. The services…
Q: What does the word "System Call" mean? How does the operating system handle this?
A: System call is a program or a command in which the computer programs requests for a service from the…
Q: Please answer it in python
A: Python Code # Solution 3 # Create an empty list grades = [] # use append method to add grades…
Q: 1. a.) Engineering the software product requires the complete documentation of the requirements…
A: “Since you have posted a question with multiple sub-parts, we will solve the first three sub- parts…
Q: Write a recursive method in java public static long numPaths(int r, int c) which can solve the…
A: The approach of this problem is right. The recursive call to move one column up then one row is also…
Q: Differentiate between break and continue statements with example.
A: Hi please find the solution below and I hope it would be helpful for you.
Q: 3. Prove that (a) n²+10n is O(n²)
A: Big-Oh-Notation (O):- O to mean "order at most" F(n)=O(G(n)) Formula to find out BIG OH:- There exit…
Q: e potential of artificial intelligence in light of its current developments
A: in the following section we will be discussing about the potential of artificial intelligence in…
Q: Use a truth table to determine whether the two statements are equivalent. ~(q→p) and q ~P
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: What does the literature review on cybercrime say about its importance?
A: Introduction: Cybercrime law establishes rules of conduct and standards of behaviour for the use of…
Q: By looking at the Screenshot of the IP configuration, answer these questions: 1) What is the…
A: The complete answer is given below:
Q: In message synchronization, what is a rendezvous? When receive blocks, but send is non-blocking When…
A: Message sychronization , rendezvous
Q: Let P and Q be two conditions of the same type. Check any objects which mustsatisfy P --> Q or "none…
A: Thus, the correct answer is "objects that falsify P or satisfy Q."
Q: In no more than 20 words, describe when two search algorithms are comparable. Exists a search…
A: Introduction: The search methods described in this part do not contain any extra information about…
Q: Click to see additional instructions What is the binary equivalent (in two's complement binary…
A:
Q: 4. Create an empty list called numbers. a) Add 2 and 4 into the list. b) Print the list. c) Add 0, 1…
A: Program Screenshot:
Q: Computer security is one of the issues since it is often introduced after the fact rather than being…
A: Answer :-
Step by step
Solved in 3 steps with 1 images
- Write a java program Write a class named Employee with name and salary as private data fields. Add a constructor with both parameters. Write a class named Manager which unherits the Employee class. Add an instance variable, named department, of type String and 15 private. Add a constructor in the subclass class and a toString () method that prints the manager's name, department, and salary [Hint: Add a tastanel) method in the super class as well]. Create objects of Manager and Employee dassWe have a parking office class for an object-oriented parking management system using java Add (implement )a method to the Parking Office c to return a collection of customer ids (getCustomerIds) using java I have attached two class diagrams with definitions of all related classes in our system (i.e car, customer, .....). N.B. Parking office methods in the class defination like register, getcustomer and addcharge have already been implemented, we just need an additional getcustomerID method as mentioned aboveGiven the main class Dog, subclass Poodle, and the beginning of the subclass Pug:Instructions for Pug.java Variables: int flabCount – the count of layers on the Pug An invalid value should default this field to 25. A value is invalid if it is nonpositive. boolean isPound – whether this Pug resides in the pound. Poodle bestFriend- a Poodle who is the best friend with the Pug Constructors: A constructor that takes in name, length, weight, stripeCount, isSaltwater, and bestFriend. The bestFriend argument should be deep copied. A constructor that takes in no parameters and sets name to “Pluto”, length to 30.0, weight to 320.0, stripeCount to 14, isPound to false, and bestFriend to null. A copy constructor that deep copies all necessary instance fields. Methods: migrate The pug moves to the opposite kind of living situation if and only if it does not have a best friend. For example, if this pug were now in a pound and it has a best friend, it would not migrate to a…
- We have a parking office class for an object-oriented parking management system using java Add(implement) a method to the Parking Office class to return the collection of permit ids for a specific customer (getPermitIds(Customer)) using java I have attached two class diagrams with definitions of all related classes in our system (i.e car, customer, .....). N.B. Parking office methods in the class definition like register, getcustomer and addcharge have already been implemented, we just need an additional getPermitIds(Customer) method as mentioned above Explain your code in a few words Important- We have a method to return a collection of permit ids (getPermitIds), what we need is a method to return the collection of permit ids for a specific customer (getPermitIds(Customer))Write a class named Person with data attributes for a person’s name, address, and telephonenumber. Next, write a class named Customer that is a subclass of the Person class. TheCustomer class should have a data attribute for a customer number, and a Boolean data attributeindicating whether the customer wishes to be on a mailing list. Demonstrate an instance of theCustomer class in a simple program.We have a parking office class for an object-oriented parking management system using java Add (implement )a function to the Parking Office class to return a collection of customer ids (getCustomerIds) using java I have attached two class diagrams with definitions of all related classes in our system (i.e car, customer, .....). N.B. Parking office methods in the class definition like register, getcustomer and addcharge have already been implemented, we just need an additional getcustomerID function as mentioned above Explain the code you wrote with a few words
- Declare an interface IA with two method Me() and You() in JAVA . Define two classes CA and CB which implement IA such that Me in CA displays it is me in CA and You in CA displays how are you from CA. The same message should be displayed from CB. Use the reference variable of the IA to implement runtime polymorphism.The Doctor program described in Chapter 5 combines the data model of a doctor and the operations for handling user interaction. Restructure this program according to the model/view pattern so that these areas of responsibility are assigned to separate sets of classes. The program should include a Doctor class with an interface that allows one to obtain a greeting, a signoff message, and a reply to a patient’s string. To implement the greeting, define a method named greeting for the Doctor class. To implement the signoff message, define a method named farewell for the Doctor class. Both greeting and farewell should return a string with a greeting or farewell message respectively. The reply function is defined for you, it should be added as a method for the Doctor class. The rest of the program, in a separate main program module, handles the user’s interactions with the Doctor object. Develop this program with a terminal-based user interface. Note: The program should output in the…Write an abstract class, it can be anything well defined from the very basics.
- 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 gradeJAVA Write the abstract super class Transaction, and two of its subclasses, Payment and Sale (you do not need to supply any comments other than your name). I. Write an abstract superclass encapsulating a Transaction: The Transaction super class has an instance variable representing the customers name, and 3 methods: an overloaded constructor, a toString() method that returns a message including the name of the customer, and an abstract method called calculateAmount()which will be implemented in your subclasses. II. Write a non-abstract subclass that inherits from the Transaction class encapsulating a Payment: The Payment class has instance variable representing the payment amount received and 3 methods. It has an overloaded constructor, a toString() method that returns a message including customers name, the name of the class Payment, and the payment amount, an non-abstract class called calculateAmount() which returns the payment amount. III. Write a…Write a java program in which A class named Processor has Two public attributes i.e. price and speed (float value like 2.8, 3.2 etc in MHz) A parameterized constructor to initialize attributes with user-defined valuesClass MainMemory consists of Two public attributes i.e. size (4,8 etc in Gb) and price A parameterized constructor to initialize attributes with user-defined valuesClass MotherBoard has a private data member named compName of type string a no-argument or default constructor to initialize with default name intel setter function setCompName() to set the name of the computer getter function getCompName() to get the name of the computerClass Monitor has a private data member named size (17, 19 inches) of type Int that represents size of screen A parameterized constructor to initialize attribute size. setter function setMonitorSize() to set the value to size. getter function getMointorSize() to get the size of screen. public remove() method, that will change the…