ivate int x; blic int y; otected int z; blic A() private int x; public int y; protected int z; public B() { x = 0; x = 0;
Q: Security subject. Why might vendors propose proprietary encryption methods rather than using…
A: "Proprietary encryption algorithms kept secret by their designers to enhance additional security are…
Q: about the binary calculator and answer the following questions:
A: The binary number system is a base two system, which means there are only two-digit to work with 0…
Q: What have been the most recent IoT attacks?
A: The devices linked to a LAN differ from those connected to other types of computer networks (such as…
Q: Create an ordered, rooted tree that represents the infix form of the following equation. Then write…
A:
Q: Compece ubumte to othen woeel kneon binuk distaibutions shal diskinguiskes your seg as the best…
A: A Linux distribution is the customized version of Linux. In simple term it is a collection of…
Q: What are the various datatypes that may be utilised in C?
A: Data types In programming language, data types are used to store the data values according to…
Q: How do we close the window by adding a condition if escape key is entered then close the window. i…
A: If you set the Form's 'KeyPreview Property to 'true, then it handles a Key Event before any of the…
Q: What kind of audit program do you think you'll need to find the flaw in EasyJet's firewall? (This…
A: Introduction: Vulnerability checks, physical layer security, operating system patching, data…
Q: A noiseless channel has a bandwidth of 3000 HZ transmitting a signal with two signal levels. What is…
A: Nyquist Sampling Theorem: A continuous-time signal can be represented in its samples and can be…
Q: Explain the impact of affordable Internet connection and online access on society.
A: Impact of Affordable: Because of the low cost of Internet connectivity, it has a positive impact on…
Q: What is the function of a real-world parameter?
A: The actual parameter is the value that the caller passes into the method. They are frequently…
Q: What do you mean by static & dynamic website? What are the differences between website and web…
A: - We need to talk about static and dynamic websites and difference between website and web…
Q: Let : f(x) =3x5 + 4x³ – 6x² – 10x + 1· Find the the complexity of the compensation algorithm
A:
Q: What may cause a virus to propagate over a company's computer network?
A: Virus: A virus is a well-known computer and network danger.It is a kind of malicious software that…
Q: What is the significance of software development? The software development process may benefit from…
A: Software development :It refers to a set of computer science activities dedicated to the process of…
Q: What are the consequences of quantum computing for computer programming?
A: quantum computing: This will have a significant impact on programming since security will be more…
Q: Required: 1. Create a function with three output [ss, li,bas] which will determine whether the…
A: Suppose we are given a set of vectors { {V1, V2,...,Uk UK in 022, and we construct the Xu matrix A…
Q: What is the greatest decimal number that can be represented by an 86-bit signed integer? '
A: Integers with a positive value: Positive or negative signed integers may exist. To represent the…
Q: Compuce ubute to dher wocel wneon finuk distributiony shul diskinguiskes as the best oplien ? your…
A: Linux is an open source operating system.
Q: Mangeet and Sangu played a game. First, the Mangeet gives Sangu a sequence of different numbers N…
A: Input/Output Explanation: The first line of the input contains a single integer T denoting the…
Q: Q2) Consider the regular expression: (ablac)* a. Use Thompson's construction to construct a NFA. b.…
A: The Answer is in given below steps
Q: In EXCEPT (MINUS) queries, the order of operands matters, but in UNION queries, it doesn't?
A: Introduction: The MINUS operator is used to get result that appears the first table but not in the…
Q: .How can we obtain the chain codes and crack codes by using the border following algorithm…
A: Chain Codes: Chain codes are used to represent the binary by a linked series of heterosexual –line…
Q: 10. Show the encryption of Cipher Text using the One-Time Pad from the data following. ( F* -&E*EN…
A: We need to show the encryption of given text, using one time pad.
Q: When it comes to rural networks, why are technologies such as fixed wireless and satellite networks…
A: Wireless fixed network Communication systems or equipment wirelessly link two fixed locations using…
Q: Recall a frequent usage of an information system, such as online banking, payroll, or airline…
A: Banking system accessible through the Internet The primary objective of an online banking system is…
Q: Encode the number using the given public key. Encode the number M = 14 using the public keyn= 77 and…
A: Here, we are going to find out the encoded number using RSA cryptosystem. Using RSA; Encoded number=…
Q: When is the usage of object-oriented design appropriate? When should you adopt a structured design?…
A: Object-oriented design: The programming use objects, as the name implies. Object-oriented…
Q: As part of an information system, how are programmes written?
A: System of information: It's a collection of subsystems that work together to achieve a goal. It…
Q: uct page for a furniture st
A: I have designed the question below:
Q: Is there a reason for typing "namespace std" in the middle of a C++ programme
A: There was a reason behind every statement that was written in a program and similarly there was…
Q: Q1: Givenx=[315912-10-12 9 6 1], provide the command(s) that will set values that are multiples of 3…
A: What is vector: A vector…
Q: 1. How to sort according to multiple columns in SAS programming? You can explain it on any example.
A: Data sets in SAS can be sorted on any of the variables present in them. This helps both in data…
Q: Which NOS-Network Operating System vendors are you familiar with?
A: Network operating system : A network operating system is designed to handle PCs, workstations, and…
Q: Research different forms of encryption used today
A: DES, AES, and RSA are the three main encryption types. While there are other types of encryption,…
Q: Create and implement a function given using a multiplexer and decoder. f=ПM(1,3,4,7)
A: We need to implement a function given using a multiplexer and decoder. f=ПM(1,3,4,7)
Q: What are the three primary modes of operation for an x86 processor?
A: x86 processor: The x86 processor has a number of fundamental architectural elements, including…
Q: Make a list of six different types of access. Each one should be classified as either a residential…
A: We have six access technologies
Q: Developing a threat model is a complicated process
A: The answer is as follows.
Q: Differentiate Transport mode and Tunneling modes of IPSec. What are the different protocols used in…
A: The solution to the given question is: IPSec can be run in either tunnel mode or transport mode.…
Q: Specifically, which memory management strategy is superior and why.
A: Memory Management: The paging approach is widely regarded as the most efficient memory management…
Q: What was it about John von Neumann that had such a profound impact on the world?
A: Justification: John von Neumann is primarily remembered for his contributions to the early…
Q: Name the four keywords used to indicate the selection control structure in pseudocode.
A: Pseudocode keywords for describing the selection structure Pseudocode is an abbreviation for…
Q: b. SELECT EmpName, Sal, Job FROM WORKERS WHERE EmpName LIKE ‘_a’ AND Sal > 10000; JUST ANSWER…
A: The underscore operator i.e. (_) along with sql LIKE operator represents one character in the…
Q: 2. Which of the following will allow you to remove your table in the database? (SQL) A. DELETE FROM…
A: - we need to choose correct for the SQL statements.
Q: What are the various types of computer hardware available?
A: Computer: The computer is an electrical gadget that assists us in our daily lives. The computer is…
Q: Raspberry Pi has neither an Analog-to-Digital peripheral nor a Digital-To-Analog Peripheral? True…
A: Answer:- True
Q: We'll say that a String is ab-balanced if for all the 'a' chars in the string, there exists a 'b'…
A:
Q: EXERCISE 1 Based on the image attached, the program was written for a marketing research firm that…
A: // CokeOrpepsi.cpp - This program determines if a customer prefers to// drinl Coke or Pepsi or some…
Q: I'm quite into games now, so how about we play In or Out! When a given number is even, the team…
A: i have provided this answer with full description in step-2.
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
- Draw the UML diagram of the following class: public class Employee { String name; double salary; public Employee() { } public double getSalary() { return this.salary; } public String getName() { return this.name; } }Write a C++ class and choose any name for it. The class should have two privatemembers and two public members. Write a constructor to initialize these membersto zero. Write another constructor to initialize these members to non-zero values.Write a method to return the average of the class members. Write a C++ programand initialize the members of the class with [2,5,8,3] respectively and call its methodto calculate the average.Code: interface Bicycle{ //interface for bicycle void changeGear(int val); //abstract methods void changeSpeed(int inc); void applyBrakes(int dec); void ringBell(int count); } class NewCycle implements Bicycle{ //class for a new cycle int speed=0; //stores the speed value int gear=0; //stores the gear value @Override public void changeGear(int val) { //method to change the gear gear=val; } @Override public void changeSpeed(int inc) { //method to change the speed speed=speed+inc; } @Override public void applyBrakes(int dec) { //method to apply brakes speed=speed-dec; } @Override public void ringBell(int count) { //method to ring the bell for(int i=0;i<count;i++){ System.out.print("Clang!!"+" "); } System.out.println(""); } public void printState(){ //method to print the states System.out.println("Ring bell, Speed, Gear,…
- language: Java Class Inheritance with an abstract class Define a class Employee with the following fields: _name, _empId, _department, _position (_title), _yearlySalary, _fullTime (a boolean: true/false) , _month , _year (time of hire) Add constructor and properties Define an abstract method GetBiMonthlySalary() (if the employee is paid twice a month) Define an abstract method GetVacationTime() that returns the number of vacation time this employee would have based on time of hire Override the ToString() method to return a string that contains the information pertaining to an employee such as name, empId, department, and where full time or not. Define a class HourlyEmployee that inherits from Employee. This class should have 2 fields of its own: _hours (hours worked in half a month) and _wage (hourly wage) Provide necessary constructor, properties and methods Override the ToString() to also return the additional fields Gets 3 days of vacation after first year if the…Question :- Add a statement to the classA to test whether myChar is accessible. public class ClassB { public int x = 1; int y = 2; private int z =3; } public class ClassA { public static void main(String[] args) { ClassB cb = new ClassB(); // System.out.print(cb.x); /* 1 */ // System.out.print(cb.y); /* 2 */ // System.out.print(cb.z); /* 3 */ } }Design Patterns: Strategy Pattern : in Object Oriented design Programming Use Netbeans to execute the following Java code and show SCREENSHOTS to verify that the program runs correctly. Draw a UMl class diagram to model the program. Here is the java code: File : Billing.java public interface Billing { public double getDiscount();} File : LoyaltyBilling.java public class LoyaltyBilling implements Billing{ @Override public double getDiscount() { return 20.00; } } File : NormalBilling.java public class NormalBilling implements Billing{ @Override public double getDiscount() { return 0; } } File : SeasonalBilling.java public class SeasonalBilling implements Billing{ @Override public double getDiscount() { return 10; } } File :SaleBilling.java public class SaleBilling implements Billing{ @Override public double getDiscount() { return 50; } } File : Product.java public class Product { private String name; private…
- True or False ___(28) A class can extend multiple classes. ___(29) An interface in Java has no fields but methods to be implemented by other classes. ___(30) The key word private in defining a variable in a class limits the access to the variable by using only methodsClass Inheritance with abstract class Define a class Employee with the following fields: _name, _empId, _department, _position (_title), _yearlySalary, _fullTime (a boolean: true/false) , _month , _year (time of hire) Add constructor and properties Define an abstract method GetBiMonthlySalary() (if the employee is paid twice a month) Define an abstract method GetVacationTime() that returns the number of vacation time this employee would have based on time of hire Override the ToString() method to return a string that contains the information pertaining to an employee such as: name, empId, department, and where full time or not. Define a class HourlyEmployee that inherits from Employee. This class should have 2 fields of its own: _hours (hours worked in half a month) and _wage (hourly wage) Provide necessary constructor, properties and methods Override the ToString() to also return the additional fields Gets 3 days of vacation after first year if the employee works…Java Questions - (Has 2 Parts). Based on each code, which answer out of the choices "A,B,C,D,E" is correct. Each question has one correct answer. Thank you. Part 1 - 3. Given the following code, the output is __. class Base { private int x = 5; }class Derived extends Base { x = 6; }public class Sample { public static void main(String[] args) { int x = 7; Derived d1 = new Derived(); System.out.print(d1.x); }} A. 0B. 5C. 6D. 7E. Error message Part 2 - 4. A class Animal has a subclass Mammal. Which of the following is true? A. class Animal extends Mammal { }B. class Mammal extends Animal { }C. class Animal implements Mammal { }D. class Mammal implements Animal { }E. class Mammal { Animal a1 = new Animal(); }
- The Essay class has a default constructor, a constructor with two parameters, and a constructor with three parameters. Declare the following objects: essay1 with no arguments essay2 with essayTitle and essayAuthor as arguments essay3 with essayTitle, essayAuthor, and essayYear as arguments Ex: If the input is Painting Cole 1919, then the output is: Essay: Undefined, Unspecified, 0 Essay: Painting, Cole, 0 Essay: Painting, Cole, 1919 Archive.java public class Archive { publicstaticvoidmain(String[] args) { Scannerscnr=newScanner(System.in); StringessayTitle; StringessayAuthor; intessayYear; essayTitle=scnr.next(); essayAuthor=scnr.next(); essayYear=scnr.nextInt(); /* Your code goes here */ essay1.print(); essay2.print(); essay3.print(); } } Essay.java public class Essay { private String title; private String author; private int year; public Essay() { // Default constructor title = "Undefined"; author = "Unspecified"; year = 0; }…Conver the class To UML diagram class Clint { private String accNumber; private String holderName; private long currBalance; public Clint() { currBalance = 0; } public Clint(String acc, String name, long bal) { accNumber = acc; holderName = name; currBalance = bal; } Scanner sc = new Scanner(System.in); // deposit money into the bank account by given amount amt public void deposit(long amt) { currBalance += amt; } // if amount is not given ask the user for the amount public void deposit() { System.out.print("Enter Amount(to deposit): $"); long amt = sc.nextLong(); currBalance += amt; } // withdraw money from the bank account public void withdraw(long amt) { if (currBalance >= amt) { currBalance -= amt; } else { System.out.println("Insufficient funds!"); } } // if amt is not given ask the user for the amount public…UML for the following Code: public class ProductOrder { private int numBook = 0; private int numCD = 0; private int numDVD = 0; public ProductOrder(int numBook, int numCD, int numDVD){ this.numBook = numBook; this.numCD = numCD; this.numDVD = numDVD; } public int getBook(){ return numBook; } public void setBook(int numBook){ this.numBook = numBook; } public int getCD(){ return numCD; } public void setCD(int numCD){ this.numCD = numCD; } public int getDVD(){ return numDVD; } public void setDVD(int numDVD){ this.numDVD = numDVD; } public int getProductTotal(){ return getBook() + getCD() + getDVD(); } }