Answer:
Following are the solution to the given points:
Explanation:
The Memory address value = 64 bit
The Size of the word
In point a:
The offset size ( in 1-word block size)
The Index size (as block number =512)
Tag size
In point b:
The offset size
The Index size
Tag size
In point c:
The Ratio at point a
The Ratio at point b
Answer:
The answer to this question is given below in the explanation section
Explanation:
The ctrl+shift+e command is used to select track changes in a document.
Track Changes is a feature that is used in MS word or in wordprocessing application to track the changes inserted or modified by different users in a document. This helps the user to know where new text inserted or modified. Track changes help users to know new updates being inserted by other users in the document.
Furthermore, you can access the track changes features in the word file under the review tab. where you can find other related settings and features related to the track changes.
The predecessor for the Internet is ARPANET . ARPANET was developed under the direction of the U.S. Advanced Research Projects Agency (ARPA) and first published in 1967.It was <span>designed to facilitate communication between ARPA computer terminals .</span>This network was the first fully operational packet-switching network.
Answer:
void mn(int m, int n){
int sum = 0;
int count = 0;
if(m<n){
for(int i = m;i<=n;i++){
sum+=i;
}
}
else{
for(int i = n;i<=m;i++){
sum+=i;
}
}
count = abs(m - n)+1;
cout<<"Sum: "<<sum<<endl;
cout<<"Average: "<<(float)sum/count;
}
Explanation:
This line defines the method
void mn(int m, int n){
This initializes sum and count to 0
int sum = 0;
int count = 0;
This checks if m is less than n
if(m<n){
This iterates from m to n and calculates the sum of numbers between this interval
<em> for(int i = m;i<=n;i++){</em>
<em> sum+=i;</em>
<em> }</em>
<em> }</em>
If otherwise,
else{
This iterates from n to m and calculates the sum of numbers between this interval
<em> for(int i = n;i<=m;i++){</em>
<em> sum+=i;</em>
<em> }</em>
<em> }</em>
This calculates the range from m to n using absolute function
count = abs(m - n)+1;
This prints the calculated sum
cout<<"Sum: "<<sum<<endl;
This calculates and prints the average
cout<<"Average: "<<(float)sum/count;
}
<em>See attachment for complete program that includes the main (in c++)</em>
Answer:
To collect data from an user you need to use an input
Explanation:
Therefore,
firstName = input("First name: ")
ageInYears = input("Age in Years: ")
weightInKilograms = input("Weight in Kilograms: ")
and then print all the values:
print(firstName, int(ageInYears), float(weightInKilograms))