Get premium membership and access questions with answers, video lessons as well as revision papers.
- State the implications of IT in the society(Solved)
State the implications of IT in the society
Date posted: June 13, 2018.
- Create a function in C++ called order() that takes two integer reference parameters. If the first argument is greater than the second argument, reverse the...(Solved)
Create a function in C++ called order() that takes two integer reference parameters. If the first argument is greater than the second argument, reverse the two arguments. Otherwise, take no action. That is, order the two arguments used to call order() so that, upon return, the first argument will be less than the second. For example, given
int x=1, y=0;
order(x, y);
following the call, x will be 0 and y will be 1.
Date posted: June 8, 2018.
- Create a function called reverse() that takes two parameters. The first parameter called str, is a pointer to a string that will be reversed upon...(Solved)
Create a function called reverse() that takes two parameters. The first parameter called str, is a pointer to a string that will be reversed upon return from the function. The second parameter is called count, and it specifies how many characters of str to reverse(). Give count a default value that, when present, tells reverse() to reverse the entire string.(use C++ language)
Date posted: June 8, 2018.
- Overload the >> and << shift operators relative to the coord class so that the following types of operations are allowed:
ob << integer
ob >> integer
make sure your operators shift the x and y values by the amount specified.(Solved)
Overload the >> and << shift operators relative to the coord class so that the following types of operations are allowed:
ob << integer
ob >> integer
make sure your operators shift the x and y values by the amount specified.
Date posted: June 8, 2018.
- Given the class below,
class three_d{
int x, y, z;
three_(int i, int j, int k)
{
x = i; y = j; z = k; }
three_() {x=0; y=0;...(Solved)
Given the class below,
class three_d{
int x, y, z;
three_(int i, int j, int k)
{
x = i; y = j; z = k; }
three_() {x=0; y=0; z=0; }
void get(in int &j, int &k){
i = x; j = y; k = z;}
};
Rewrite it so that it uses reference parameters to the operator functions.
Date posted: June 8, 2018.
- Given the following class declaration;
class dynarray {
int *p;
int size;
public:
dynarray(int s);
int &put(int i);
int get(int i);
//create operator=( function
};
fill in all the details that will create a...(Solved)
Given the following class declaration;
class dynarray {
int *p;
int size;
public:
dynarray(int s);
int &put(int i);
int get(int i);
//create operator=( function
};
fill in all the details that will create a dynamic array type. That is, allocate memory for the array, storing a pointer to this memory i p. Store the size of the array, in bytes, in size. Have put() return a reference to the specified element, and have get() return the value of a specified element. Dont allow the boundaries of the array to be overrun. Also, overload the assignment operator so that the allocated memory of each array is not accidentally destroyed when one array is assigned to another.
Date posted: June 8, 2018.
- Using a friend, show how to overload the -- relave to the coord class. Define both the prefix and postfix forms.(Solved)
Using a friend, show how to overload the -- relave to the coord class. Define both the prefix and postfix forms.
Date posted: June 8, 2018.
- Overload the coord class so it can use coord object in operations in which an integer value can be multiplied by each coordinate. Allow the...(Solved)
Overload the coord class so it can use coord object in operations in which an integer value can be multiplied by each coordinate. Allow the operations to use either order:
ob * int or int * ob.
Date posted: June 8, 2018.
- Overload the -- operator for the coord class. Create its both prefix and postfix forms
(Solved)
Overload the -- operator for the coord class. Create its both prefix and postfix forms.
Date posted: June 8, 2018.
- Overload the < and > operators relative to the coord class.
(Solved)
Overload the < and > operators relative to the coord class.
Date posted: June 8, 2018.
- Give the advantages of sequential files as a way of organizing files(Solved)
Give the advantages of sequential files as a way of organizing files
Date posted: June 7, 2018.
- Give the advantages of database-oriented approach as a way of organizing data(Solved)
Give the advantages of database-oriented approach as a way of organizing data
Date posted: June 7, 2018.
- State two standard methods for organizing data (Solved)
State two standard methods for organizing data
Date posted: June 7, 2018.
- Explain the main types of validation checks that may be used on data(Solved)
Explain the main types of validation checks that may be used on data
Date posted: June 7, 2018.
- Explain the factors determining the methods of data processing(Solved)
Explain the factors determining the methods of data processing
Date posted: June 7, 2018.
- Define a network(Solved)
Define a network
Date posted: June 7, 2018.
- Outline a typical sequence of actions carried out when an interrupt occurs in the central processing unit(Solved)
Outline a typical sequence of actions carried out when an interrupt occurs in the central processing unit
Date posted: June 7, 2018.
- Explain the types of interrupts in a computer(Solved)
Explain the types of interrupts in a computer
Date posted: June 7, 2018.
- Explain the operations provided by an operating system (Solved)
Explain the operations provided by an operating system
Date posted: June 7, 2018.
- What are the disadvantages of computers(Solved)
What are the disadvantages of computers
Date posted: June 7, 2018.
- Explain the types of system software(Solved)
Explain the types of system software
Date posted: June 6, 2018.
- What are the requirements of Multi-programming System?(Solved)
What are the requirements of Multi-programming System?
Date posted: June 6, 2018.
- What is multiprocessing?(Solved)
What is multiprocessing?
Date posted: June 6, 2018.
- What is a virtual Memory?(Solved)
What is a virtual Memory?
Date posted: June 6, 2018.
- What are the advantages of off-the-shelf software as a way of acquiring software(Solved)
What are the advantages of off-the-shelf software as a way of acquiring software
Date posted: June 6, 2018.
- What are the advantages of customized software?(Solved)
What are the advantages of customized software?
Date posted: June 6, 2018.
- What is the difference between a mouse and a trackball?(Solved)
What is the difference between a mouse and a trackball?
Date posted: June 6, 2018.
- What is a video conference?(Solved)
What is a video conference?
Date posted: June 6, 2018.
- Describe the machine cycle for every instruction in the central processing unit(Solved)
Describe the machine cycle for every instruction in the central processing unit
Date posted: June 6, 2018.
- Give the differences between random access memory(RAM)and read only memory(ROM)(Solved)
Give the differences between random access memory(RAM)and read only memory(ROM)
Date posted: June 6, 2018.