Below is the class Greeter and its method, greet: public class Greeter { } public String greet() { } return "Hi"; Which of the following are the correct way to create a subclass called MeanGreeter and implement the overridden greet method of the child class so that it returns "Go Away"? (Select all that apply) class MeanGreeter extends Greeter ( public String greet() { return super() + "Go Away"; } } class MeanGreeter implements Greeter { public String greet() { } } return "Go Away"; Oclass MeanGreeter extends Greeter ( public String greet() ( return "Go Away";
Q: Q1: Use Switch structure in MATLAB to convert the temperature in Celsius to Fahrenheit and vice…
A: Converting Celcius to Fahrenheit and vice versa using Switch val = input('Type 1 for Celcius to…
Q: Q2) Given the message= “password must be secure”. Propose one technique that uses transposition to…
A: Introduction: Network security is a bunch of innovations that safeguards the convenience and…
Q: We have a set of activities that require stand-alone access to a common resource, given the form A =…
A: The above algorithm is an activity election approach where non-overlapping activities are taken…
Q: Modify the pseudocode design that you created so far for your ITP 100 Project. To do the following :…
A: Code in Step 2:
Q: in c# please Write method QualityPoints that inputs a student’s average and returns 4 if the…
A: As per the requirement program is developed. Algorithm: Step 1: Write the main method. Step 2:…
Q: What is the central processing unit in the power circuit in the
A: Answer: Italian physicist Federico Faggin developed the main business CPU. It was the Intel 4004…
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: Ethernet Transmission Algorithm: In this, the channel is detected prior to sending the information.…
Q: 2) A BMI Calculator: the body mass index (BMI) is a measure used to determine whether a person is…
A: Java Code import java.util.Scanner; public class Test { public static void main(String[] args) {…
Q: Suppose the round-trip propagation delay for Ethernet is 46.4 µs. This yields a minimum packet size…
A:
Q: index=0 for 1 to 20 //get user input value into array arr[index]=input index-index +1 //calculate…
A: C++ program for ( 2a. ) #include<iostream> using namespace std; //2a. complete c++ program…
Q: For the network given in Figure 3.54, give global distance-vector tables like those of Tables 3.10…
A:
Q: (d) Explain THREE (3) forms of intellectual property that are relevant in the context of network and…
A: A type of intangible property that is created by the mined like inventions, designs, names, work of…
Q: Suppose an IP packet is fragmented into 10 fragments, each with a 1% (independent) probability of…
A: Assume an IP packet is fragmented into ten pieces, each with a 1% chance of loss. As a result, there…
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: The answer is given in the below step
Q: Trying opening my computer screen online for my class please send me a computer to address Dallas…
A: See second step.
Q: Q2) A) Using the RSA Public-Key Cryptosystem with: n=77 0(n)-60, and e=37 1) Find the privet…
A:
Q: For the network given in Figure 3.54, give global distance-ve- ables like those of Tables 3.10 and…
A: The figure of the network is as follows:
Q: When it comes to cloud security, what is the "shared responsibility" paradigm like?
A: Introduction: One type of cloud security model is the shared accountability paradigm. In order to…
Q: What is the central processing unit in the power circuit in the mobile?
A:
Q: Consider how important wireless networks are in today's countries that are still developing.…
A: Nowadays, most communication is wireless. It involves sending information over a shorter distance or…
Q: 1. Write a JavaScript statement to accomplish each of the following tasks: a) Declare variables…
A: JavaScript:- Java Script can be both server side and client side. Client-side javascript is the…
Q: 1. Consider the network shown in Figure 4.28, in which horizontal lines represent transit providers…
A: Below is the answer to above question. I hope this will be helpful for you..
Q: When it comes to cloud security, what is the "shared responsibility" paradigm like?
A: The question is to define what the "shared responsibility" paradigm like in cloud security.
Q: How many times the following loop will be executed int i = 0; while(i<=9) i=i+3; a. 2 O b. 1 C. 4 O…
A: Explanation: Initially i = 0, it check 0 <= 9, true, then increase i by 3 means now i = 3.…
Q: What does RAM stand for
A: We need to discuss RAM.
Q: A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2,…
A: As given - A micro instruction format has micro-operationthe field which is divided into 2 subfields…
Q: Design a web page with a text box (username) where the user can enter a name and another text box…
A: PROVIDE JS SOURCE CODE Design a web page with a text box (username) where the user can enter a name…
Q: (b) Suggest THREE (3) suitable countermeasures to avoid SBSB database from SQLinjection attack.
A: in this question we will discuss three countermeasures to avoid SBSB database from SQLinjection…
Q: Each computer on the Internet has a unique A IP address B Function…
A: Introduction: In this question, we are asked to answer two MCQs and the answer is in the next step
Q: c) Assuming an 8-bit system is used (i.e. the system uses 8 bits to represent an integer):…
A: This question comes from Number System which is a paper of Computer Science. Let's discuss it in the…
Q: When closing a TCP connection, why is the two-segment-lifetime timeout not necessary on the…
A: TCP is a connection of networks and it establishes connection between client and server before any…
Q: What form of Denial of Service attack is well known for spoofing the source and destination address…
A:
Q: . What is the maximum bandwidth at which an IP host can send 576-byte packets without having the…
A:
Q: //get user i arr[index]a index ind //calculate avg sum
A: #include<iostream>using namespace std;int main(){int a[20];cout<<"enter the elements of…
Q: Suppose the round-trip propagation delay for Ethernet is 46.4 µs. This yields a minimum packet size…
A: In Round Trip time, round – trip propagation delay is one of the components of the metric.
Q: Wages are paid at a standard hourly rate for 40 hours per week and at time and one half for…
A: The Java code is given below :-import java.util.*; public class Main{ public static void…
Q: Consider an ARQ protocol that uses only negative acknowledgments (NAKS), but no positive…
A: ARQ stands for automatic repeat request. It based on acknowledgements and timeouts to get the…
Q: Give some details of how you might augment the sliding window protocol with flow control by having…
A: We assume ACKs carry an additional variable k, which indicates the available buffer space of the…
Q: Based on the following scenario: Salim Bersaudara Sdn Bhd (SBSB) is a factory that produces…
A: Database is a collection of stored data that can be accessed, edit or update electronically by some…
Q: I need help in this C program. Assume two lists of integers both in ascending order. The first list…
A: Assume two lists of integers both in ascending order. The first list was stored in binary files…
Q: Create a menu system program in c++ that asking an input based on the choices below. If the input is…
A: The quadratic equation formula is given below: ax2+bx+c=0 The discriminant of the equation is…
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: Ethernet Transmission Algorithm: In this, the channel is detected prior to sending the information.…
Q: a) A paging system with 512 pages of logical address space, a page size of 2* and number of frames…
A:
Q: Suppose the round-trip propagation delay for Ethernet is 46.4 µs. This yields a minimum packet size…
A: Let's Assume 48 bits of the jam signal, it was still used.
Q: n this assignment compile and run example2(debug_FunctionSwap.cpp) and complete the steps from…
A: Given code is C++ code. 1) File format of the code should be .cpp files.
Q: Suppose a 10-Mbps Ethernet hub (repeater) is replaced by a 10-Mbps switch, in an environment where…
A: Ethernet hubs are multiport repeaters that help expand the physical medium and give network devices…
Q: Out of all you have practiced in the MyLabIT assignments, what features of or tools in Microsoft…
A: Word is software designed by Microsoft which is used to create documents. It is available as a…
Q: words on artificia
A: Introduction:The replication of human intelligence functions by machines, particularly computer…
Q: Suppose a 10-Mbps Ethernet hub (repeater) is replaced by a 10-Mbps switch, in an environment where…
A:
Q: Define a Python function split_dict() that takes a number x and a dictionary d whose keys are…
A: Here is python function to implement above criteria. See below for code
Step by step
Solved in 3 steps with 2 images
- Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…
- Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…Define a class Student to create Student Objects. The class defines two variables for its objects: name (String ) and average (double). The class provides a constructor with arguments and includes the following object methods to do the following: - public void print() : prints the Student data - public void setAverage(double newAvergae): sets the student average with a new value. Define a class StudentTest In the main method, create three student objects (Ali, Rami, Khalid) with initial average 60 for each one. - Call the setAverage method on each created student to change their average with a randomly value (hint: use Math.random( ) method to generate average value in range [0..100]). - Print the name of the student who's the maximum average. hint: you should compare between the Student objects according to their average.
- Determine if this statement is true or false Take the following method, which is defined in some class: class SomeClass: SomeBaseClass{ private int override MyMethod() { //do something.... } } This is an example of run time polymorphism, as MyMethod is being redefined in the child class by the override keyword.There is a method in the super class called getSalary(), write a Java statement that calls this getSalary() method in the super class from the subclass.public class Father { public String name; public int age; // customer name Father(){ name=”Hassan”; age=50;} public void display(){ System.out.println(“Name:”+name); System.out.println(“Age:”+age); } } 1. Based on Figure 3, create a class named Child that inherits the Father class. Declare an instance name location (String) for class Child. 2. Define a constructor in class Child and give an appropriate initial values for the instance (name, age, location). 3. Define a method display () in class Child, execute the display ( ) method in superclass using the keyword super. Method display ( ) in class Child should print the information of name, age and location 4. Create other class named Main for the main method and create 2 objects for the 2 classes (Father and Child). Then execute the display ( ) method for Father and Child. Example of the output as in Figure 4: Father's info: Name: Josh Age: 50 Child's info: Name: Christy Age: 20 Location:…
- Design/code/test a Java program containing an abstract the class absWelcome. This class should contain: 1. A public abstract void method (you name it) that is empty 2. A public regular method (you name it) that prints "Welcome to " Next, create a subclass clsHello that extends absWelcome. This class should contain: • A public regular method (you name it) that prints "Java Programming" Finally, inside the Main class create an object (you name it) from the clsHello class. Use this new object reference to: 1. Output "Welcome to " from the abstract class 2. Output "Java Programming" from the subclass Your output should resemble that shown below >sh -c javac -classpath -type f-name '*.java') java -classpath :targe Welcome to Java Programming1 - Student class Make a class student (in student.py) that stores the following information for a student: Name (name) Student number (student_nr) Points per assignment (points_per_assignment) Exam grade (exam_grade) a) Behind each point of information is the name of the parameter to the initializer method. Store this information from the parameters in the object attributes with the same name. b) Add a method course_points() which returns the number of course points the student has gotten. Example: mary = Student("Mary", 15789613, [10, 9, 8, 10, 9, 10], 9)print(mary.course_points()) > 121 The calculation of the course points is explained in the course overview, course setup slides (Links to an external site.) and the first lectureLinks to an external site.. c) Add a method grade() which returns a the final grade of the student, rounded to nearest half (upwards, 6.75 -> 7). As per regulations, a 5.5 becomes a 6. If the student did not pass both the assignments (>= 95…Java programming language I need the two classes ( the testing class and the class with the methods) to be combined into one class. This is the program: import java.util.Scanner; //The Temperature Class Begins Here public class Temperature { private double ftemp; //The constructor public Temperature(double ftemp) { this.ftemp = ftemp; } //Get farenheit Method public double getFtemp() { return ftemp; } //Set farenheit method public void setFtemp(double ftemp) { this.ftemp = ftemp; } // Get Celcius Method public double getCelcius(double ftemp){ //double celcius = (double) (5/9) * (ftemp - 32); double celcius = (ftemp-32)* (double)5/9; return celcius; } // Get Kelvin Method public double getKelving(double ftemp){ double Kelvin; Kelvin = (ftemp-32)*(double)5/9 + 273.15; return Kelvin; } } //The Temperature Class Ends Here //The Temperature Test Class with a main method begins Here class…