The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.
Answer:
Explanation:
A computer is a machine that can be programmed to accept data (input), process it into useful information (output), and store it away (in a secondary storage device) for safekeeping or later reuse. The processing of input to output is directed by the software but performed by the hardware.
Answer:
1. Generally Linkedlist is used, but you can also use the queue. Hence both linked list are queue are correct options. However, treeset is sorted and hashset is not sorted, and hence we cannot make use of the treeset. Similarly the stack cannot as well be used as a Hashset.
2. D. Additional cells in the same hashset are examined and the index is incremented by a fixed value each time.
Explanation:
The 2 deals with the linear probing, and what is meant as option in 2 is what we know as linear probing in hashset, and we do have quadratic probing and double probing as well.
Answer:
here is code in C++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
// variables to store number of each video
int new_video,old_video;
double total_charge;
cout<<"Please enter number of new video:";
// read number of new video
cin>>new_video;
cout<<"Please enter number of old video:";
// read number of old video
cin>>old_video;
// total change
total_charge=(3.0*new_video)+(2.0*old_video);
cout<<"total cost is: "<<total_charge<<endl;
return 0;
}
Explanation:
Declare two variables "new_video" and "old_video" to store the number of each type of video.Read the value of both from user.Then calculate total charge by multiply 3.0 to number of new video & 2.0 to number of old video and add both of them. This will be the total charge.
Output:
Please enter number of new video:4
Please enter number of old video:6
total cost is: 24