A Teacher has office hours and a subject they teach. They also have a tenure status. Define the tenure status as a constant. The tenure status is either Senior or Junior, and is represented as an integer, where Senior is equal to 1, and Junior is equal to 2.
Q: In the main function, write a program that asks for two character inputs and assign them to their…
A: I give the code in C along with the output and code screenshots and inline comments
Q: To what extent could you perhaps acquaint me with the foundations of a cache hierarchy?
A: According to the information given:- We have to define the foundations of a cache hierarchy.
Q: Suppose a file system uses the Block bitmap to indicate allocation status of blocks in the File…
A: Disclaimer: As per our policy, "Since you have asked multiple questions, we will solve the first…
Q: General Motors' approach for gaining a competitive edge may be identified and defended using Michael…
A: Introduction: To help firms compete and ultimately dominate their industry, the generic competitive…
Q: Discuss the importance of an operating system as it relates to computer hardware and software.…
A: An Operating System (OS) is software that acts as a bridge between the computer hardware components…
Q: What follows is a catalog of cloud-based assets, followed by an explanation of how businesses might…
A: Utilizing the Cloud: It is described as a distributed network allowing the simultaneous sharing and…
Q: Find out how cloud computing stacks up against mobile devices, and why. There are several ways in…
A: Mobile computing lets us access data and information on mobile devices, whereas cloud computing…
Q: According to the data presented in Chapter 6, systems analysts and programmers transform objects…
A: Modular design Modular design is defined as an approach in which the system is divided into smaller…
Q: Which of the following lines of Haskell code is a correct call to a function with the type signature…
A: Dear Student, The answer to your question is given below -
Q: .file .text .global f f: clr r14 "f.s" jmp.Ltest .Ltop: mov r15, r13
A: Dear Student, The answer to your question is given below -
Q: When is it not required to segment a design for certain user needs?
A: Introduction: This project's major purpose is to display 7 segment digital numbers while the power…
Q: In class we considered the computational complexity of global localization as a hypothesis…
A: Dear Student, The answer to your question is given below -
Q: What is the Boolean equation for this KMAP
A: Solution: Given,
Q: Also, what makes them computer agents? Choose the items that may be called computational agents.…
A: Explanation: The computing agent should take input and provide output. It can store and retrieve…
Q: For what reason aren't secondary storage devices based on semiconductor memories?
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: Which of the following best describes a central processing unit (CPU) in a computer? A A Computer B…
A: The central processing unit, or CPU. It is the primary processing unit that handles input…
Q: Previously, you had created a file to launch a dictionary attack on a target server without salt.…
A: In the past, you generated a file to conduct a dictionary attack against a server without salt. The…
Q: In order to distinguish between a scalar and a superscalar processor, it is useful to look at…
A: Scalar and superscalar computer processor hardware are two options. Scalar processors execute data.…
Q: Consider the following red-black tree. 0002 0006 0023 0047 0056 0065 0076 Insert a key value of 0015…
A: According to the information given:- We have to find out the color of 0015, 0047 and 0023…
Q: A 2-way set associate cache include four blocks. Complete the contents of the cache table. Block…
A:
Q: VGA mode is used for the purpose of displaying visual information on a screen. Where do you get your…
A: VGA mode is utilised for the purpose of displaying visual output on a monitor. The very common type…
Q: KNN. Consider the following one-dimensional dataset. Each example is described by one numerical…
A: To classify a point using a 1-NN (nearest neighbor classifier), we need to find the nearest point in…
Q: Write a c++ code to print hello world
A: C++ is a general-purpose programming and coding language.C++ is an object oriented programming (OOP)…
Q: Can you name any possible object types for usage in an STL stack? What kind of data structure does…
A: STL stack: Stacks are a form of container adaptors that function according to the LIFO (Last In,…
Q: Databases allow for the discussion of both immediate and future problems.
A: Problems with the performance of the database are a typical source of bottlenecks in online…
Q: which object treats Navigation Controller as a root controller in xcode?
A: The root view controller is the simply view controller that sits at the bottom of the navigation…
Q: Question 4. Draw a DFA and NFA for the language accepting strings ending with 'abb' over input…
A: DFA and NFA All strings of the language end with the string "abb". The possible strings are { abb,…
Q: To what extent does your company's network undergo preemptive vulnerability assessment?
A: Preemptive vulnerability assessment is the assessment or a process which checks for any possible…
Q: Can the same thing also be done to the balance file function below bool balanceFile(istream&…
A: The code is modified and given below with code screenshot
Q: Several advantages may be gained by switching to a hierarchical database structure from a relational…
A: The tables in a hierarchical database are organised in the manner of a parent-child relationship.…
Q: What are digital platforms?
A: Digital platforms are online environments that allow people to interact with each other and with…
Q: In what situations would it be okay to launch a cyber assault on a specific group or organization,…
A: It is neither advisable nor ethical to launch cyberattacks on major corporations. Using Cyber…
Q: Is it more challenging to design GUIs using pixel-based coordinates?
A: The solution to the given question is: Most of the elements are controller with a joystick , as flat…
Q: Determine the fundamental actions involved in computational reasoning.
A: computation-based reasoning A collection of problem-solving techniques called computational thinking…
Q: Con you do a execution table and a flowchart for this code #include using namespace std;…
A: We have given a code in C++. We have to draw the execution table for the code and flowchart for the…
Q: Design and perform posteriori analysis on the posteriori analysis on the following recursive…
A: To design and perform a posteriori analysis on the recursive algorithms, we first need to understand…
Q: Which two categories of services do web-based programs provide? Which features of these services…
A: Describe two different services that the Internet provides to its users via its applications. Draw…
Q: Wireless networks have a poor throughput compared to wired ones.
A: Introduction: A wireless network uses radio waves or infrared signals to link computers. An…
Q: A relation R= {(0, 0), (1, 1)) is defined on the set A = {0, 1, 2, 3}. Is R transitive? True False
A: These question answer is as follows
Q: Exhibit how internal IT and network risk regulations may play a vital role in countering workers'…
A: It is essential for all organisations, regardless of size, to maintain established IT and network…
Q: Give some examples of cloud computing's practical applications and impact on global development.
A: Simply put, cloud computing is the provision of computing services such as servers, storage,…
Q: How do different kinds of technology come into play during the process of detecting network intru
A: Breaches: When an outsider discovers a way to get past your network security and into your system,…
Q: When team members are located in various countries and time zones, it may be more challenging to…
A: When team members are located in various countries and time zones, it may be more challenging to…
Q: different ways to examine your website, check security with techniques and methods
A: There are several ways to examine your website for security. One method is to use a tool like a web…
Q: Web hosting is becoming more cost effective for many organizations today. Many of these providers…
A: Answer Here are some risks in outsourcing web hosting to third- party service providers :- Security…
Q: so which answer choices are correct ?
A: In this question we have to answer the multiple choice question related to in and out parameter of…
Q: suppose a,b, and c are odd integers. Prove that a+b+c is odd
A: suppose a,b, and c are odd integers. Prove that a+b+c is odd Direct proof: Let i,j,k be any any…
Q: What is Cybersecurity?
A: Cybersecurity Cybersecurity are the protection of internet connected systems such as the hardware,…
Q: Power and heat dissipation constraints are now widely recognized as critical design factors for…
A: A single integrated circuit (or a small group of integrated circuits) has all the logic and control…
Q: What are the key differences between these two types of data flow diagrams? The question of why…
A: DFD Presents the Flow of Data.Data flow diagrams (DFD) describe the route that data takes from…
NOTE: READ CAREFULLY
Design a class named Person and a subclasses named Employee. Make Teacher a subclass of Employee.
A Person has a name, address, and e-mail address. An Employee has an office, salary.
A Teacher has office hours and a subject they teach. They also have a tenure status. Define the tenure status as a constant. The tenure status is either Senior or Junior, and is represented as an integer, where Senior is equal to 1, and Junior is equal to 2.
Each class should have a Default constructor, and a constructor that accepts all arguments. There should be appropriate calls to the superclass within the constructors.
Each class should also have getters and setters for each member variable.
Each class should have a toString method.
Note: You do NOT need to run this in a test
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- 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 = $200If class A is a subclass of class B, then A has access to all of B's instance variables, including private ones. True FalseAssume that we have four classes: Person, Teacher, Student, and PhDStudent. Teacherand Student are both subclasses of Person. PhDStudent is a subclass of Student.A.Which of the following assignments are legal, and why or why not?Person p1 = new Student();Person p2 = new PhDStudent();PhDStudent phd1 = new Student();Teacher t1 = new Person();Student s1 = new PhDStudent();Suppose that we have the following legal declarations and assignments:Person p1 = new Person();Person p2 = new Person();PhDStudent phd1 = new PhDStudent();Teacher t1 = new Teacher();Student s1 = new Student();B.Based on those just mentioned, which of the following assignments arelegal, and why or why not?s1 = p1;s1 = p2;p1 = s1;t1 = s1;s1 = phd1;phd1 = s1;
- What does the super keyword represents and where can it be used? Give an example of a superclass and subclass. Be sure to make all the instances variables of the super class private. Include at least one constructor in each class and ensure that the constructor of the subclass calls the constructor of the superclass. Also include a toString method in both classes that returns the values of the instance variables with appropriate labels. Ensure that the toString method of subclass calls the toString method of the superclass so that the string returned contains the values of all the inherited instance variables.In the following there are two classes, Employee and Manager. Manager is a subclass of Employee. The implementation of Employee class is given (Note: no getter methods are provided, so you are not able to access instance variables through getter methods in the subclass). The skeleton of the Manager class definition is given. Complete the constructor method, and the toString method for the subclass (see the details below). public class Employee { private String name; private double salary; // Make an employee with a given name and salary. public Employee(String aName, double aSalary) { name = aName; salary = aSalary; } // Provide a string description of an employee. public String toString() { return "Name: " + name + "\tSalary: " + salary; } } public class Manager extends Employee { private String department; // Make a manager with a given name, salary, and department. public Manager(String name, double salary, String department) { // put your code below } // Provide a string…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 the classes as shown in the following class diagram. Add a tester that asks the user for a cat, dog and a BigDog then call all of their methods. Note that Cat and Dog inherit from the abstract class Animal and BigDog inherits from Dog.Problem B Now we are going to use the design pattern for collecting objects. We are going to create two classes, a class AmazonOrder that models Amazon orders and a class Item that models items in Amazon orders. An item has a name and a price, and the name is unique. The Item class has a constructor that takes name and price, in that order. The class also has getters and setters for the instance variables. This is the design pattern for managing properties of objects. The setName() method should do nothing if the parameter is the empty string, and the setPrice() method should do nothing if the parameter is not positive. The class also has a toString() method that returns a string representation for the item in the format “Item[Name:iPad,Price:399.99]”. For simplicity, we assume an Amazon order can have at most 5 items, and class AmazonOrder has two instance variables, an array of Item with a length of 5 and an integer numOfItems to keep track of the number of items in the…Consider a class BankAccount that has • Two attributes i.e. accountID and balance and• A function named balanceInquiry() to get information about the current amount in the account Derive two classes from the BankAccount class i.e. CurrentAccount and the SavingsAccount. Both classes (CurrentAccount and SavingsAccount) inherit all attributes/behaviors from the BankAccount class. In addition, followings are required to be the part of both classes• Appropriate constructors to initialize data fields of base class• A function named amountWithdrawn(amount) to withdraw certain amount while taken into account the following conditionso While withdrawing from current account, the minimum balance should not decrease Rs. 5000o While withdrawing from savings account, the minimum balance should not decrease Rs. 10,000• amountDeposit(amount) to deposit amount in the accountIn the main() function, create instances of derived classes (i.e. CurrentAccount and SavingsAccount) and invoke their respective…
- 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…If the programmer doesn't declare any constructors for an extended class, what constructors will be inherited from the superclass? How does this inherited constructor initialize new instance variables that are not part of the superclass? Suppose that Vehicle is a class and Car is a new class that extends Vehicle. Write a description of which kind of assignments are permitted between Car and Vehicle variables. Suppose you write a new constructor for an extended class. Describe two different ways that the superclass's instance variables could be initialized within the constructor for the extended class.The parent class is A, and its subclasses are B and C. Now, B and C share several characteristics and methods, but their implementations of some of their methods are drastically different. Using logic, define what A will be - a concrete class, an abstract class, or an interface.