# Add your other test methods here
Q: Create a function that removes the correct members from the input. Use the following examples to unl...
A: Algorithm: Firstly we will take the string as an fuction arguments then we will split the string wi...
Q: v. What is NAT? Why is it needed? NAT stands for: Why/when to use NAT?
A: To access the internet IP address is needed but private IP can also be used to access the internet. ...
Q: H.W Find the Adjoint to the following matrix -2 Y = 1 4 5 1 3. 2.
A: Here, we are going to find out adjoint matrix for the given 3x3 matrix.
Q: Let f : A → B be a 1-1 correspondence. Then If gf = 1a, we have g = f-'. %3D If fh = 1B, we have h =...
A:
Q: Design MapReduce algorithms that takes as input two sets (say, set A and Set B) and performs set int...
A: l1=list(map(int,input().split()))l2=list(map(int,input().split()))s1=set(l1)s2=set(l2)print(s1|s2)pr...
Q: The most crucial part of using a CRM system is the work you do before it is deployed.Discuss all the...
A: Software development life cycle ( SDLC) is one of the most important or crucial thing that should ha...
Q: 3) Adaptation: avg_rainfall_fun.py This is a redesign of a previous assignment. Start with a working...
A: I have provided CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT----------------
Q: If A has 4 elements B has 12 elements then the minimum and maximum number of elements in A UB are 20...
A: a)12,16
Q: The result of adding hexadecimal number A6 to 1A is * FO. О со. O EF Skip O EO. To convert the binar...
A: Note - As per our guidelines, we can provide solution only for one question. Since you have posted m...
Q: 2. Create a Java program that will compute the Netpay of the employees. Compute the grosspay by mult...
A: Please upvote me I am providing you the correct answer below.
Q: Facts: System design is the process of defining the components, modules, interfaces, and data for a ...
A: INTRODUCTION: Here we need to share our views or experiences while developing a project.
Q: Create a task that takes a series of words and returns the highest score of goals. Each letter of th...
A: Coded using Java Script.
Q: Which of the following is true about a hosting package for an information site?
A: What is hosting package? Hosting term refer as the doing the same task on the other behalf. So we ca...
Q: Question: Does the choice of the pivot affect the running time of quick sort? Why or why not? It wou...
A: Choosing a random pivot minimizes the chance that you will encounter worst-case O(n2) performance (a...
Q: Write a program in 64-bit mode that declares five QWORD variables with initial value: Aval = 03Fh Bv...
A: START Aval 03Fh Bval 10h Cval 0400h Dval 09h sum 0 MOVE sum,Bval
Q: e in school operati
A: Create complex combination of password: your password should meet certain criterion that is it inclu...
Q: Q-1. What is actput of this logic gate? A F=?
A:
Q: def convert_data(data: List[list]) -> None: """Convert each string in data to an int if and only...
A: Step 1 : Start Step 2 : Define a Function convert_data() to convert the strings of a list which are ...
Q: Problem 1. Design a corresponding DFA for the following languages: (note: use JFLAP software tool to...
A: As per our guidelines, only 3 subparts will be answered. So, please repost the remaining questions s...
Q: Pasty1.py You do NOT need to use functions or a restart Feature. You DO need comments! Welcome to An...
A: I give the code in Python along with output and code screenshot
Q: What are the most important functions of an operating system?
A: The answer is given below.
Q: Define some value-returning function examples
A: Value returning functions are the functions that are having a return type other than void
Q: According to a hypothetical scenario, you have been asked to plan and provide a training session for...
A: Introduction: A hypothetical scenario was defined as a setting in which individuals were asked to ma...
Q: elation with proper steps followed. Explain in detail b) Identify which normal form this relation is...
A: Given : R(ABCDEF) ABC->D, ABD->E, CD->F, CDF->B, BF->D
Q: Explain what a business case is and how it impacts a technology project.
A: A business case captures the reasons for launching a project or project. It is the information requi...
Q: What is the mechanism by which the DHCP protocol controls errors?
A: DHCP (Dynamic Host Configuration Protocol) is a an application layer protocol that enables you to: V...
Q: A microcomputer's processing capability might be increased by using expansion cards.
A: Introduction : An expansion card is a kind of electronic card that may be used to expand a computer'...
Q: Define and explain the role of a repository in the system development process.
A: Define : Repositories are defined as a collection of related files and content stored in one place ...
Q: ove semantic rules, give an evaluation of the expression ((4 ! 6) ! 1) (fully parenthesized to denot...
A: PREDICATES IN PROLOG: %1mymember(_, []):- false.mymember(X, [X|_]):- true.mymember(X, [_|Y]):- mymem...
Q: Question 2 1- Add the following (98A8)h + (A8B9)h 2- Using First complement, Find (621)o - (211)h 3-...
A: 1. Ans - 14161 Binary of no. 1 = 1001100010101000 Binary of no.2 = 1010100010111001 Add both = 01...
Q: There are three cities: Madrid, Buenos Aires and Santiago, whose ambient temperatures are as follows...
A: Answer is in next step.
Q: 1. Many languages distinguish between uppercase and lowercase letters in user-defined names. What a...
A: The following are some of the reasons why a language would differentiate between uppercase and lower...
Q: coding in PYTHON !! For this question, you will be implementing a simple Tic-Tac-Toe game wi...
A: Solution:- Python implementation of Tic Tac Toe game :- import random class TicTacToe: def __ini...
Q: iv. Briefly describe with diagram the three types of switching fabrics? Fabric type Diagram Descript...
A: According to the Bartelby guideline we are suppose to answer only one question at a time. Kindly rep...
Q: IF you want to save file (made by Microsoft * Office Word 2010) as PDF a) Click the File tab, Select...
A: Changing a Microsoft Word record over to PDF design is extremely simple - - starting with Word 2010,...
Q: When a program is executed by the CPU, it must be copied into what type of memory each time?
A: The CPU is also known as central processing unit.
Q: he use of desig
A: In computer science and software engineering, reusability is the use of existing assets in some form...
Q: What are the different stages of the SDLC waterfall model? What did Barry Boehm have to say about sp...
A: The answer of this question is as follows:
Q: Consider using BPEL or other business process modeling languages
A: Introduction: BPEL is a process modeling/management language that standardizes process descriptions ...
Q: s a student, how are you affected by the changes brought by Information Technology to your life
A: Perhaps the greatest test in instruction is dealing with every understudy in the homeroom. It's anyt...
Q: Write a complete Fortran program that asks three real numbers from the user, calculate the sum and t...
A: Your FORTRAN program is given below with an output.
Q: stem is required. Distinguish between the operation of various input and output devices, including w...
A: In-depth description of the I/O subsystem is required. Distinguish between the operation of variou...
Q: 2s complement is used to represent signed integer, especially positive integers * True False O skip ...
A: According to the question number system always help us to trace the value of machine language which ...
Q: Five jobs arrive nearly simultaneously for processing and their estimated CPU cycles are, respective...
A: We are given two cases : in the first case we will assume all jobs arrives at time 0 and then we wil...
Q: evelopment risk
A: The repetition code is one of the most fundamental error-correcting codes in coding theory.
Q: ber of containers to ship the cookies. Note that each box must contain the specified number of cooki...
A: given - Program Problem:A box of cookies can hold 24 cookies and a container can hold 75 boxes of co...
Q: Compare and contrast the functions of TCP and User Datagram Protocol (UDP).
A: According to the question we need to Compare and contrast the functions of TCP and User Datagram Pro...
Q: Who is responsible for training computer users in an organization? What is the function of the DBA t...
A: Introduction: Information technology (IT) systems are vital to the operation of any organization, an...
Q: What is the router's role in networking?
A: Introduction: A router is a network switching mechanism that uses addresses to route data packets to...
Q: Write a complete Fortran program that asks three real numbers from the user, calculate the sum and t...
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other questio...
Step by step
Solved in 2 steps
- class temporary { public: void set(string, double, double); void print(); double manipulate(); void get(string&, double&, double&); void setDescription(string); void setFirst(double); void setSecond(double); string getDescription() const; double getFirst()const; double getSecond()const; temporary(string = "", double = 0.0, double = 0.0); private: string description; double first; double second; }; What are the members and functions in this example? I need help identifying how the members and functions work to answer the questions below. I am having troubles understanding this concept. I am learning constructors and deconstructors along with inline and hiding information. I feel lost trying to answer these questions. Can I get direction on how to proceed? Write the definition of the member function set so that the instance variables are set according to the parameters. Write the definition of the member function manipulate that returns a decimal number as follows: If the…class temporary { public: void set(string, double, double); void print(); double manipulate(); void get(string&, double&, double&); void setDescription(string); void setFirst(double); void setSecond(double); string getDescription() const; double getFirst()const; double getSecond()const; temporary(string = "", double = 0.0, double = 0.0); private: string description; double first; double second; }; I need help writing the definition of the member function set so the instance varialbes are set according to the parameters. I also need help in writing the definition of the member function manipulation that returns a decimal with: the value of the description as "rectangle", returns first * second; if the value of description is "circle", it returns the area of the circle with radius first; if the value of the description is "cylinder", it returns the volume of the cylinder with radius first and height second; otherwise, it returns with the value -1.Home Task: 1. Implement the following class and test its methods: - numerator: int - denominator: int Fraction + Fraction(numerator: Int, denominator: int) + getNumerator(): int + getDenominator(): int + setNumerator(numerator: Int): void + setDenominator(denominator: Int): void + to String(): String + add(fraction: Fraction); void + sub(fraction: Fraction); void + multiplication (fraction: Fraction); void + division(fraction: Fraction): vold
- name: string - ownerName: String Cat numberOfTeeth int lengthofTail : int + Cat (name: String, ownerName: String, numberOfTeeth: int, lengthofTail:int) i. ii. + Pet (name:String, ownerName: String) + getName(): String + getownerName (): String + getNumberOfTeeth (): int + getLengthofTail(): int Pet iii. Budgie colourOfFeathers: String + Budgie (name: String, 1. Convert the UML class diagram above into a java code with the following conditions The methods in the Pet class are abstract. ownerName: String, colourofFeathers:String) + getColourOfFeathers (): String Create a class called test. The main() method in the test class should create three Cat objects and two Budgie objects. The main() method should also create indirectly an object of the Pet class. Demonstrate polymorphism in your test class. 2. Write a Java Code for a simple GUI program that creates a frame and changes the background to green. Examiner's Name: George Kodjo AnniTrace through the following program and show the output. Show your work for partial credit. public class Employee { private static int empID = 1111l; private String name , position; double salary; public Employee(String name) { empID ++; this.name 3 пате; } public Employee(Employee obj) { empID = obj.empĪD; пате %3D оbj.naте; position = obj.position; %3D public void empPosition(String empPosition) {position = empPosition;} public void empSalary(double empSalary) { salary = empSalary;} public String toString() { return name + " "+empID + " "+ position +" $"+salary; public void setName(String empName){ name = empName;} public static void main(String args[]) { Employee empOne = new Employee("James Smith"), empTwo; %3D empOne.empPosition("Senior Software Engineer"); етрOпе.етpSalary(1000); System.out.println(empOne); еmpTwo empTwo.empPosition("CEO"); System.out.println(empOne); System.out.println(empTwo); %3D етpОпе empOne ;Computer Engineering QuestionApex Test Class. Design a apex Salesforce Program to "test"Check the String is exactly same from the start and endUsing the below Apex Program if string is same as it reverse then display the use the assert to test the accuracy of the program: -public class palindrome {public static Boolean myPalindrome(String inputString){String reverseString ='';reverseString = inputString.reverse();if(inputString.equals(reverseString)){return True;}else{return False;} } }Please design the Apex Test Class
- Fill in the blanks public class Test { public String name; public static void main(String[]args) { Test obj = new Test(); System.out.println(________.name); What should be the code in the blank part? Blank is ________class TicTacToePlayer: # Player for a game of Tic Tac Toe def __init__(self, symbol, name): self.symbol = symbol self.name = name def move(self, board): move = int(input(self.name + " make your move 1-9:")) move -= 1 y = move % 3 x = move // 3 board[x][y] = self.symbol def is_symbol(self, symbol): if symbol == self.symbol: return True class TicTacToe: # Game of TicTacToe in a class! def __init__( self, p1_symbol="X", p2_symbol="O", p1_name="Player1", p2_name="Player2" ): self.p1 = TicTacToePlayer(p1_symbol, p1_name) self.p2 = TicTacToePlayer(p2_symbol, p2_name) self.board = [[" " for x in range(3)] for x in range(3)] def play_game(self): turn = 0 winner_symbol = False while not winner_symbol: self._print_board() if turn % 2: self.p2.move(self.board) # replace this line with a call…Computer engineering question Assignment 3:- Apex (Salesforce)- Create an apex class - In the apex class we have to create 1 method.- Method return type is void & the argument is null.- Method : - Map<String,String> static 4 values---- Put the value at the time of initialization---- Put the value using the map method PUT
- Bread Class -breadType: String - caloriesPerslice: integer + Bread(String breadType, integer caloriesPerslice) + getBreadType(): String + setBreadType(String breadType): void + getCaloriesPerslice(): integer + setCaloriesPerSlice(integer calories): voidA class object can encapsulate more than one [answer].class Airplane – highlights -- planeID : String -planeModel: String //”Boeing 757” etc. --seatCapacity : int //would vary by outfitting ………… Assume getters and setters, toString(), constructor with parameters and constructor ……………… Write lambdas using a standard functional interface to: a) Given a plane object and a required number of seats as an input, determine if the given plane meets or exceeds the required capacity b) Output the plane description if capacity is less than 80% of a specified number (We would use his for planning aircraft assigned to various routes. ) c) Adjust the seats in a plane by a specified positive or negative number [after modifications have been made to the interior.] …and write an example for each showing the usage, using an Airplane instance plane1