
Explanation of Solution
a)
Converting 137 base 10 to base 3 using subtraction method:
Step 1:
Check the possibility of multiplying any integer with the powers of 3 which may result in lower number than 137. The number that can be subtracted from the given number 137 with the power of 3 is 81. The number 81 is less than 137. So subtract 81 from 137.
Step 2:
The number that can be subtracted from the given number 56 with the power of 3 is 27 and it should be multiplied by 2 in order to get the nearest number of 56. The number 54 is less than 56. So subtract 56 from 54.
Step 3:
Take 3 to the power of 2 that is 9. The number 9 is greater than 2. So make the value as 0.
Step 4:
Take 3 to power of 1 that is 3
Explanation of Solution
b)
Converting 248 base 10 to base 5 using subtraction method:
Step 1:
Check the possibility of multiplying any integer with the powers of 5 which may result in lower number than 248. The number that can be subtracted from the given number 248 with the power of 5 is 125. The number 125 is less than 248. So subtract 125 from 248.
Step 2:
The number that can be subtracted from the given number 123 with the power of 5 is 25 and it should be multiplied by 4 in order to get the nearest number of 123. The number 100 is less than 123. So subtract 100 from 123.
Step 3:
The number that can be subtracted from the given number 23 with the power of 5 is 5 and it should be multiplied by 4 in order to get the nearest number of 23
Explanation of Solution
c)
Converting 387 base 10 to base 7 using subtraction method:
Step 1:
Check the possibility of multiplying any integer with the powers of 7 which may result in lower number than 387. The number that can be subtracted from the given number 387 with the power of 7 is 343. The number 343 is less than 387. So subtract 343 from 387.
Step 2:
Take 7 to power of 2 that is 49. The number 49 is greater than 44. So make the value as 0.
Step 3:
The number that can be subtracted from the given number 44 with the power of 7 is 7 and it should be multiplied by 6 in order to get the nearest number of 44. The number 42 is less than 44. So subtract 42 from 44
Explanation of Solution
d)
Converting 633 base 10 to base 9 using subtraction method:
Step 1:
Check the possibility of multiplying any integer with the powers of 9 which may result in lower number than 633. The number that can be subtracted from the given number 633 with the power of 9 is 81 and it should be multiplied by 7 in order to get the nearest number of 633. The number 567 is less than 633. So subtract 567 from 633.
Step 2:
The number that can be subtracted from the given number 66 with the power of 9 is 9 and it should be multiplied by 7 in order to get the nearest number of 66. The number 63 is less than 66. So subtract 63 from 66

Want to see the full answer?
Check out a sample textbook solution
Chapter 2 Solutions
Essentials of Computer Organization and Architecture
- In a shopping cart, there are various items, which can either belong to the category of household items or electronic items. The following UML diagram illustrates the relationship between items, household items, and electronic items. //Implementation Class public class ShoppingCart{ public static void main(String[] args){ final int MAX_ITEM = 50; Item cart = new Item[MAX_ITEM]; addItem(cart); // populate the item array printItem(cart); } } Considering that all the data definition classes and the implementation class are complete, which of the following Object-Oriented Programming (OOP) concepts do you need to use in the above context? i) Polymorphism ii) Method Overloading iii) Method Overriding iv) Dynamic Binding v) Abstract Class Explain, using course terminology, how you would use any of the above concepts to model the given scenario.arrow_forwardAnswer this JAVA OOP question below: An Employee has a name, employee ID, and department. An Employee object must be created with all its attributes. The UML diagram is provided below: - name: String - employeeId: String - department: String + Employee(name: String, employeeId: String, department: String) + setName(name: String): void + setEmployeeId(employeeId: String): void + setDepartment(department: String): void + getName(): String + getEmployeeId(): String + getDepartment(): String + toString(): String A faculty is an Employee with an additional field String field: rank public class TestImplementation{ public static void main(String[] args){ Employee[] allEmployee = new Employee[100]; // create an employee object with name Tom Evan, employee ID 001 and department IST and store it in allEmployee // create a faculty object with name Adam Scott, employee ID 002, department IST and rank Professor and store it in allEmployee } }arrow_forwardPlease answer this JAVA OOP question that is given below: An Employee has a name, employee ID, and department. An Employee object must be created with all its attributes. The UML diagram is provided below: - name: String - employeeId: String - department: String + Employee(name: String, employeeId: String, department: String) + setName(name: String): void + setEmployeeId(employeeId: String): void + setDepartment(department: String): void + getName(): String + getEmployeeId(): String + getDepartment(): String + toString(): String A faculty is an Employee with an additional field String field: rank Assuming the Employee class is fully implemented, define a Professor class in Java with the following: A toString() method that includes both the inherited attributes and the specializationarrow_forward
- Please answer JAVA OOP question below: An Employee has a name, employee ID, and department. An Employee object must be created with all its attributes. The UML diagram is provided below: - name: String - employeeId: String - department: String + Employee(name: String, employeeId: String, department: String) + setName(name: String): void + setEmployeeId(employeeId: String): void + setDepartment(department: String): void + getName(): String + getEmployeeId(): String + getDepartment(): String + toString(): String A faculty is an Employee with an additional field String field: rank Assuming the Employee class is fully implemented, define a Professor class in Java with the following: Instance variable(s) A Constructorarrow_forwardDevelop a C++ program that execute the operation as stated by TM for addition of two binary numbers (see attached image). Your code should receive two binary numbers and output the resulting sum (also in binary). Make sure your code mimics the TM operations (dealing with the binary numbers as a string of characters 1 and 0, and following the logic to increase the first number and decreasing the second one. Try your TM for the following examples: 1101 and 101, resulting 10010; and 1101 and 11, resulting 10000.arrow_forwardI need to define and discuss the uses of one monitoring or troubleshooting tool in Windows Server 2019. thank youarrow_forward
- I would likr toget help with the following concepts: - Windows Server features - Windows Server versus Windows 10 used as a client-server networkarrow_forwardI need to define and discuss the uses of one monitoring or troubleshooting tool in Windows Server 2019. thank youarrow_forwardWhy is planning for the retirement system and transition critical?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





