Which superclass members are accessible by all subclasses of that superclass?
Q: Complete the sentences. Use a superlative (-est or most.) + a preposition (of or in).lt's a very goo...
A: We are going to complete a sentence using superlative and a preposition.
Q: Create a function print_double_spaced(cs) that takes a C string as an argument and prints the charac...
A: Answer :
Q: Put the verb into the correct forr took a picture of me
A: Lets see the solution.
Q: What keyboard shortcut is used to close the DevC? Select one: a. Alt+C b. Ctrl+C C. Alt+X d. Alt+F4 ...
A: Answer : d. Alt+F4 is shortcut used to close DevC.
Q: Write a Java program to reverse elements in a array list?
A: Algorithm: 1.import util package 2.create a class called main 3.Create a list and add some component...
Q: b) Why we cannot just wait until testing stage to find and correct all software errors?
A: Ans: Waiting until testing to find and correct software errors is inefficient is because: Fixing inc...
Q: c- Design a simple 3-level cache organization schematic using the following relevant blocks. Label t...
A:
Q: Using good OOP, write a C++ program that will compare two arrays to test for the same elements and m...
A: Code: #include <iostream>#include <fstream>using namespace std;int readFile(int* array, ...
Q: How do concurrency mechanisms prevent deadlocks? please no handwritten answers, no one worded, one p...
A: The concurrency mechanisms that prevents deadlocks re: Pipes: The buffer allowing two processes to c...
Q: 12. The keyboard shortcut to toggle between anchored cells ($) and unanchored cells (no $) is: a. F4...
A: According to the question Ms-excel is the most usable application by uses of microsoft for accountin...
Q: Paragraph Completion: Nothing spreac ght better than our own sky. p this engineers have developed a ...
A: Diffusing light means to mellow it by diminishing glare and unforgiving shadows. In diffused light...
Q: you have been watching the World's Strongest Man competition on television. The competitors perform ...
A:
Q: (10min) Write C++ statement(s) to perform the following tasks, in sequence: a. Declare an integer ar...
A: The arrays in C++ can be declared by appending it size of the matrix enclosed in square brackets. Th...
Q: olved in creating a softw
A: Below the steps are involved in creating a software function
Q: I need help with some Python code ASAP and just need someone ready to help out asap
A: def create_app(redis_url): socketio = SocketIO(logger=True) app = Flask(__name__) app....
Q: Find CRC using shift register for Dataword '1010100110' and divisor pattern p is '11001' ?
A: answer is
Q: Create and enter a program that performs the following operation. Starting condition should be all o...
A: Answer: I have given answered in the brief explanation
Q: (25 min) The following table shows the foreign exchange rates for a few currencies. Foreign Currency...
A: Step 1 : Start Step 2 : Print the Currency Exchange Rate Table. Step 3 : Take user input of the Curr...
Q: Why have we moved to Python? Feature-by-feature, how powerful is BASIC vs. Python
A: Easy to use: Python language is straightforward to use and understand for new novices and beginners....
Q: is strict timestamp ordering used in concurrency control? Justify your answer with suitable schedule...
A: Introduction When it comes to concurrency control, is rigorous timestamp order used? Justify your re...
Q: Scenario: The Ministry of Health is planning to build a mobile application software to screen passen...
A: Given The answer is given below.
Q: How many bit strings with length not exceeding n, where n is a positive integer, consist entirely of...
A:
Q: r any relevant tasks, a task analysis is needed. Explain the task analysis that you have implemented...
A: given- In designing a system, game or any relevant tasks, a task analysis is needed. Explain the tas...
Q: Put the verb into the correct form: _(the weather/ .change). It's colder now
A: Lets see the solution.
Q: In Python Language do the following: The Springfork Amateur Golf Club has a tournament every weeken...
A: Python Language do the following:The Springfork Amateur Golf Club has a tournament every weekend. Th...
Q: The ARM processor uses a load-store architecture. By using explain briefly the load-store architectu...
A: Load Store architecture of ARM are those instruction set architecture in which the the instruction ...
Q: Is the Big Data Market Being Driven by Mass Hysteria? What are the two advantages and disadvantages ...
A: - We need to talk about the Big Data field.
Q: Consider the below code and choose the correct output. public class Main { public int a; public long...
A: The program is written in Java. Check the program screenshot for the correct indentation. Please che...
Q: It is a name assigned to data storage location. Answer: What keyboard shortcut is used to run a C-la...
A: 1. what is the name assigned to a data storage location. Answer: Primary storage (also known as main...
Q: How is indexed storage allocation used to physically allocate data in a filesystem?
A: Given :- How is indexed storage allocation used to physically allocate data in a filesystem?
Q: a. When translated to machine code, a branch instruction uses its last twelve bits to specify an off...
A: Branch instruction: In this, every instruction is executed and all instructions are executed in the...
Q: #include Finclude #define p printf main() p(#); p(in##\n"); p('HI");
A: Please find the answer below :
Q: What is the output of the following code? #include using namespace std; class Shift{ public: int rig...
A: Given: Goal: What is the output of the program.
Q: rt settings sho- ot use more c е с
A: When adequately protected, wireless network security is usually considered to be safe. By using encr...
Q: HW 3 (due 2/15) draw the graph below with 2 self-intersections
A: Solution: If a feature intersect itself at a point and continue by crossing itself, it is consider...
Q: FOR-LOOP dedicated to cursor management
A: Cursor FOR LOOP StatementThe cursor FOR LOOP statement implicitly declares its loop index as a recor...
Q: Whát iš thé purpose of certificate chaining? To ensure that a web browser has the latest root certif...
A: First we will see about Certificate chaining :- The certificate chaining also known as the certifica...
Q: Put the verb into the correct form: (you/ listen) to the "radio a lot?' 'No, not very often
A: The answer is given below.
Q: Put the verb into the correct form: How fast (you / drive) when the ?accident happened
A: The simple past is a verb tense that is used to talk about things that happened or existed before no...
Q: Question 10 To which type of database Postgres mainly belongs: Key/Value Relational Graph Document Q...
A: Ans is Relational type of database postgres mainly belongs to relational
Q: Paragraph Completion: She had been given to the United States by China. But last week she was found ...
A: According to the Question below the Solution:
Q: Hi I need help finding the big-0 bound using the masters thereom, subtract and conquer case T(n)...
A: - We need to get the time complexity of the equation using master's theorem.
Q: 1- Given R0, RI, R2, and R3 followed by the indicated base; i- Convert each value into its correspon...
A:
Q: What three functions are defined by network protocols to allow communication between known source an...
A: A Network Protocols is a collection of rules that will define how data transmitted between different...
Q: Put in much/many/little/few (one word only). I'm not very busy today. I don't have to do
A: Much is used if the noun is non-countable. Example: water Many is used if the noun is countable. Exa...
Q: Write a new sentence with the ng. I didn't spend as much mo
A: Write a new sentence with the same meaning. I didn't spend as much money as you. You
Q: Put the verb into the correc car was badly damaged in an it has to be repaired. It
A: given - Put the verb into the correct form: Sarah'scar was badly damaged in an accident. Nowit has t...
Q: What would you write to make a subnet exception?
A: Introduction: A subnetwork is an IP network's logical subdivision. As a result, an IP address may be...
Q: information transferred or shared from one person to the next
A: What is Data Transmission?Data transmission is the transfer of data from one digital device to anoth...
Q: Explain each important segment of the code.
A: // Explanation is commented above of each important line import javax.swing.JOptionPane; public clas...
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 2 steps
- Write a class encapsulating the concept of a student, assuming student has the following attributes: a name, a social security number, and a GPA (for instance 3.5). Include a constructor, the accessors and mutators, and methods toString() and equals(). Write a client class to test all the methods in your class.(Java) Identify the true statements, select all that apply: -Setters and getters are not required for public instance variables -Every private instance variable in a class definition must have a mutator method -A getter method has the same return-type as the field it retriees and takes no paramaters -A setter method is a return-type void and takes a parameter of tehe same type as its fieldChange the Fraction class so that its instance variables (numerator and denominator) are hidden (i.e. private). Check that the client class (after this change) will now not compile. Why does it not compile? Provide the changes to the Fraction class and the TestFraction class such that the program can work with the private instance variables by implementing appropriate accessor and mutator methods. import java.util.Scanner;//test programpublic class testfraction{public static void main(String[] args) {//create a Scanner objectScanner in = new Scanner(System.in);//create new fractionFraction frac = new Fraction();//declare numerator and denominatorint n=1,d;System.out.print("Enter Fraction's Numerator: ");//input numeratorn = in.nextInt();System.out.print("Enter Fraction's Denominator: ");//input denominatord = in.nextInt();//loop execute until the numerator is negativewhile(n>=0){//call input with n and dfrac.input(n, d);//call displayfrac.display();System.out.print("Enter…
- Define a class Job which has three property (name, salary, description) and two behavior (getSalary, getLengthOfName) 1- Write two constructor method for the following class? 2- Implement following interface?Is there a different way of doing this problem? Question: Create a class AccessPoint with the following attributes: x - a double representing the x coordinate y - a double representing the y coordinate range - an integer representing the coverage radius status - On or Off Add constructors. The default constructor should create an access point object at position (0.0, 0.0), coverage radius 0, and Off. Add accessor and mutator functions: getX, getY, getRange, getStatus, setX, setY, setRange and setStatus. Also, add a set function that sets the location coordinates and the range. Add the following member functions: move and coverageArea. Add a function overlap that checks if two access points overlap their coverage and returns true if they overlap. Add a function signalStrength that returns the wireless signal strength as a percentage. The signal strength decreases as one moves away from the access point location. Test your class by writing a main function that creates five access…Please complete the following tasks: Write a class “Actor” that contains two attributes with the appropriate level of visibility explicitly defined. “Name” which is a String, Private, “NumberofAwards” which is an integer, private Write a default Constructor for this class that initializes the name to “Bob Smith” , and the number of awards to 0. Write an overload the constructor for this class that accepts actor’s name as a parameter Write accessor methods for each of the attributes. Write a method “winsAnOscar” that increases the number of awards by one and prints “The crowd applauds for <actor’s name>!” Be sure to use accessors where appropriate. Make sure your header is complete, with the appropriate level of visibility and any required keywords.
- 14. Which statements are true about the following code? (Choose all that apply) 1: interface HasVocalCords {2: public abstract void makeSound();3: }4: public interface CanBark extends HasVocalCords {5: public void bark();6: } A. The CanBark interface doesn’t compile.B. A class that implements HasVocalCords must override the makeSound() method.C. A class that implements CanBark inherits both the makeSound() and bark() methods.D. A class that implements CanBark only inherits the bark() method.E. An interface cannot extend another interface. Can you explain this code as well as the methods such as interface abstract etc. used in it.14. Which statements are true about the following code? (Choose all that apply) 1: interface HasVocalCords {2: public abstract void makeSound();3: }4: public interface CanBark extends HasVocalCords {5: public void bark();6: } A. The CanBark interface doesn’t compile.B. A class that implements HasVocalCords must override the makeSound() method.C. A class that implements CanBark inherits both the makeSound() and bark() methods.D. A class that implements CanBark only inherits the bark() method.E. An interface cannot extend another interface. Please explain this code abstract, extent and interface methods too in detail.Java Question - Using the bottom code, create another class named "DigitalBook" as a subclass of the given "Book" class. Then, Make sure that the "DigitalBook" class contains two constructors: (1) one is the default constructor that takes no parameter, and (2) the other is a parameterized constructor that take 6 parameters. Be sure to use the “super” keyword in the constructors of the "DigitalBook" class. In the “main()” method of the “EX12_1” class, create four instances: “b1”, “b2”, d1”, and “d2”. Let “b1” and “b2” be the instances of the “Book” class, and let the “d1” and “d2” be the instance of the “DigitalBook” class. Be sure to use the specified constructor (as shown in attached picture) to initialize these instances. The Final Output is shown in the attached pictures. Please make sure that no errors show up in the Java Compiler when testing the code. Thank you. Add the following code to the "class Book" code (Below the ___ line). public class EX12_1{public static void…
- Java Question - Using the bottom code, create another class named "DigitalBook" as a subclass of the given "Book" class. Then, Make sure that the "DigitalBook" class contains two constructors: (1) one is the default constructor that takes no parameter, and (2) the other is a parameterized constructor that take 6 parameters. Be sure to use the “super” keyword in the constructors of the "DigitalBook" class. In the “main()” method of the “EX12_1” class, create four instances: “b1”, “b2”, d1”, and “d2”. Let “b1” and “b2” be the instances of the “Book” class, and let the “d1” and “d2” be the instance of the “DigitalBook” class. Be sure to use the specified constructor (as shown in attached picture) to initialize these instances. The Final Output is shown in the attached pictures. Add the following code to the "class Book" code (Below the ___ line). public class EX12_1{public static void main(String[] args){/////add your code here}}…change your Fraction class so that its instance variables (numerator anddenominator) are hidden (i.e. private). Check that client class (after thischange) will now not compile. That is, if the client class previously accessedthe Fraction class instance variable numerator to test the Fraction class , why does it now not compile? //TestFraction.java import java.util.Scanner; //test program public class TestFraction { public static void main(String[] args) { //create a Scanner object Scanner in = new Scanner(System.in); //create new fraction Fraction frac = new Fraction(); //declare numerator and denominator int n=1,d; System.out.print("Enter Fraction's Numerator: "); //input numerator n = in.nextInt(); System.out.print("Enter Fraction's Denominator: "); //input denominator d = in.nextInt(); //loop execute until the numerator is negative while(n>=0) { //call input with n and d frac.input(n, d); //call display frac.display(); System.out.print("Enter Fraction's Numerator: ");…Match the following: A class that contains no methods (other than constructors) that change any of the data in its object modifier means that there are no restrictions on where an instance variable or method can be used hiding implementation details is done by marking data and methods as When we call a method in Java using class type parameters Overloading is achieved when two or more methods in the same class have the same…