Answer:
We will SQL(Structured Query Language) designed for this specific problem to manage the data base for the library management system.This querry SQL based system will ask the user to tell the first name and this SQL based system will his full name.
Answer:
a. cd into the nested directories/ nested - level - 1 / directory using an absolute path
Explanation:
The directory is a location on the hard disk, which is also called a folder. It contains the files and also contains the other directories called sub directories.
A path to a file is merged with a slash and determines the file or directory in the operating system. An absolute path is the location file or directory from the actual file system
The directory's absolute path starts with a slash, and all slashed in the directory separates the directions.
All directions in the absolute path are written on the left side. The last name in the path may belong to the file, and the pwd command can determine the current directory.
The relative path is the location of the file. It begins with the working directory. An absolute path is unambiguous and working with deeply nested directories.
There are two commands which are used such as
- cd is used for changing directory
- pwd is used for the working directory
We easily navigate the file system with the help of an absolute path.
Answer:
The Proper codes in Line a and Line b is given below
average=Sum/3
print (" Average is = ", average)
Explanation:
In the given question it calculated the sum but the program does not calculate the average of the 3 numbers.The average of the 3 number is calculated by using average=Sum/3 statement so we add this code in Line a then After that print the value of average by using the print function so we add this code in Line b.
The following cose will be used to copy assignment operator for CarCounter
<u>Explanation:</u>
Complete Program:
#include <iostream>
using namespace std;
class CarCounter
{
public:
CarCounter();
CarCounter& operator=(const CarCounter& objToCopy);
void SetCarCount(const int setVal)
{
carCount = setVal;
}
int GetCarCount() const
{
return carCount;
}
private:
int carCount;
};
CarCounter::CarCounter()
{
carCount = 0;
return;
}
// FIXME write copy assignment operator
/* Your solution goes here */
CarCounter& CarCounter::operator=(const CarCounter& objToCopy)
{
if(this != &objToCopy)
carCount = objToCopy.carCount;
return *this;
}
int main()
{
CarCounter frontParkingLot;
CarCounter backParkingLot;
frontParkingLot.SetCarCount(12);
backParkingLot = frontParkingLot;
cout << "Cars counted: " << backParkingLot.GetCarCount();
cout << endl << endl;
system("pause");
return 0;
}
Explanation:
Exterior gateway protocol are the routing protocols that are used on the internet for exchanging routing information among the autonomous system. These autonomous systems can be gateway protocol, vector routing protocol.