Consider the following class public class Ketchup extends Food implements Tasty{ public String brand; private Snack snack; } Select ALL that are correct based this class. Ketchup is a Food Ketchup is a Tasty Ketchup is an Object Ketchup is a Snack Food is a Tasty Snack is a Tasty Food is a Snack
Q: Find out how to troubleshoot some of the most frequent issues with Linux hardware, software, file sy...
A: Introduction: Linux hardware difficulties may occur for a variety of reasons. It's a good idea to fa...
Q: When it comes to running their Internet of Things devices, IoT developers rely on Linux more than an...
A: Introduction: Internet of Things (IoT) is a phrase used to describe the billions of physical items o...
Q: do a Geomtric class have Circle + rectangle data and method then use inhertance for other class one...
A: do a Geometric class have Circle + rectangle data and method then use inheritance for other class on...
Q: 7. What is the 2's complement of 9FDB5H?
A: Two's complement is found by adding 1 to one's complement One's complement of a number can be found ...
Q: Justifications on why it is vital for software engineers to adhere to SE ethics
A: Introduction: When standards or ethics are broken, individuals commit a range of blunders and act di...
Q: visuals Cleaning messy data
A: given - What big problem does Power Query solve? Creating interactive visuals Cleaning messy dat...
Q: The most common means of computer/user interaction is a O a. keyboard/monitor O b. mouse/printer O C...
A:
Q: se of Power Map (3D Maps)? Create an interactive, guided cinematic tour of your data on map Create a...
A: Explanation Power Maps or 3D Maps in Excel is a three-dimensional visualization tool that can be use...
Q: Examine the role played by modern wireless communication systems in the deployment of the Smart Grid...
A: answer is
Q: The difference between a static data member and a non-static data member of a class is as follows: I...
A: The question is in the real world, describe a situation in which a static data member might be benef...
Q: examples of two-way communication in which each party take turns transmitting
A: Two way communication means that communication is happened between both sides Here both sender and r...
Q: 1. Identify conditional and join probabilities from the following example. Explain how the probabili...
A: Solution :-
Q: cessing syst
A: given - what is ict to functions of information processing system?
Q: When is a good time to use the HTTP POST method? There are more than one correct answer! O When the ...
A: The solution for the above given question is given below:
Q: Without a seed value specified, what does a Random object use as a seed value
A: Random Number Seed Random numbers are helpful in a variety of situations where it is necessary to cr...
Q: Why is the friend function not allowed to access members of a class directly, although its body can ...
A: In order to access the private and protected data of a class, outside the class, we use the friend f...
Q: What are the three most important tactics for installing an operating system? When is each of these ...
A: Introduction: An operating system is a software application that acts as a bridge between the compon...
Q: show how a switch can be configured to monitor the traffic that passes through it's ports
A: Introduction: In networking, a switch is a high-speed device that accepts incoming data packets and ...
Q: In system development, a complete and clear software requirements specification might not always be ...
A: User will be having the option to add new items. It can be done by name, expiration date, quantity.
Q: pplication for each level of healthcare services and the data mining technique to be used.
A: Data mining Data mining is the act of sifting through big data sets in order to find patterns and r...
Q: What kind of data leak has Facebook/Cambridge Analytica experienced?
A: introduction The ICO determined that Facebook violated data protection regulations by neglecting to ...
Q: What is the OSI transport layer?
A: Given To know about the OSI transport layer
Q: In the. computer architecture, both data and instructions are saved in same memory. Select one: O a....
A: 1) The Von Neumann is a computer architecture consists of a single, shared memory for programs and d...
Q: copy constructor of the class
A: #include<iostream.h> #include<conio.h> #include<string.h> class student { char nam...
Q: What exactly is a database management system (DBMS)? Make a list of the positives and disadvantages.
A: Introduction: A database management system is abbreviated as DBMS. It is a collection of programmes ...
Q: Function mergesort of type int listint list that sorts the given list of integers using the merge-so...
A: C++ Program: #include<bits/stdc++.h>using namespace std; /* Function List of type int that sor...
Q: Examples of software that has been utilized in the field of Agricultural Engineering are listed belo...
A: Answer:
Q: Statisticians use the concepts of mean and standard deviation to describe a collection of numbers. T...
A: Program :- import math def gradeCurve(scores, m, s): """ Function that finds grade distrib...
Q: A company decided to give a year-end bonus of 5% (of his/her salary) to employee if his/her year of ...
A: name = input("Enter name: ")salary = float(input("Enter salary: "))years=int(input("enter years of s...
Q: ges does TDM ha net twork? (1M)
A: given - What advantages does TDM have over FDM in a circuit-switched network?
Q: Write a program that reads a string of 5 characters and converts alternating characters to uppercase...
A: Iterate over the given string In even indices change it to upper case and in odd indices change it t...
Q: def problem_a(n) sum=0 k=n while k>0: for i in range(k): sum +=1 k=k//2 return sum what will...
A: I am going to assume that the indentation of code is as follows.... Because any other indentation w...
Q: The arm assembly has different shift functions shifting bits. One set of shift functions belongs to ...
A: Logical shift treats the number as a bunch of bits, and shifts in zeros. This is the >> operat...
Q: When beginning a new project in Word, you'll often want to start with a new blank document. True O F...
A: ->When beginning a new project in Word, you'll often want to start with a new blank document Tru...
Q: What is a thumbnail drawing and how does it work?
A: Introduction: Thumbnail drawing: The term "thumbnail drawing" is used by art directors, storyboard a...
Q: In the.NET Framework, what is the difference between a DLL and an EXE?
A: Answer :- DLL - Dynamic Link Library If an assembly is compiled as a class library and provides t...
Q: When should you use Power Pivot? When you want to clean, shape and transform data When you need to c...
A:
Q: What exactly is ransomware?
A: Introduction: A computer virus is a harmful piece of computer code meant to slow down computers, cau...
Q: MATLAB When having a two-dimensional lattice, in lexocographic order I need to be able to move arou...
A: Code: K = 16; h = sqrt(K); lex=zeros(h,h); iup=zeros(1,K); idn=zeros(1,K); x=zeros(1,K...
Q: Q-1. What is at put gf thie logic gatu? F=?
A: AND gate: OR gate:
Q: Write a while loop that prints userNum divided by 2 (integer division) until reaching 1. Follow each...
A: Import neccesary libraries. Initialize variable. Ask for user input. Perform calcualtion in loop.
Q: what needs to be done to get quality software. please do it with your own words
A: NOTE :- Below i explain the answer in my own words by which you understand it well. How you ove...
Q: For this question, you will be required to use the binary search to find the root of some function f...
A: import numpy as npdef binary_search(f,domain, MAX = 1000): start ,end = domain # get the start and e...
Q: Explain how to use the DiskPart program.
A: Introduction: It is necessary to open the command window to utilize Disk Part. We'll go through two ...
Q: Q4: Write a FORTRAN90 program that reads a student ID and his GPA out of 4.0. The program should pri...
A: Algorithm: Start Read student ID and GPA If gpa>=3.5 then print "EXCELLENT" Else if gpa<3.5 a...
Q: Recall the "better" algorithm to determine whether or not the input positive integer is a prime numb...
A: Answer : The time complexity of that algorithm is O(N). where N is integer.
Q: A ___ set is a set of data used to discover potentially predictive relationships.
A: In this question we have to fill the blank with the provided sentence. This question is related to ...
Q: OS cloning is defined as "cloning an operating system with the intent of reducing its disadvantages....
A: Cloning Cloning is the process of installing software, hard drives, storage, and drivers, or reprodu...
Q: Prove that every regular language is accepted by a planar NFA(non-deterministic finite state machine...
A: We will provide a refernce
Q: Assembly language Change this code into a program that receives two numbers and prints the minimum....
A: The code of this is given below.
Step by step
Solved in 2 steps
- Consider the following class: public class Cat extends Animal implements RunsFast{ public Mammal kind; public String name; } Which is right? a Cat is-an Object a Cat is-a RunsFast a Cat is-a Mammal a Cat is-a Cat a Cat is-a String a Cat is-an AnimalDesign a new Triangle class that extends the abstract GeometricObject class: Draw the UML diagram for the classes Triangle and GeometricObject Implement the Triangle class Write a test program that prompts the user to enter three sides of the triangle, a color, and a Boolean value to indicate whether the triangle is filled: The program should create a Triangle object with these sides and set the color and filled properties using the input The program should display the area, perimeter, color, and true or false to indicate whether it is filled or notThere is a class hierarchy that includes three classes: class Animal { protected int age; public int getAge() { return age; } public void setAge(int age) { this.age = age; }}class Pet extends Animal { protected String name; public String getName() { return name; } public void setName(String name) { this.name = name; }}class Cat extends Pet { protected String color; public String getColor() { return color; } public void setColor(String color) { this.color = color; }} Given the following object: Pet cat = new Cat(); Select all invalid method invocations.
- Create a subclass named Square from the superclass Geometricobject. Create an instance variable named width with initial value 0. Create a no-arg constructor. Create the another constructor, which has one parameter named wid. ASsign the wid to the instance variable named width. Create the getWidth() method, the setWidth() method. Override the getArea() method. Override the getPerimeter() method. Create a test class named Test to create an instance with wid= 6 from Square class. Call the getArea() and getPermeter() methods to print out the area and perimeter of the square with width=6.public class date { private int day; // from 1 to 31 private int month; // from 1 to 12 private int year; // from 2000 upwards public void advance (); // move to next day }; Implement a constructor that initializes new objects of date class to be set to the 1st of January 2000. Implement setters for day, month, and year. Implement the advance method, which moves to the next day, ensuring that all data members are updated appropriately.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:…
- public class Cat extends Pet { private String breed; public void setBreed(String userBreed) { breed = userBreed; } public String getBreed() { return breed; }} public class Pet { protected String name; protected int age; public void setName(String userName) { name = userName; } public String getName() { return name; } public void setAge(int userAge) { age = userAge; } public int getAge() { return age; } public void printInfo() { System.out.println("Pet Information: "); System.out.println(" Name: " + name); System.out.println(" Age: " + age); } } import java.util.Scanner; public class PetInformation { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); // create a generic Pet and a Cat Pet myPet = new Pet(); Cat myCat = new Cat(); // declare variables for pet and cat info String petName, catName, catBreed; int petAge,…Java Programming Create your own class that illustrates the use of encapsulation. Make sure to include at least one setter and one getter for the class/ * * * The VideoTapeclass holds information about a single television programme recorded on a video tape and it is used in a video shop system. It holds the video tape details. * / Class VideoTape { String title; String classification; romance) int time; // the title of the programme // classification of the programme (comedy, drama, action, or // the running time of the programme in minutes } Please write methods to // Return the title of this video tape. ............. // Return the classification of this video tape. ............. // Set a new classification for this video tape. ............. /* Print the details of the video tape to the output terminal .............. /* Set the access modifiers in above program and for the methods that you define Oop Java
- public class StairViewer public static void main(String(] args) // Step 2: Create a rectangle and draw it as the // top step of the stair // location: (20, 10) // size: (20, 20) 18 // Step 3: Create a rectangle and draw it as the 19 // middle step of the stair 20 // location: below the top step, aligned on left // size: (40, 20) 21 22 23 24 // Step 4: Create a rectangle and draw it as the 25 // bottom step of the stair 26 // location: below the middle step, aligned on left // size: (60, 20) 27 28 29 30 } 31 32Implement the following classes: Polygon numSide: int /* constructor */ /* accessor-mutator */ + area (): double + perimeter (): double Triangle sideA: double sideB: double sidec: double /* constructor */ /* accessor-mutator */ + area () : double + perimeter (): double Create an object for Triangle class and invoke area and perimeter method. Input Format Take triangle sides (sideA,sideB,sideC) as input from user. Constraints For Triangle, sideB+sideC > sideAclass Vehicle{String s = "This is my vehicle" ;}class Car extends Vehicle{String s = "This is my car" ;{System.out.println( super .s);}} class Truck extends Car{String s = "This is my truck" ;{System.out.println( super .s);}}public class MainClass{public static void main(String[] args){Truck t = new Truck ();System.out.println(t.s);}}