Q1: Implement a class called Animal. a)A class named Animal b) Private data members: species and age. c) Accessors and Mutators function for species, and age. Use following main() to test your class. int main() { Animal a; a.setSpecies("dog"); a.setAge(10); cout<
Q: Define the characteristics that are required for test-driven development. In the event that you wish...
A: According to the question essential principles of check pushed improvement TDD and assuming that you...
Q: Describe why web application security is critical. What may go wrong with an unsecured application? ...
A: As per our guidelines, only 3 sub parts will be answered. So, please repost the remaining questions ...
Q: Is there a difference between storage architecture and data storage architecture?
A: Introduction: Storage: Devices for storing data or information are known as storage devices in infor...
Q: Are there any significant distinctions between search engine results and library databases when it c...
A: Intro A search engine, such as Google or Bing uses computer algorithms to search the Internet and id...
Q: Given four propositions A, B, C, and D, how many models are there for the sentence “(C or D) and ...
A: Given four propositions A, B, C, and D, how many models are there for the sentence “(C or D) and n...
Q: In 1-2 double spaced pages, please respond to the following: What is job analysis? In what areas (or...
A: The word count in 1-2 double spaced page is around 250 words. ..................
Q: Because a data warehouse is too big, a data mart is better for BI than a data warehouse is. What kin...
A: The answer is given below:-
Q: Using the information described below, you are to sketch a class diagram. In this diagram, you are t...
A:
Q: In computer memory, how do local declarations get put in place? Yes, but there aren't any good reaso...
A: Introduction: Memory Allocation: The technique by which the software creates "space" for informatio...
Q: In what way does multicore architecture differ from other architectures?
A: Here, I have to explain the difference between multicore and other architectures.
Q: Types of secondary storage: What are they?
A: Secondary storage is a memory that is stored external to the computer and is used for the permanent ...
Q: 3 6. Evaluate the determinant for the following matrix: 5 O A.8 O B.-2 O C.5 O D.-4
A: The determinant for the given matrix is 8. The explanation is as follows.
Q: 2. Given a Python program, add comments to the code. strL = ["A","B","C","D","E","F"] %3D for str in...
A: There is error in 3rd line. Code: strL = ["A","B","C","D","E","F"] for str in strL: print(str, ...
Q: Is there a difference between storage architecture and data storage architecture?
A: INTRODUCTION: STORAGE: In information technology, storage refers to equipment that is used to store ...
Q: A Python programmer should always _________ the opened file. read write append Not in the option
A: Ans: Read
Q: Questions: Answer question below. Any references made in website or academic journal must be cites....
A:
Q: Malicious destruction of a hardware device is: O breach of availability breach of confidentiality br...
A: Whenever an individual is willing to destroy or destroy electronic documents, information, or softwa...
Q: What's the difference between Stored Procedures and Scripts? What is the purpose of each? How does e...
A: Introduction: A stored procedure (also known as a proc, storp, sproc, StoPro, StoredProc, StoreProc,...
Q: Apply Image Segmentation clustering to cluster the following data points with value of K=3 and Initi...
A: Euclidean Distance formula is : d(p,q)=d(q,p)= (q1-p1)2+(q3 - p3)2 +....+(qn-pn)2= ∑i=1n(qi-pi)2 ...
Q: Who was the first person to invent a flash memory device?
A: Flash memory device was first introduced by Dr. Fujio Masuoka in 1980's. Dr. Fujio Masuoka wan an i...
Q: Compute the Hamming distance of the following code group: 0011010010111100 0000011110001111 00100101...
A: Given Hamming distance: 0011010010111100 0000011110001111 0010010110101101 0001011010011110
Q: what was the overall impact of the Capital One hack? and could this have been prevented?
A: Given :- what was the overall impact of the Capital One hack? and could this have been prevented?
Q: Big data has become a part of every organization's information technology systems in today's world. ...
A: Answer: IT systems comprise computer programs, software, databases, and accompanying documentation...
Q: Use the Bisection Method to find the first root of f(x) = -12 – 21x + 18x² – 2.75a. In doing so, use...
A: Following is the Matlab code for the given problem: %clear the command window clc; clear all; %give...
Q: 3 6. Evaluate the determinant for the following matrix: O A.8 O B.-2 O C.5 O D.-4
A: INTRODUCTION: We need to find the determinant of the matrix.
Q: Explains the difference between both management protocols CMIP and SNMP?
A: The solution to the given problem is below.
Q: x = 0 n = 3 j = n # outer loop with j while True: k = n # inner loop with ...
A:
Q: Who designed Harvard's buildings?
A: The solution to the given problem is below.
Q: What criteria does the control unit employ to decide whether to utilize the rt or the rd register as...
A: Introduction: Control Unit (CU): A control unit (CU) is a processor component that handles all proc...
Q: "Rabenstein code was used to send a message with 4 information bits, you receive 100110001, if you c
A: The answer is
Q: What are the disadvantages of having an email provider monitor a user's emails?
A: Introduction: You may receive a large amount of spam, which may clog the system. If junk mail is ope...
Q: How can we keep our anonymity on the internet
A: Please find the answer below
Q: What's the difference between Stored Procedures and S "rocedures compare to other methods?
A: The differences between stored procedures and scripts are as follows: i)A stored procedure is a coll...
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =...
A: Given: To write a program to calculate the area and volume for a sphere. The program is written in C...
Q: and one extra: relational composition which generalizes composition of functions a (RoS) c ::= 3b e ...
A:
Q: not upload already uploaded answer.... Otherwise I'll downvote multiple times
A: Introduction: When developing software, TDD is a procedure in which software requirements are transl...
Q: When it comes to infrastructure and architecture, what is the difference?
A: Intro the difference infrastructure and architecture
Q: LA GSM system uses 124 channels and each channel is divided into 8 time siots. What is the maximum n...
A: The answer is
Q: I need help putting a space in between my output I’m trying to find out what the problem is I am cur...
A: code :
Q: Create a Scanner object to read input from the keyboard new Scanner(System in):
A: Given 11 public class CircleAndSphere 12 { 13 public static void main(String[] args) 14 1 15 // Step...
Q: Let %rdx contain the value 0xc000 and %rcx contain 0x0004. The expression 0x400(%rdx, %rcx,3) will ...
A: first convert all hex-decimal numbers into decimal then will solve the expression below is the han...
Q: Create a UML class diagram for a credit union using these classes: - Branch - Bank Account - User Ac...
A: -see the UML diagram
Q: Alice and Bob use the ElGamal scheme with a common prime q = 131 and a primitive root a = 6. Let Bob...
A:
Q: Modify the attached code to generate the display. Your code must use the given variables and use the...
A: Find the answer below.
Q: Create a BANASTHALI database and an Employee table with following attributes Employee Id, Employee N...
A: The above given question is to create a data base and also create a data table in a relational data ...
Q: m) one student has sent the of student has telephoned the first student. n) There are two different ...
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any ...
Q: Define the attributes necessary for test-driven development. What improvements would you make to it ...
A: Intro Define the attributes necessary for test-driven development. What improvements would you mak...
Q: Devise an algorithm for determining interior regions for any input vertices using the non zero windi...
A: The algorithm for determining interior regions for any input vertices using the non-zero winding num...
Q: Requirements prioritising and negotiation is one of the processes of requirements elicitation and an...
A: Introduction: Prioritization of requirements is a key aspect of project development. Both words are ...
Q: A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2, ea...
A: Given: Microprocessor instruction format, which is divided into 2 subfields F1, F2, each having 15 d...
help with c++
“Since you have asked multiple questions, we will solve the first question for you. If you want any specific question to be solved, then please specify the question number or post only that question.”
Step by step
Solved in 4 steps with 1 images
- In C++ The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to: create a generic pet and print information using PrintInfo(). create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function. Ex. If the input is: Dobby2Kreacher3German Schnauzer the output is: Pet Information: Name: Dobby Age: 2Pet Information: Name: Kreacher Age: 3 Breed: German SchnauzerThis is in c++ The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to: create a generic pet and print information using PrintInfo(). create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function. main.cpp #include <iostream> #include<string> #include "Dog.h" using namespace std; int main() { string petName, dogName, dogBreed; int petAge, dogAge; Pet myPet; Dog myDog; getline(cin, petName); cin >> petAge; cin.ignore(); getline(cin, dogName); cin >> dogAge; cin.ignore(); getline(cin, dogBreed); // TODO: Create generic pet (using petName, petAge) and then call PrintInfo // TODO: Create dog pet (using dogName, dogAge, dogBreed) and then call PrintInfo // TODO: Use GetBreed(), to output the breed of the dog } Dog.cpp #include "Dog.h" #include…7.23 LAB: Product class use Java. Given main(), define the Product class (in file Product.java) that will manage product inventory. Product class has three private member fields: a product code (String), the product's price (double), and the number count of product in inventory (int). Implement the following Constructor and member methods: public Product(String code, double price, int count) - set the member fields using the three parameters public void setCode(String code) - set the product code (i.e. SKU234) to parameter code public String getCode() - return the product code public void setPrice(double p) - set the price to parameter p public double getPrice() - return the price public void setCount(int num) - set the number of items in inventory to parameter num public int getCount() - return the count public void addInventory(int amt) - increase inventory by parameter amt public void sellInventory(int amt) - decrease inventory by parameter amt Ex. If a new Product object is…
- class first { public: void setX(); void print() const; protected: int y; void setY(int a); private: int x; }; Suppose that class second is derived from class first using the statement: class second: private first which members of class first are private, protected, and public in class second?Cr3ate a class named Person, use the __init__ () function to assign values for name and age class Person: def __init__(self, name, age): _______________ _______________p1 = Person("John", 36)print(p1.name)print(p1.age)- Create a class Rational for performing arithmetic with fractions.Write a driver program to test the class. Provide a constructor thatenables an object of this class to be initialized when it isinstantiated. The constructor should contain default values in caseno initializes are provided and should store the fraction in reducedform. Provide a private function to reduce numbers.Provide Public member functions for each of the followingarithmatic’s functions (addition – subtraction – multiplication –division), printing in the form a/b, printing in floating point formatand final overload the == and != operators to allow comparisons oftwo fraction numbers.Include any additional operations that you think would be useful fora rational number class.Design, implement, and test your class.
- 1. Implement a Student class. a. Create a class Student with the following private data members: 1. name 2. exam_1 grade 3. exam_2 grade b. Create all appropriate accessor and mutator functions. c. Assign appropriate access modifiers to insure encapsulation. d. Add a private calcGPA() function that calculates and returns the GPA based upon the two exam grades. e. Add a public getGrade() function that: 1. Obtains the GPA from the private calcGPA() function. 2. Returns a letter grade based upon the numerical GPA value. 90 to 100 = A 80 to 90 = B 70 to 80 = C 60 to 70 = D 0 to 60 = F f. Test all functions from main. 2. Using the class from problem 1, replace main with the following: a. Implement a partially filled array of type Student named students of capacity 10. b. Implement a non-member addStudent() function that: 1. Creates a new student with data populated by input parameters. 2. Adds the new student to the students array. c. Implement a non-member output() function that: 1.…1. Implement a Student class. a. Create a class Student with the following private data members: 1. name 2. exam_1 grade 3. exam_2 grade b. Create all appropriate accessor and mutator functions. c. Assign appropriate access modifiers to insure encapsulation. d. Add a private calcGPA() function that calculates and returns the GPA based upon the two exam grades. e. Add a public getGrade() function that: 1. Obtains the GPA from the private calcGPA() function. 2. Returns a letter grade based upon the numerical GPA value. 90 to 100 = A 80 to 90 = B 70 to 80 = C 60 to 70 = D 0 to 60 = F f. Test all functions from main. 2. Using the class from problem 1, replace main with the following: a. Implement a partially filled array of type Student named students of capacity 10. b. Implement a non-member addStudent() function that: 1. Creates a new student with data populated by input parameters. 2. Adds the new student to the students array. c. Implement a non-member output() function that: 1.…This is an object oriented programming question The code should be in C++ language Create a class Student having a private data members S_ID, S_Name and S_CGPA. Now create a public member functions void getID(), void getName() and getCGPA() and finally to display all the data members, create a function void display(). In the main(), create an array of student class, size of the array should be taken from user at run time and call all the functions defined in the class. Sample Output: Student 1 Enter ID: 1 Enter Name: Ali Enter CGPA: 2.5 Student 2 Enter ID: 2 Enter Name: Ahmed Enter CGPA: 2.9 Student 3 Enter ID: 3 Enter Name: Zain Enter CGPA: 3.4 Student 1 informationID: 1 Name: Ali CGPA: 2.5 Student 2 information ID: 2 Name: Ahmed CGPA: 2.9 Student 3 information ID: 3 Name: Zain CGPA: 3.4
- C++ Q3. Write a program which has a class template for determining the largest and the smallest number from a list of numbers. Use a constructor for input and appropriate data members and member functions in support of your answer(RationalNumber Class) Create a class RationalNumber (fractions) with these capabilities:a) Create a constructor that prevents a 0 denominator in a fraction, reduces or simplifiesfractions that are not in reduced form and avoids negative denominators.b) Overload the addition, subtraction, multiplication and division operators for this class.c) Overload the relational and equality operators for this classCreate a class called ADDITION has one integer and one float data member. Use pointer to data member to find their sum and print it from main method and also use the concept of dynamic write the program in C++