Answer:
The answer is A4B₁₆ = 2635₁₀ = 101001001011₂
Explanation:
To convert from hexadecimal base system to binary base system, first you can do an intermediate conversion from hexadecimal to decimal using this formula:
where position of the x₁ is the rightmost digit of the number and the equivalents hexadecimal numbers to decimal:
- A = 10.
- B = 11.
- C = 12.
- D = 13.
- E = 14.
- F = 15.
A4B₁₆ = A*16²+4*16¹+B*16⁰ = 2560 + 64 + 11 = 2635₁₀
Now, you have the number transformed from hexadecimal to decimal. To convert the decimal number 2635 to binary: Divide the number repeatedly by 2, keeping track of each remainder, until we get a quotient that is equal to 0:
2635 ÷ 2 = 1317 + 1;
1317 ÷ 2 = 658 + 1;
658 ÷ 2 = 329 + 0;
329 ÷ 2 = 164 + 1;
164 ÷ 2 = 82 + 0;
82 ÷ 2 = 41 + 0;
41 ÷ 2 = 20 + 1;
20 ÷ 2 = 10 + 0;
10 ÷ 2 = 5 + 0;
5 ÷ 2 = 2 + 1;
2 ÷ 2 = 1 + 0;
1 ÷ 2 = 0 + 1;
Now, construct the integer part base 2 representation, by taking the remainders starting from the bottom of the list:
2635₁₀ = 101001001011₂
Answer:
#include<iostream>
#include<cstring>
#include <algorithm>
using namespace std;
class Student{
public:
string name;
int rollNo;
Student(){
}
Student(string n, int r){
name = n;
rollNo = r;
}
};
class ClassRoom{
public:
Student stud[10];
int count;
ClassRoom(){
count = 0;
}
void addStudent(string str,int roll){
Student s(str,roll);
stud[count++] = s;
}
Student * getAllStudents(){
return stud;
}
};
int main()
{
string name;
char temp[20];
int rollNo, N, i;
Student * students;
ClassRoom classRoom;
i=0;
while(getline(cin, name) && cin.getline(temp,20)&&i<10){
rollNo = atoi(temp);
classRoom.addStudent(name, rollNo);
i++;
}
N = i;
students = classRoom.getAllStudents();
for(int i=0 ; i < N; i++){
cout << (students+i)->rollNo << " - " << (students+i)->name;
if(i<N-1)
cout<<endl;
}
return 0;
}
Explanation:
- In the addStudent method, increment the counter and as the value of variable s to the the stud array.
- In the getAllStudents method, return all the students.
- Finally in the main method, display the name and roll no. of students.
Answer:
you would right click on the workbook tab you want to change the name on, then you would click Edit Name.
Answer:
I guess the year it was found that's it
Yahoo- January 1994
Yippy- 2004 under the name Clusty but then was sold in 2010 to a company now called Yippy