If Lawyer, Secretary and Marketer are all subclasses of the superclass Employee, write a Java statement that declares an array called EmpArr with 3 elements that hold a lawyer object, a secretary object and a Marketer object assuming only the default constructor is available for each of these classes.
Q: Provide an example to demonstrate that you have an understanding of how cascading style sheets (CSS)…
A: CSS provides a way to separate the content from the presentation of a web page, making it easier to…
Q: Why do people seem to be so dependent on technological devices? Is this anything that companies…
A: Because technological devices provide to the people four major information ethics for the…
Q: 3. Does this graph has an Euler circuit? If yes, write the circuit. If no, determine whether the…
A: An Euler circuit is a path in a graph that visits every edge exactly once and begins and ends at the…
Q: Find a portable device that you can use, such as a cell phone, a handheld computer, or a remote…
A: Answer is given below
Q: 2. Use Prim's algorithm to find the minimum spanning tree for the graph below starting from node a…
A: Given graph contains, Set of vertices= {a, b, c, d, e, f, g, h, i, j} Between these vertices,…
Q: Problem 3 A TDMA system provides 48.6 kbps data rate for a single user over one physical channel…
A: The total data rate provided by the TDMA system is 48.6 kbps for one user. When 3 users are…
Q: 1. Create/ a sequence, GOV_SEQUENCE_xx, that begins with 100 and increments by 100 and uses all…
A: The following question deals with the creation and usage of sequences in a database management…
Q: There are three methods of data mining that are most often used.
A: Data mining: Gaining information from enormous data stores is called "data mining," and the phrase…
Q: What is dynamic memory allocation, and how does it function? Is it feasible to classify and explain…
A: Answer is given below
Q: Software process models like the spiral model are popular in academia but seldom applied in…
A: The spiral model, a software development process model, has been widely discussed in academia, with…
Q: Which career path or industry is expected to have most of its humans replaced within a couple…
A: Now a days technology is increasing very fast and the internet users are increasing day by day. Most…
Q: Today, it is important to consider the significance of wireless networks in developing nations such…
A: Answer: because of following advantages Wireless Network is better than local area networks(LAN)…
Q: In Checkpoint B, the game will be playable as a two-player game, albeit the competition will be a…
A: Python is often used as a support language for software developers, for build control and…
Q: In the context of server operating systems, what features does Windows Server 2008 R2 bring to the…
A: In the context of server operating systems, what features does Windows Server 2008 R2 bring to the…
Q: An investigation has been conducted to learn more about the origins of the file system's…
A: Hello student Greetings The file system's hierarchical structure has been an essential feature of…
Q: You may learn about software development metrics. Is something missing?
A: Software development metrics are quantitative measures that are used to evaluate and track various…
Q: How will the information be moved from the form to the website's database?
A: Answer is given below
Q: Describe the properties of the Just in Time system while offering various examples to illustrate it.
A: The answer is given below step.
Q: Before we can even begin to comprehend RAID 5, we need to have a firm grasp on what it really is.…
A: RAID 5 (Redundant Array of Independent Disks) is a data storage technique that Combines disk…
Q: Use the Law of Cosines to solve the triangle. Round your answers to two decimal places. a = 51, b =…
A: The Law of Cosines states that: c^2 = a^2 + b^2 - 2abcos(C) b^2 = a^2 + c^2 - 2accos(B) a^2 = b^2…
Q: Is there a difference between the organization of a computer and the architecture of a computer? Do…
A: What is computer: A computer is an electronic device that can perform various operations based on…
Q: How exactly can the employment of a siloed information system result in problems, challenges, and…
A: The use of siloed information systems can result in a variety of problems, challenges, and causes…
Q: Examine how people who use computers and mobile devices respond to issues with software and…
A: Users of computers and mobile devices often encounter issues with software and applications. These…
Q: Why does the presence of a diverse selection of information systems create a challenge in the…
A: The topic of information systems in the workplace is an important one, as the increasing use of…
Q: Consider a swapping system in which memory consists of the holes as shown in Fig. 4. Note that A to…
A: “Since you have posted a question with multiple sub parts, we will provide the solution only to the…
Q: What exactly is the meaning of the term "invalid input"?
A: In computing, "input" refers to the data or information that is entered into a software program or…
Q: Consider the following function of two variables: ?(?,?)=1+?2?2�(�,�)=1+�2�2 Use SymPy for the…
A: In S(x), we define the function f and then integrate it from 0 to 2 using sympy.integrate. The…
Q: How much of an impact have the internet and other forms of social media had on people's mental…
A: People's mental health has been greatly impacted by the internet and social media. The accessibility…
Q: Take into consideration the quality of the programme from the perspective of its bugs. In your role…
A: Hello student Greetings Maintaining high software quality is a crucial aspect of software…
Q: In what ways are corporations utilizing Big Data today, and why are they doing so?
A: Corporations are utilizing big data in various ways to gain insights and improve their business…
Q: Give an explanation as to why read-only memory (ROM) is required in the design of a computer system…
A: Read-only memory (ROM) is an essential component of a computer system, providing a means of…
Q: For this assignment, you will create a glossary (dictionary) of technical terms and definitions. It…
A: Define a dictionary of technical terms and definitions Define a menu function that will print a…
Q: How many different constructors does Java have to offer?
A: Constructors are an essential part of object-oriented programming, providing a mechanism for…
Q: Describe function of the following terms in couple lines each A) Cause of deadlock b) How to…
A: Deadlock is a situation in a computer system where two or more processes are unable to continue…
Q: How deeply should end users be engaged in the process of selecting the database management system…
A: End users ought to be taken part in the process of selecting the database management system (DBMS)…
Q: Give an explanation as to why read-only memory, also known as ROM, is required in the design of a…
A: Read-Only Memory (ROM) is an necessary part of a processor scheme since it food The necessary orders…
Q: What are the positives and negatives of two components of a regulatory framework that tackles the…
A: A regulatory framework for ensure the safety of data sent online characteristically Consists of…
Q: What kind of changes have been brought about by the internet in the way that systems are designed?
A: The internet is a global network of interconnected computer networks that allows people to access…
Q: Could you maybe explain how the convergence of computers, telecommunications, and the media has…
A: In recent years, the convergence of computers, telecommunications, and media has led to the…
Q: Focus on dictionary methods, use of functions, and good programming style For this assignment, you…
A: Start. Define a dictionary named "glossary" with pre-defined key-value pairs. Define a function…
Q: Why, despite their seeming simplicity, are files capable of so much power?
A: Files are a principal idea in computer systems and are utilized to store and coordinate information,…
Q: Is there any value in having a Master file that stores data permanently?
A: In today's digital age, the storage and management of data have become crucial for many businesses…
Q: Why is the file space hierarchical?
A: File space hierarchical A Hierarchical File System is a way to organize digital files on a computer…
Q: Help for users is offered at three different levels: the session, the presentation, and the…
A: When designing user interfaces, it's important to consider the different levels of help and support…
Q: How much faster is a solid-state drive (SSD) compared to a magnetic disc?
A: Solid-state drives (SSDs) are significantly faster than magnetic disk drives (HDDs) because of their…
Q: Software development has several parts. Consumer interaction aids which system development stage? Is…
A: Consumer interaction aids which system development stage? In the software development lots and lots…
Q: Draw a truth table and the block diagram of a decoder for converting binary to octal code
A: Here's the truth table for a decoder that converts binary to octal code: Truth table: Input…
Q: The rationale behind why putting a virtual private network (VPN) behind a firewall is a good idea.…
A: With the rise of remote work and the increasing need for secure online communications, the use of…
Q: Data that has been previously accessed may reap the benefits of "spatial locality" and "temporal…
A: For quick and effective functioning, computer systems depend on quick access to data. Caching, which…
Q: How exactly will customers and consumers benefit from digital financial services?
A: Digital services refer to any service or product that is delivered or consumed through digital…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Step by step
Solved in 4 steps with 2 images
- #this is a python program #topic: OOP Design a class called Pokemon using a parameterized constructor so that after executing the following line of code the desired result shown in the output box will be printed. First object along with print has been done for you, you also need to create other objects and print accordingly to get the output correctly. [You are not allowed to change the code below] #Write your code for class here team_pika = Pokemon('pikachu', 'charmander', 90, 60, 10) print('=======Team 1=======') print('Pokemon 1:',team_pika.pokemon1_name, team_pika.pokemon1_power) print('Pokemon 2:',team_pika.pokemon2_name, team_pika.pokemon2_power) pika_combined_power = (team_pika.pokemon1_power + team_pika.pokemon2_power) * team_pika.damage_rate print('Combined Power:', pika_combined_power) #Write your code for subtask 2,3,4 here Output: =======Team 1======= Pokemon 1: pikachu 90 Pokemon 2: charmander 60 Combined Power: 1500 =======Team 2======= Pokemon 1:…Sanchez Construction Loan Co. makes loans of up to $100,000 for construction projects. There are two categories of Loans—those to businesses and those to individual applicants. Write an application that tracks all new construction loans. The application also must calculate the total amount owed at the due date (original loan amount + loan fee). The application should include the following classes: Loan—A public abstract class that implements the LoanConstants interface. A Loan includes a loan number, customer last name, amount of loan, interest rate, and term. The constructor requires data for each of the fields except interest rate. Do not allow loan amounts greater than $100,000. Force any loan term that is not one of the three defined in the LoanConstants class to a short-term, 1-year loan. Create a toString() method that displays all the loan data. LoanConstants—A public interface class. LoanConstants includes constant values for short-term (1 year), medium-term (3 years), and…Python program for this project: Patient Charges Write a class named Patient that has attributes for the following data: First name, middle name, and last name Address, city, state, and ZIP code Phone number Name and phone number of emergency contact The Patient class’s _ _init_ _ method should accept an argument for each attribute. The Patient class should also have accessor and mutator methods for each attribute. Next, write a class named Procedure that represents a medical procedure that has been performed on a patient. The Procedure class should have attributes for the following data: Name of the procedure Date of the procedure Name of the practitioner who performed the procedure Charges for the procedure The Procedure class’s _ _init_ _ method should accept an argument for each attribute. The Procedure class should also have accessor and mutator methods for each attribute. Next, write a program that creates an instance of the Patient class, initialized with sample data. Then,…
- Write a program named SalespersonDemo that instantiates objects using classes named Real EstateSalesperson and GirlScout. Demonstrate that each object can use a SalesSpeech() method appropriately. Also, use a MakeSale() method two or three times with each object, and display the final contents of each objects data fields. First, create an abstract class named Salesperson. Fields include first and last names; the Salesperson constructor requires both these values. Include properties for the fields. Include a method that returns a string that holds the Salespersons full name—the first and last names separated by a space. Then perform the following Create two child classes of Salesperson: Real EstateSalesperson and Girl Scout. The Real EstateSalesperson class contains fields for total value sold in dollars and total commission earned (both of which are initialized to 0), and a commission rate field required by the class constructor. The Girl Scout class includes a field to hold the number of boxes of cookies sold, which is initialized to 0. Include properties for every field. Create an interface named ISell able that contains two methods: SalesSpeech() and MakeSale(). In each Real EstateSalesperson and Girl Scout class, implement SalesSpeech() to display an appropriate one- or two-sentence sales speech that the objects of the class could use. In the Real Estatesalesperson class, implement the MakeSale() method to accept an integer dollar value for a house, add the value to the Real EstateSalespersons total value sold, and compute the total commission earned. In the Girl Scout class, implement the MakeSale() method to accept an integer representing the number of boxes of cookies sold and add it to the total field.In previous chapters, you have created programs for the Greenville Idol competition. Now create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing Dancing, Musical instrument, and Other. The class contains an auto-implemented property that holds a contestants name. The class contains fields for a talent code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid. The talent description is a read-only property that is assigned a value when the code is set. Modify the GreenvilleRevenue program so that it uses the Contestant class and performs the following tasks: The program prompts the user for the number of contestants in this years competition; the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code.This program should be written in Java: Hamburger Joint: Hamburger ClassWrite a Hamburger class with the following six attributes: • bun - the type of bun the burger will be on • patties - the number of patties on the burger • cheese - whether or not the burger will have cheese • price - the price of the burger • toppings - an array of five toppings; it will need to start empty Write getters/setters for all attributes except the toppings array. Your constructor should create a single on white with no cheese and no toppings with a price of $2.99. Your class should include the following methods in this order, please: addCheese - this method has no parameters that adds cheese to the burger and increases the price by 75 cents superSizeIt - this method has no parameters and adds a patty to the burger and increases the price by 1.50 addToppings - this method would present the user with at least five toppings (your choice) stored in an array of String objects. If the user indicates the wants…
- 2. Student (extend the class Person) that has the following: Data Fields: private int ID prvate double grade Constructor: Constructor to create a Student object with specifiedname address, ID & grade. Methods: Accessor and mutator methods for all data fields.IN C++ Lab #6: Shapes Create a class named Point. private attributes x and y of integer type. Create a class named Shape. private attributes: Point points[6] int howManyPoints; Create a Main Menu: Add a Triangle shape Add a Rectangle shape Add a Pentagon shape Add a Hexagon shape Exit All class functions should be well defined in the scope of this lab. Use operator overloading for the array in Shape class. Once you ask the points of any shape it will display in the terminal the points added.In PYTHON design an Employee class that has fields for the following pieces of information:• Employee name• Employee numberNext, design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information:• Shift number• Hourly pay rateThe workday is divided into shifts: day and night. The shift field will hold an int value representing shift that the employee works. The day sifts is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator methods for each class.Once you have designed the classes, design a program that creates an object of the ProductionWorker class and prompts the user to enter data for each of the object’s fields. Store the data in the object and then use the object’s accessor methods to retrieve it and display it on the screen.Program Sample Run #1The worker name is John RobinsThe worker number is 1234The shift is 1The rate is 36.0
- Q#: Write a class Email that contain the following fields, which other classes may not access: To From Subject Content Write a function member called SendEmail that initialize all the class fields through information passing as parameters. SendEmail method will print the content of email only. Write a driver class with any name that must have a main method. Inside main, call SendEmail.Sanchez Construction Loan Co. make loans of up to R100, 000 for construction projects. There rea two categories of Loans – those to business and those to individual applications. Write an application that tracks all new construction loans. The application must also calculate the total amount owed at the due date (original loan amount + loan fee). The application should include the following classes: Loan: An abstract class that implements the LoanConstants interface. A Loan includes a loan number, customer last name, amount of loan, interest rate, and term. The construct requires data for each field except interest rate. Do not allow loan amount over R100.000. Force any loan term that is not one of the three defined in the LoanConstants class to a short-term, 1-year loan. Create a toString() method that displays all the loan data. LoanConstants: An interface class, LoanConstants include constant values for short-term (1 year), medium-term (3 year), and long-term (5 years) loans.…I'm Using Python Design an Employee class that has fields for the following pieces of information:• Employee name• Employee number Next, design a class named ProductionWorker that extends the Employee class. The ProductionWorker classshould have fields to hold the following information:• Shift number• Hourly pay rate The workday is divided into shifts: day and night. The shift field will hold an int value representing shift that thecemployee works. The day sifts is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutatormethods for each class. Once you have designed the classes, design a program that creates an object of the ProductionWorker class andprompts the user to enter data for each of the object’s fields. Store the data in the object and then use theobject’s accessor methods to retrieve it and display it on the screen. Program Sample Run #1The worker name is John RobinsThe worker number is 1234The shift is 1The rate is 36.0