Answer:
See the code in the Eplanation
Explanation:
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
int main() {
int firstNumber;
int secondNumber;
int thirdNumber;
cout<< "Enter the firstNumber: ";
cin >> firstNumber;
cout << "Enter the secondNumer: ";
cin >> secondNumber;
cout << "Enter the thirdNumber: ";
cin >> thirdNumber;
int upperbound= abs(firstNumber-secondNumber);
int lowerbound= abs(secondNumber-thirdNumber);
if (lowerbound==upperbound){
cout << "The Three Numbers are Equally spaced";
}
else{
cout << "The Three Numbers are NOT Equally spaced";
}
}
Answer:
apple-1 personal computer original release 1976
Explanation:
Answer:
# include<iostream>
#include<conio.h>
using namespace std;
void main ()
{
float r, area;
cout<<"Enter the radius of the circle";
cin>>r;
area = 3.14 * (r^2);
cout<<"\nArea of Circle= "<<area;
getch();
}
Explanation:
In this program, float is selected as data type for both radius and area. As, both the value can be in decimal. r is the name of radius variable. area represents the area of circle. By using cout and cin enter the value of radius. By applying formula, calculate the area and shown on output.
Answer:
A. 31 bits
B. 13 bits, 18 bits
C. 256k
Explanation:
A.
We have total size of physical memory as 2gb
This means that 2¹ x 2³⁰
Using the law of indices,
= 2³¹
So physical address is equal to 31 bits
B.
We get page size = 8kb = 2³
1 kb = 2¹⁰
2³ * 2¹⁰ = 2¹³
So page replacement = 13 bits
Page frame number
= physical address - replacement bits
= 31 - 13
= 18 bits
C.
The number of frames is given as
2¹⁸ = 2⁸ x 2¹⁰ = 256K
So number of frames = 256K
D
Logical add space is 256K
Page size= physical pages = 8kb
Logical address layout= 28biys
Page number = 15 bits
Displacement = 12 bits
256k/8k = 32 pages in address space process
Answer:
A true
Explanation:
Speeding leads to an increase in the degree of crash severity, possibly resulting in more fatalities or injuries. More damage is caused to the vehicles involved at higher speeds, increasing likelihood vehicle will not be drivable after a crash.