When would you utilize an abstract class? when you require a super class that shouldn't be instantiated but can be instantiated alongside the derived classes =========== Which UML aggregate symbol? a triangle uncut diamond an empty triangle a diamond
Q: When running this script : # Split input into 2 parts: name and age parts = input().split() name...
A: ==> When you are splitting the input its is splitting into three strings.[Mary,Beth,19]. So it wa...
Q: Object Oriented Database Question: What is the difference between authorization type hierarchy and ...
A: Hierarchical authorization is exactly what it sounds like: it determines authorization based on a hi...
Q: operands. print(a * 5 + (5 + 2) * 3)
A: The answer is
Q: fill in the blank question of Architectural Styles about software enginneer ____________style encaps...
A: Answer: 1. ____style encapsulates functional processing. Data-centric 2. ____________style restri...
Q: In what ways does a network benefit a company? What is the main drawback to implementing a network?
A: A network is interconnection of devices which allows sharing of information if they are connected. E...
Q: Which of the following activities require real-time processing? Printing mailing labels Playing a ...
A: Actually, Real-time processing means processing the data that is generated in real-time and without ...
Q: Why not divide the overall design into multiple user viewpoints when conducting user research?
A: Answer: In order for fashion designers to obtain the most precise information possible to work on cr...
Q: Was there any impact on the Symbian, Android, and iPhone operating systems as a result of the file d...
A: The cellular running gadget Android is constructed on a changed model of the Linux kernel and differ...
Q: What role does cryptology play in information security? What would be the implications if cryptograp...
A: Introduction: Cryptography is a type of information security approach that use codes to safeguard co...
Q: People who work with computers and humans use a lot of different ways to measure how well they work ...
A: Introduction: He addresses a vision articulated in his latest book Superminds a framework for reachi...
Q: Discuss a concurrent processing issue in an operating system.
A: Intro The question is about Discussing a concurrent processing issue in an operating system and here...
Q: Rey A. What is the ciphertext of M=9 if Alice chooses the random integer k=4? B. If Alice uses the s...
A: The answer is
Q: Recall in a three-pass compiler the only objective of the middle-end is improving the code while pre...
A: The benefits of a two-pass compiler more than a single-pass generator: In comparison to that same pr...
Q: Use a request for proposal to gather information on hardware and system software, and explain why it...
A: Intro Use a request for proposal to gather information on hardware and system software, and explain ...
Q: LEASE ENSURE TO USE THE FRAMEWORK PROVIDED IN THE IMAGES, AND THAT IT WORKS WITH THE TESTER CLASS. ...
A: I give the code along with output and code screenshot
Q: Computer Science Retrospect, a StorCentric company, is releasing Retrospect Backup 18.5, featuring ...
A: Answer: Retrospect is encrypting backup copies to protect them from un-authorized encryption. Retr...
Q: 3. How might the heap implementation of priority queues be used to solve the following problems? How...
A: According to the information given. We have to implement heap priority queue by construct a Huffman ...
Q: Exercise 2: Determine the roots of a quadratic equation, if a is not equal to zero and determinant i...
A: The answer is given below:-
Q: C# Question Create a desktop application that allows the user to enter a maximum integer. The ap...
A: Steps to create a C# Windows Form Application Open visual Studion C# Windows Application Create a n...
Q: wait(m[i]); wait(m(i+1)%(n+1)) -- Critical Section -- release(mi); release(m(i+1)%(n+1))
A: ANS: option (b),(c) are correct; (b) Deadlock (c) starvation Given code is: wait (m[i]); wait (m[...
Q: What is the purpose of system engineering? How to achieve performance improvement by using system en...
A: The answer is given below:-
Q: What are the prerequisites for considering the use of edge computing and cloud computing in an IoT s...
A: Introduction: Computing at the periphery Edge computing is a distributed information technology (IT)...
Q: Why do interrupt-driven operating systems perform better than non-interrupted operating systems?
A: Introduction: Interrupts allow devices to notify the CPU when data must be transmitted or an operati...
Q: The following operations are very important to know. but do not simply memorize them. Memorizing lea...
A: Setting a bit means that if K-th bit is 0, then set it to 1 and if it is 1 then leave it unchanged. ...
Q: Considering the following tables,. is a foreign ke Student Table SID Name Expected Graduation 123 Sm...
A: To know which among these is the foreign key we have to understand first what is foreign key Foreig...
Q: Given the variables String stars = "*****"; String stripes = "====="; what do these loops print? ...
A: 0*****91*****82*****73*****64*****5
Q: Suppose you are using a search algorithm to solve the 15-puzzle problem (i.e., the 4x4 version of th...
A: answer is
Q: Exercise 6: Two points in a plane are specified using the coordinates (x1, y1) and (x2, y2). Write a...
A: Logic: Accept x1 y1 x2 y2 values from user. Calculate slope using the formula. Print output on con...
Q: Label the Recursion Requirements. int fact (int n) int reAulG 1# in--1) return : ract (n-1) reurn *u...
A: The answer is
Q: Write a cpp program to find the number of years, number of weeks and number of days from the user en...
A: Given :- Write a cpp program to find the number of years, number of weeks and number of days from th...
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Ram is a kind of memory built into the motherboard where the computers data is temporarily kept.
Q: Someone should double-check the APA citations and references, thus I'd want to provide a PowerPoint.
A: Introduction: To cite a PowerPoint presentation in APA Style, including t...
Q: Is it easier for you to identify someone using their fingerprints, speech intonation, face features ...
A: Introduction: Is it easier for you to identify someone using their fingerprints, speech intonation...
Q: Create a program that will take in an input of ASCII characters and distance value to encrypt and pr...
A: The code is given below.
Q: Consider the array Vehicle which records the number of vehicles sold each year from 1990 through 202...
A: An array is an indexed collection of the same data type and it stores every element in the contiguou...
Q: Write a program to generate 10 random numbers from -100 to 100. Save the randomly generate numbers i...
A: Python program to print random number between -100 to 100 an store in a list . Finding the count of ...
Q: People who work with computers and humans use a lot of different ways to measure how well they work ...
A: The anwer is given below:-
Q: ncludes 5 departments – marketing, engineering, customer support, information technology, and financ...
A: While the system software has device drivers, OS, servers, and software components, the software ass...
Q: Based on Don Norman's concept of user difficulties, discuss how formative assessment can be used to ...
A: “Usability” refers to the ease of accessing and using a product or website. It’s a sub-discipline of...
Q: Let MAJ : {0, 1}³ {0,1} and NOT : {0,1} → {0, 1} be defined as in lecture. Let 1: {0, 1}° {0, 1} sim...
A: Answer: I have given answered in the handwritten format in brief explanation
Q: What are the foundations for considering edge computing and cloud computing in an IoT system? What i...
A: - We need to talk about the ides of using edge and cloud computing in IOT system and the best locati...
Q: A student tried opening an application program on a computer that was functioning well. The program ...
A: The computer contains mainly two types of RAM memory for random access memory and a ROM that only re...
Q: What role does HDFS play in Hadoop architecture?
A: Apache HDFS is a block-structured file system where each file is divided into blocks of a predetermi...
Q: Is backup the responsibility of the database administrator or the database user? a person who manage...
A: Introduction: All of us are well aware of the need for frequent backups. We could also come up with...
Q: Fill in the blanks in the given code such that it prints the variable I only if i is less than 6.
A: Complete the given JAVA code to print the variable i in the output only if the value of i is less th...
Q: Would you create/purchase NFTs now or in the future?
A: Would you create/purchase NFTs now or in the future?
Q: What can be stated about the following first line of a user-defined function: function [x.y.z]=overl...
A: Given : First line of user defined function is : function[x,y,z]=overload(a,b) We need to choose the...
Q: Was it necessary to use many assessment methodologies in order to provide a more complete picture of...
A: Introduction: Even if checks are currently used for a variety of purposes in the educational system,...
Q: Implement queue from numpy array in python
A: A queue is a sequential structure that follows the way certain tasks are performed. The order is F...
Q: What are the advantages of studying and testing a model rather than a physical object or situation?
A: Solution: Model are useful tool in learning the science which can be used to improve explanation, ge...
When would you utilize an abstract class?
when you require a super class that shouldn't be instantiated but can be instantiated alongside the derived classes
===========
Which UML aggregate symbol?
a triangle
uncut diamond
an empty triangle
a diamond
Step by step
Solved in 2 steps with 1 images
- When would you be most likely to use an abstract class? when you need to derive a class from Object when every method in the class is concrete when you need a super class that should not be instantiated when you need a super class that can be instantiated alongside the derived classes =========== Which UML symbol represents aggregation? a filled triangle an unfilled diamond an unfilled triangle a filled diamondCreate a class Animal and Add a protected data member named id of integer type. Add get/set methods for id data member in Animal class with public access. Also provide default constructor this should initialize id to 0. Also provide parameterized constructor and toString method. Add an abstract method tellAboutSelf method to Animal class with public access Add another abstract method speak method to Animal class. Reptile, Bird, Mammal Next create the three child classes which extends form Animal class. Add a default constructor to each of the above created class. The constructor should initialize the id data member id, Reptile, Bird and Mammal, to 1, 2 and 3 respectively also it display a message “(class Name)’s default constructor”. E.g. for Bird it says “Bird’s default constructor”. Add a parameterized constructor to each of the above created class. The constructor should initialize the id data member, Reptile, Bird and Mammal, to the specified id passed to the constructor also it…The Critter class is a base class with some basic functionality for running simulations of different kinds of critters. Critters can move, act, and remember their history. A typical simulation contains a number of critters of different types. In each step of the simulation, the act member function will be called on each critter. Define a class Sloth derived from Critter that simulates a sloth. Sloths alternate between eating and sleeping. Add the word "eat" or "sleep" to the history each time the act function is called. The implementation of the Critter class is not shown. Complete the following file: sloth_Tester.cpp #include <iostream>using namespace std; #include "critter.h" /**A sloth eats and sleeps.*/class Sloth : public Critter{public:Sloth();. . .private:. . .}; Sloth::Sloth(){. . .} void Sloth::act(){if (...) {add_history("eat");...}else{add_history("sleep");... }} int main(){Sloth sloth;sloth.act();cout << sloth.get_history() << endl;cout <<…
- What is the difference between equals() and == ? == looks to see if they are identical objects whereas equals() matches the content of the objects. equals() looks to see if they are identical objects whereas == matches the content of the objects. equals() and | == are used to match the content of objects, so no difference. equals() is used to match string objects whereas == is used to match all objects. O O O OUsing c++ Design a Wacky class that can be used to generate a message based on the information passed to it. The class should have a single integer private member variable: int num; Design the complete class so that if: an object is created with no parameters; num is initialized to 10. an object is created with 1 parameter that is an integer; num is initialized to the integer that is passed *2 an object is created with 1 parameter that is a double; num is initialized to the double *4 an object is created with 2 parameters, a char and a string; it prints the message "That's WACKY!"Scenario:You are hired by a game development company. Your task is to create an RPG hack & slashconsole game. The game will have a movement system that will be based on the x, y, zcoordinate system. You will need to start with creating 3 classes.1. A class that represents a player2. A class that represents an enemy3. An abstract class that contains the movement logic.Step 1:Start by creating the superclass which defines the movement system for both enemy andplayer. The movement system is based on the Coordinate system. Imagine an x, y, z plane,the y coordinate is used to move forward and backward in the virtual plane, x to go left andright, z to go up and down.For example, A player with coordinates x, y, z with values -5, 10, 0 represents a player -5units to the left, 10 units forward, and 0 z units mean on the ground. (0, 0, 0) are the baseunits which means the player or enemy is at the start of the level.Step 2:Create a class to represent the player which is derived from the…
- Create an abstract super class called Employee with the following attributes: Use JavaDoc comments in the Parent and Child Classes only but use @author for the driver name : String and the following methods getter and setter for the one attribute two constructors an abstract method called getPay() equals() toString() Create a sub class of Employee called SalaryEmployee with the following attribute yearlyPay : double and the following methods getter and setter for the one attribute two constructors getPay() that returns the yearlyPay divided by 52 equals() toString() Create a sub class of Employee called HourlyEmployee with the following attributes: hoursWorked : double payrate : double and the following methods getters and setters for the two attributes two constructors getPay() that returns the weekly pay (multiply hoursWorked by payrate - overtime included and 1.5 times payrate for hours > 40) equals() toString() Create a sub class of Employee called SalesEmployee with the…- Simple factory is not considered a design pattern because it does not decouple the client from concrete classes Select one: True False 2- structural patterns provide guidance on the way in which classes interact to distribute responsibility Select one: True False 3- The Simple factory is used when you want to limit the instantiation of classes to one implementation Select one: True False 4- When a class A is composing a reference to another class B, then we say that class A has-a class B relationship Select one: True FalseIn-class Assignment Day 8 You should draw the hierarchy for your classes to understand how the coding should be structured. Be sure to notate any classes that are abstract. Write an abstract class for Shape. The intended subclasses are Polygon, Circle, Triangle, and Rectangle. All of these will have a name, an area, and a perimeter. (Consider which methods might be abstract.) Add a toString method that will return the information about the Shape, for example: Triangle, Area: 7.5, Perimeter: 12.0 Write the class Rectangle. A Rectangle is a Shape and should have a width and a height. When a Rectangle is outputted, it should read: Rectangle, Length: #, Width: #, Area: #, Perimeter: # Write the class for Circle. Every circle is a Shape that has a radius. Be sure to provide an accessor method (getter) for the radius. When a circle is outputted, it should read: Circle, Radius: #, Area: #, Circumference: # Write a TestShape class that has the main method, which creates…
- In java Create an abstract super class called Employee with the following attributes: name : String and the following methods getter and setter for the one attribute three constructors an abstract method called getSalary() equals() toString() Create a sub class of Employee called Faculty with the following attribute yearlyPay : double department: String and the following methods getter and setter for the attributes three constructors getSalary() that returns the yearlyPay divided by 52 equals() toString() Create a sub class of Employee called Staff with the following attributes: hoursWorked : double payrate : double and the following methods getters and setters for the two attributes three constructors getSalary() that returns the weekly pay (multiply hoursWorked by payrate, overtime included and 1.5 times payrate for hours > 40) equals() toString() Create a sub class of Employee called Sales with the following attributes: salesAmount : double //sales per week…You have to implement program that compares graduate students based on their ranks. The design of the program is given in the following UML diagram: • Student class: Base class that GradStudent extends. • GradStudent class: The objects from this class will be used for comparisons. • Rankable interface: Defines the implementation needed for comparison. GradStudent implements this interface. • Test class will be used to get student information from the user and demonstrate the comparison of students.In what scenarios would you choose to use an abstract class over an interface, and vice versa?