A constructor can specify the return type O a. class type O b. int O . None of the answers O d. void What does a time-sharing system need that a multiprogramming system does not? Answer: ssuming that t is an array of Student Objects (Student t[5),) and Employee *tPtr, is a pointer, which of the folowing make the pointer refers to second element in the array without rrors? O a tPtr = &t[1): O b. tPtr[ 1]=&t; O c. None of the answers O d. tPtr = &t[1):
Q: Consider the following set of tasks and their associated profits and deadlines, in a dual-core…
A: Introduction:Given a dual core processor system's task and their profit with deadlines are given we…
Q: question 4.1) Consider a system having m resources of the same type. These resources are shared by 3…
A: Resorce allocation is used to prevent deadlock.
Q: Consider the network given below: R If flooding is used to send packets from A to E, then the total…
A: Introduction : Given , network diagramFlooding is used to send packet from A to E ,hop count for A…
Q: Which of the following types could be represented by T in the code below? Select all that apply.…
A: In this question we have to discuss which of the following types could be represented by T in the…
Q: Write a SQL statement to display product name and price increases by 5 OMR only the category is…
A: Required:
Q: Explain any four different ways for reading input from the user in the command line environment?
A: Below is the answer with explanation for java language as language not specified:
Q: Who has rented movies in Japanese language? Return only the first five distinct results in…
A: The INNER JOIN keyword chooses records from both tables whose values match. The SELECT clause just…
Q: # 1 2 3 4 Question An abstract class can be instantiated as an object. From the example above, the…
A: Answer the above question are as follows
Q: Consider the following instance of relation Sells(book title, library, price): book_title The grand…
A: Below is the answer to above question. I hope this will be helpful .
Q: How would a flood-fill algorithm fill the region shown in Figure 1 using the 8 connected definitions…
A: To implement 8-connected flood fill algorithm: #include<stdio.h>…
Q: Question 9 What are the types of the y, z and w? int x = 3; auto y = x; auto&& z = x; auto&& w = 9;
A: What are the types of the y, z and w? int x = 3; auto y = x; auto&& z= x; auto&&…
Q: Let SUBSET DFA = {{M1, M2) | M1 and M2 are DFAS and L(M,) C L(M2)}. a. Show that SUBSET DFA is…
A: given data Let subset dfa = {(M1, M₂) M 1 and M 2 are df A and L (M1) ≤L (M2) solution: Show…
Q: Queries can be used within statement(s): update delete All of the answers Insert
A: A SQL is a Structured Query Language. It uses queries to create database and extract information…
Q: 3. Write a code that takes two float numbers from the user and then print the sum of these 2…
A: As there is no programming language mentioned so the question is attempted in c language.
Q: justifies it. 1. ((A v B) ɔ C) 2. ((C v B) ɔ (A 5 (D = E))) 3. (A · D) .:(D = E) 4. A •…
A: It is defined as the process of finding answers for the complex calculation that may involve numbers…
Q: 4) For the grammar with V = {0, 1, A, B, S}, T = {0, 1}, and the productions S → 0A, S → 1B, S → X,…
A: I have given an answer in step 2.
Q: What will be the qualities of this SRS (Univ Management System SRS)
A: A comprehensive overview of a programming application to be built with its functional and…
Q: Draw a graph and apply any graph traversing algorithm, clearly mentioning the steps.
A: Answer: We apply BFS (Breadth First Traversal) for graph traversal algorithm. Firstly a BFS is an…
Q: PROBLEM 3 Find the mininmized DFA from the following transition table 8 a b B A C C * D A E F G B
A: Step 1
Q: onsider the following instructions.Assume that the probability that the jump struction will be taken…
A: It is defined as transfers the program sequence to the memory address given in the operand based on…
Q: W 9. U = Document1 - Microsoft Word File Home Insert Page Layout References Mailings Review View X…
A: NOTE: IN MULTIPLE QUESTION WE ARE ADVISED TO DO ONLY ONE QUESTION. 2. (a)Z||(X&&(Y||Z)) is…
Q: Select one: a. None of the option. b. Provides communication to the user. c. Is unnecessary. d.…
A: Please find the answer below
Q: What does the Accumulator do? Stores the data retrieved from memory Stores the address of the next…
A: The central processing unit (CPU) of a computer is a piece of hardware that carries out the…
Q: Suppose list.add("Red") is an expression for adding an element to the list ArrayList. Which is the…
A: According to the question the array list is used for to add the list by using data type which type…
Q: Given the last fragment size is 341.0 bytes which includes 125 of header bytes. Also given, the MTU…
A: As per the answering guidelines, solving the first question completely. Q1. A. Data size of last…
Q: Which operator should you use to find NULL values?
A: OPERATOR: The operator which is used to check the NULL values is IS NULL as this operator checks…
Q: How good is Optical Fibre compared to DSL in networks?
A: Introduction :Here we have asked that why optical fibres are better than DSL.
Q: Write a random dice program in C++ requirements: -user selects number of dices -user can select up…
A: C++ used to answer this question
Q: Task 22: KimTay Pet Supplies is considering discounting the price of all items by 10 percent. List…
A: Select Item_Id , description ,Price , Price*(1-0.10) AS [Discount Price ] from Item ;
Q: Rewrite the age = age + 1; statement using an arithmetic assignment operator.
A: Required:
Q: The following figure is part of a university database. LNAME and FNAME stands for last name and…
A: Since you have posted a question with multiple sub-parts, according to the company's policy we will…
Q: Suppose you are making an SRS for University Management System. Mention any 5 requirements for this
A:
Q: The date used in the answer is not the date used in the question. INCORRECT.
A: The Correct code is given below with output screenshot
Q: PROBLEM 3 Let G be a grammar with P given by: S - aB | bA A a| aS | bAA B -b| bS | aBB 1) For the…
A: Step 1 The answer is given in the below step by step;
Q: You wish to access the web page "www.discord.com". Since you are visiting it for the first time, the…
A: Given Data : Number of DNS visits = 3 Time to access the website after getting IP address with…
write the correct option for all the questions given.
Step by step
Solved in 3 steps
- Write the program of object orientation programming c++. Write a program with a class that contains an array of integers. Initialize the integer array in the constructor of the class. Then create two friend functions to the class to find the largest and smallest integers in the array. (One function should be global)Create a destructor that sets all of the elements in the array to 0.write a c++ program to define a class for a calculator with data member as number1 and number2(both as double) and methods as add(),sub(),mul(),div().create an array of 5 objects of calculator.use parameterized constructor to initialize the values.display output of all four arthematic operations.Implement a program for the class Hospital. 1) The class Hospital has two data members, a string name and a dynamic array of strings patients. 2) Implement all functions required to create, read, modify, duplicate and copy objects without memory leaks or corruption. 3) Implement all functions required to append passenger names to the dynamic array of patients.
- Part 2. Library Class Implement a class, Library, as described in the class diagram below. Library must implement the Comparable interface. The compareTo() method must compare the branch names and only the branch names. The comparison must be case insensitive. The equals() method must compare the branch names and only the branch names. The comparison must be case insensitive. Be sure to test the equals() and compareTo() methods before proceeding. Library - state: String - branch: String - city: String - zip: String - county: String - int squareFeet: int - int hoursOpen: int - int weeksOpen: int + Library(state: String, branch: String, city: String, zip: String, county: String, squareFeet: int, hoursOpen: int, weeksOpen: int) + getState(): String + getBranch(): String + getCity(): String + getZip(): String + getCounty(): String + getSquareFeet(): int + getHoursOpen(): int + getWeeksOpen(): int + setState(state: String): void + setBranch(branch: String):void +…Using the scenario of Object oriented programming oop Q.A designer in 3D graphics company wants to design a matrix as a two-dimensional array. The size of 2D array could be the last two digit of arid number. Initially he creates a class matrix that provides the member function to check that no array index is out of bounds. Make the member data in the matrix class a 10-by-10 array. A constructor should allow the programmer to specify the actual dimensions of the matrix (provided they’re less than 10 by 10). The member functions that access data in the matrix will now need two index numbers: one for each dimension of the array. Here’s what a fragment of a main() program that operates on such a class might look like: If my Arid Number is 20-Arid-254 then: // in case of zero consider next digit matrix m1(5, 4); // define a matrix object int temp = 12345; // define an int value m1.putel(7, 4, temp); // insert value of temp into matrix at 7,4 temp = m1.getel(7, 4); // obtain value…Create a class employee with the data members,name,id and salary as private data member . Create array of objects for four employee.compare their salary using operator overloading,and display the records of the student who is getting less salary. By c++ language.
- Computer Science * must be done in java write a copy constructor for the following member variables To the following snippet of code, write the simplest way of how a copy constructor would look. import java.util.ArrayList; public class Student { String name; int id; ArrayList grades; //Copy Constructor public Student (Student original)Please use java Part 2. Library Class Implement a class, Library, as described in the class diagram below. Library must implement the Comparable interface. The compareTo() method must compare the branch names and only the branch names. The comparison must be case insensitive. The equals() method must compare the branch names and only the branch names. The comparison must be case insensitive. Be sure to test the equals() and compareTo() methods before proceeding. Library - state: String - branch: String - city: String - zip: String - county: String - int squareFeet: int - int hoursOpen: int - int weeksOpen: int + Library(state: String, branch: String, city: String, zip: String, county: String, squareFeet: int, hoursOpen: int, weeksOpen: int) + getState(): String + getBranch(): String + getCity(): String + getZip(): String + getCounty(): String + getSquareFeet(): int + getHoursOpen(): int + getWeeksOpen(): int + setState(state: String): void + setBranch(branch:…FOR JAVA Write an API, an implementation and a typical client code for a Multiple Counter abstract data type which can act like multiple independent counters. Your implementation should not use or contain multiple instances of another Counter type, you should host the necessary data representation directly in your implementation. The constructor must take a parameter which indicates how many counters will be hosted in the object. There should be an instance method which increments the value of the counter specified by the integer index passed as argument. There should be an instance method which decrements the value of the counter specified by the integer index passed as argument, but it should not let the counter to take a negative value, a counter with value 0 should stay the same (without any error) if decrement is called. There should be an instance method which returns the value of a counter specified by the integer index passed as argument. On your client code; ▪…
- Implement an application in C++ to maintain student management system using object oriented paradigm. Define class for library considering the followings: a. Enlist data members and methods with access specifies. b. Enlist constant and static members of the class. c. Specify interface of the class with user. d. Specify constructors and destructor. e. Methods for shallow and deep copy constructor. Your program should maintain the record of 30 studentsIn C++, write a Employee class with id, name and salary; declare 3 dynamic objects (pointer and new keywords) and push them to the vector and print the vector.Please implement the follwoing problem in C++: Implement a symbol balance checker function for the Pascal programming language. Pascal allows for the following pairs: {}, (), [], begin end . All programs will begin with the word "begin" and end with the word "end". Your function should receive an ifstream object which is already open and will return true, all of the symbols match, or false, they do not. You do not have to worry about comments in the program but you do have to avoid other parts of the program's code such as assignment statements (x=y) and other expressions.