Create a class called Box that has the following attributes: length, width and height and the following two function declarations: setBoxDimensions which accepts three parameters: w, l and h getVolume which has no parameters.
Q: What kinds of problems might arise as a result of information systems that aren't connected…
A: Several issues pertaining to computers, such as their loss or malfunction, are among the factors…
Q: Explain what search spiders, search engines, and search services are.
A: To be decided: Define search engines, search services, and spiders. There are over 20 million pages…
Q: 9. Traverse the graph below. Assume that adjacency list is sorted in ascending order. 2 4 1) Write…
A: The question is to traverse the given graph using 1) DFS and 2) BFS.
Q: How do application programmes interface with the computer's operating system via interrupt handlers…
A: Introduction: An interface is provided by the operating system between the central processing unit…
Q: What type of relationship does a piece of data have with a device that is part of the Internet of…
A: Given: Sensor data from Internet of Things devices may be shared, then transferred to the cloud for…
Q: Interprocess communication in UNIX is the most efficient.
A: The solution to the given question is: The fastest type of inter-process communication on UNIX is…
Q: ctly can you do a requirements analysis for a training program
A: Introduction: Below the describe the a requirements analysis for a training programme using an…
Q: Discuss the evolution of the information system, focusing on the important people and events that…
A: Introduction: The processing of data via the use of computers is the fundamental idea behind…
Q: What is automated testing and how does it work?
A: Introduction: Automated testing is used to determine whether the software generated by the developer…
Q: What are some of the most significant distinctions between a typical computer and a quantum…
A: Most Significant Difference: The Most Significant Difference with an typical style PC is that a…
Q: Explain dynamic memory allocation in a few sentences.
A: When the memory allocation is done at the execution or run time, then it is called dynamic memory…
Q: What is the fundamental difference between assembly language and bytecode?
A: The question is to write fundamental difference between assembly language and bytecode.
Q: 5. Which of the following statements is not true? Mid11
A: Answer for given mcq is given below. with explanation
Q: Which of the following is/are True? I) If PNP, 3-CLIQUE will be in NP-Complete, but not in NP. II)…
A:
Q: Is there a risk that the security of the cloud may be compromised? Several possible solutions to…
A: Introduction: Computing in the cloud data leaking A data breach happens when secure/confidential…
Q: It would be helpful if you could provide a summary of some of the most pressing concerns about…
A: The need for you to watch business against digital assaults has never been more critical as…
Q: What text features may a reader use to gain a sneak peek at a text?
A: The above question is answered in step 2 :-
Q: Examine the fundamentals of Big Data Processing Architectures.
A: Introduction: Input, processing, and analysis of data sets that are either too large or too complex…
Q: Q1/ write oop program using static member function to show area of circle وردنه فكر من
A: This is a multiple type question, hence according to the guidelines only first question has been…
Q: If "shifting by 4" is used in the Caesar cipher, the ciphertext of "FOUR" is O JSYV FRUH JMZI none…
A:
Q: Why do we need to analyse our data before choosing a ready-made software package rather than bespoke…
A: Given: Should we eliminate or cut down on the analytical process when we intend to use a software…
Q: When broken down into their constituent parts, do the subsystems of massive computer processes and…
A: Virtual memory segmentation: Each process is divided into several parts, not all of which are…
Q: check the picture and match each of the following points with the technology needed/used in the…
A: This question comes from Artificial intelligence which is a paper of Computer Science. Let's discuss…
Q: sectors/ trac ng surface an ess of a sect nder no., h is hus the 0th s S 0>, 1 st secto
A:
Q: recisely does the Access Security Software perform its d
A: Introduction: Access control systems are one of the most important security features. Serious…
Q: Please include material that is particular to the following topics: global problems (globalisation…
A: Globalization: "The greater interconnection and interdependence of nations and their people may be…
Q: ge [-5.....5, 3... ation is 100. E ry cells. Calcu blumn maior c
A:
Q: What contingency plans are in place to deal with the possibility that the project's scope may need…
A: Introduction: To address shifting demands, use a new approach and work in Agile-style two-week…
Q: Examine the benefits and drawbacks of concurrent programming in great depth. Interaction between…
A: Concurrent programming is defined as the programming performed with multiple processes and executed…
Q: Explain, using applicable examples, the four Ps of good software project management.
A: Introduction: The four P's of Software Engineering are as follows: 1. People2. Product3. Process4.…
Q: The following are issues that users have while utilising a disconnected information system.
A: Answer: 1 - MONETARY LOSSAt the point when information is detached it can channel through to…
Q: The notion of OOP is based on real-world examples, but how can we verify this? In what ways may this…
A: Based on real-life instances, OOPS: The goal of object-oriented programming is to represent the…
Q: Do you have an excellent example of an oops
A: Object-oriented programming: Object-oriented programming (OOP) is a programming paradigm in which…
Q: What changes did computer technology undergo in the 1950s?
A: Introduction: Significant advances in computer technology were made between 1950 and 1959.
Q: When is it important to use an associative entity to express a many-to-many relationship?
A: In a relational database. An associative entity is used for many-to-many relationships between two…
Q: Show the steps for performing the followings: a) Search 75 b) Insert 100 c) d) Delete 5 min and max…
A: We have a Binary Tree given. We need to write steps to perform the following operations on the tree-…
Q: Why do many systems have separate code and data caches, and how does the hardware identify whether…
A: Introduction: Set the camera up. Cache memory is a type of auxiliary memory that is closer to the…
Q: The relationship between the four information system functions will be discussed, and a visual will…
A: Introduction: The term "hardware" refers to the physical components of an information system and…
Q: In mobile apps, data security and privacy are crucial.
A: Introduction: Reduce your use as much as possible, and stay away from processing any personal…
Q: When compared to a handwritten scan, what are the benefits of using an automated scanner? What's the…
A: Automated scanner: The ease of implementation and the speed with which a compiler may be developed…
Q: What is the central processing unit's function and what does it do? How do you feel about this?
A: Introduction: In order to provide a solution to the question, we will need to explain the goal and…
Q: 13. The FileVault is: a. Microsoft solution for encrypting computer user data; b. The antivirus…
A: If you save sensitive information on your Mac, you can encrypt the files with FileVault to prevent…
Q: B- Write C++ Program to print the following figure: abcdefgh bcdefgh cdefgh defgh efgh fgh sh b
A: Algorithm/Program Plan: Create a main function Declare j of integer type Initialize the variable…
Q: Science of computers What are the benefits of an automated scanner over a handwritten scanner?
A: Science of computers deals with the study of the computers and the study of computational system…
Q: Which aspects of the integrity limitations are unique?
A: SQL is the abbreviation for Structured Query Language. It permits access to and management of…
Q: What is the only programming language that can be utilised by a CPU to understand and create…
A: Machine code is also known as machine language.
Q: Explain your thoughts on the software structure review process using examples.
A: Introduction: Software Review is a systematic evaluation of the programme carried out by one or more…
Q: What checks and balances are in place to ensure:Sniffing a network is a means of reconfiguring it.…
A: Please find the answer below :
Q: It is important to investigate Access and Authentication in Information Security.
A: Introduction: Access control is a security method that controls who or what may see or utilise…
Q: Create five row vectors, the first A with 6 random integer numbers between 10 and 30, the second B…
A: Given :
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:
Create a class called Box that has the following attributes: length, width and height and the following two function declarations: setBoxDimensions which accepts three parameters: w, l and h getVolume which has no parameters.
Step by step
Solved in 2 steps with 1 images
- You have a base class called Shape such as: #include #include using namespace std; class Shape { protected: int sidel, side2; public: Shape (int a, int b) { sidel = a, side2 = b; } void set_values (int a, int b){ sidel = a; side2 - b;} }; Solve the following items: 1- Derive the Rectangle and Square classes from base class. 2- Calculate area for each one. 3- Display all results using virtual function called showResults(). 4- What is the type of the inheritance used in the program. 5- Test all the functions in your program by implementing them. Hint: - Add any functions or data you need that are suitable for your code.You are required to build a mini FunTime application for the kids to play with their electronic toys in a virtual world. Follow the given steps Build a class Toy having the following data members Name(String) Color (String) Type (String) Price (float) batteryHealth (int) Provide constructor with arguments for name, color, type, and price. Initialize batteryHealth to 5 (which means full). Provide getter for each of these but no setters.Provide a function charge(String time). This function would increase the batteryHealth of the toy according to following rules Time Increase in battery health 15 mins 20% charging (Increase health by 1) 30 mins 40% 45 mins 60% 1 hour 80% 1 hour 15 mins 100% If the toy is already fully charged, then no more charging should be done and appropriate message to be displayed. The charge function returns the new health of the battery of toy object. Provide another function play() that reduces the batteryHealth of the toy…In previous chapters, you have created programs for the Greenville Idol competition. Now create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing Dancing, Musical instrument, and Other. The class contains an auto-implemented property that holds a contestants name. The class contains fields for a talent code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid. The talent description is a read-only property that is assigned a value when the code is set. Modify the GreenvilleRevenue program so that it uses the Contestant class and performs the following tasks: The program prompts the user for the number of contestants in this years competition; the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code.
- Create a class called Person that will hold information about a single individual. This class should have a data section that consists of the following: Variable Name Data Type firstName string lastName string address string The Person class should have the following mutators: setFirstName(string first); setLastName(string last); setAddress(string address); The Person class should have the following accessors: string getFirstName(); string getLastName(); string getAddress(); The Person class should have the following constructors: Person(); - default Person(string first, string last); - Set other fields to an empty string Person(string first, string last, string address); Note: You must use delegating constructors to eliminate duplicate code. Main Create an array which will hold 5 Person classes. Pass the array to a function called getPeople which will fill out the array with information about people taken from the keyboard. Create a…create a class that captures planets. each planet has a name, a distance from sun and its gravity relative to earths gravity, use the type double which capture real numbers. make objects for earth anf your favourite non-earth planet. data members are private. provide overloaded constructors and destructors for each class.Create a class Shape and two additional classes (each derived from Shape) named Rectangle and Triangle. The member attributes and functions for each class are given below:Shape:private:int width;int height;public:virtual int getArea();Rectangle:public:int getArea();Triangle:public:int getArea();Driver Program:Rectangle r1(3,2);Triangle t1(3,2);Shape *s1 = &r1;s1->getArea();Shape *s2 = &t1;s2->getArea();
- (After reading the instructions given in the pictures attached, read the following) Class membersdoctorType Class must contain at least these functionsdoctorType(string first, string last, string spl); //First Name, Last Name, Specialty void print() const; //Formatted Display First Name, Last Name, Specialtyvoid setSpeciality(string); //Set the doctor’s Specialtystring getSpeciality(); //Return the doctor’s SpecialtypatientType Class must contain at least these functionsvoid setInfo(string id, string fName, string lName,int bDay, int bMth, int bYear,string docFrName, string docLaName, string docSpl,int admDay, int admMth, int admYear,int disChDay, int disChMth, int disChYear);void setID(string);string getID();void setBirthDate(int dy, int mo, int yr);int getBirthDay();int getBirthMonth();int getBirthYear();void setDoctorName(string fName, string lName);void setDoctorSpl(string);string getDoctorFName();string getDoctorLName();string getDoctorSpl();void…Please do not give solution in image format thanku (C++) Create a Class called Pet and include the following attributes (3 string data types) Name PetType (this would be something like Dog, Cat, Bird, etc. ) Sound Constructors/Getters/Setters/Functions Constructor - 3 arguments - name, pet type, and sound Getters/Setters for all three attributes PrintPet method/function that will print the attributes such as: Name: FluffyType: CatSound: Meow Program User prompts: Name PetType (this would be something like Dog, Cat, Bird, etc. ) Sound Program requirements Main program to demonstrate the class. (Your main Method) Pet.h file (or hpp depending on your IDE) Pet.cpp file You will need to prompt the user for the Pet information to populate the Pet class attributes. Once you have the data - create a Pet and hand the variables to the 3 Argument Constructor. Output of the values of the attributes Pet instance as shown above Deliverables - Upload the following files in a zip folder that you…using JAVA Create a class called Transcript which will take the following parameters for its constructor:- 1. The UoF ID of the student 2. The full name of the student 3. The year in which the student joined 4. The student's GPA score NOTE: The class also has a class field which is a 2D array with 32 elements containing the course codes and grades obtained by the student
- create a class called tour.h it is for a company that gives tours of cities like Boston the following are the variables for this class that customers may choose: the durations of a tour are one and two hours the type of vehicles are bus and boat the daily times that tours begin are 10 am, 12 noon, and 2 pm there are four tour guides (one of them is you! and one of them is me! choose the other two (friends or family) include two constructors: one will be the default and will initialize each variable to a zero or "" the other constructor will pass arguments for each variable and assign them accordingly include your mutator and accessor functions for your tour.cpp file: display a greeting to potential customers, with your name as part of the company's name display a menu of choices for each variable, in the same order as the constructor throw exceptions for input errors after all user choices have been made, display everything in a confirmation report, like this: Duration: 2…1. Create a class called Student, with the following attributes/variables:a. studentName (String)b. studentNumber (int)sc. regYear(long)d. faculty(String)e. department(String)2. Add the following methods in Student:a. accessors and mutators for all variablesb. toString methodi. Formulate your toString so that it only shows studentName,studentNumber and faculty3. Create a class called MyFriends, with the following attributes variables:a. studentArray(Student[])4. Add the following methods in MyFriends:a. fillArrayi. Using scanner ask how many students does the user want to inputii. Capture user input for all of his friends(Of course we are assuming all your friends would be similarUWC students, go ask around and meet new friends, alsopreferably not in the same Computer Science department … ifpossible … only if possible)b. maini. Call the fillArray methodii. Count how many Computer Science studentsiii. If half or more students are Computer Science students, thendisplay “You … need more…We (your trusty instructional crew) have already designed a class called BagItems (which you can't see, of course), and it has a static function called get_item(number) where number is an index number from 0 to 19 inclusive. It will return a string indicating what that item is. So, you'd call it like this: item = BagItems.get_item(index_value) where index_value is that index number from 0 to 19 - then item will be what it actually is. Design a class called MysteryBag according to the following instructions: The class has a fully-mangled static variable called count which keeps a count of the number of bags sold. Define it as you would any static variable; reference it inside any required method or function of the class by prefixing the name with MysteryBag. - this is necessary due to the name mangling. The class has constructor that chooses five random numbers between 0 and 19, inclusive, and stores these numbers as a list internally as an instance variable, with full…