
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 ORGAN..-TEXT
- We are doing a custom JSTL custom tag to make display page to access a tag handler. Write two custom tags: 1) A single tag which prints a number (from 0-99) as words. Ex: <abc:numAsWords val="32"/> --> produces: thirty-two 2) A paired tag which puts the body in a DIV with our team colors. Ex: <abc:teamColors school="gophers" reverse="true"> <p>Big game today</p> <p>Bring your lucky hat</p> <-- these will be green text on blue background </abc:teamColors> Details: The attribute for numAsWords will be just val, from 0 to 99 - spelling, etc... isn't important here. Print "twenty-six" or "Twenty six" ... . Attributes for teamColors are: school, a "required" string, and reversed, a non-required boolean. - pick any four schools. I picked gophers, cyclones, hawkeyes and cornhuskers - each school has two colors. Pick whatever seems best. For oine I picked "cyclones" and red text on a gold body - if…arrow_forwardI want a database on MySQL to analyze blood disease analyses with a selection of all its commands, with an ER drawing, and a complete chart for normalization. I want them completely.arrow_forwardAssignment Instructions: You are tasked with developing a program to use city data from an online database and generate a city details report. 1) Create a new Project in Eclipse called "HW7". 2) Create a class "City.java" in the project and implement the UML diagram shown below and add comments to your program. 3) The logic for the method "getCityCategory" of City Class is below: a. If the population of a city is greater than 10000000, then the method returns "MEGA" b. If the population of a city is greater than 1000000 and less than 10000000, then the method returns "LARGE" c. If the population of a city is greater than 100000 and less than 1000000, then the method returns "MEDIUM" d. If the population of a city is below 100000, then the method returns "SMALL" 4) You should create another new Java program inside the project. Name the program as "xxxx_program.java”, where xxxx is your Kean username. 3) Implement the following methods inside the xxxx_program program The main method…arrow_forward
- CPS 2231 - Computer Programming – Spring 2025 City Report Application - Due Date: Concepts: Classes and Objects, Reading from a file and generating report Point value: 40 points. The purpose of this project is to give students exposure to object-oriented design and programming using classes in a realistic application that involves arrays of objects and generating reports. Assignment Instructions: You are tasked with developing a program to use city data from an online database and generate a city details report. 1) Create a new Project in Eclipse called "HW7”. 2) Create a class "City.java" in the project and implement the UML diagram shown below and add comments to your program. 3) The logic for the method "getCityCategory" of City Class is below: a. If the population of a city is greater than 10000000, then the method returns "MEGA" b. If the population of a city is greater than 1000000 and less than 10000000, then the method returns "LARGE" c. If the population of a city is greater…arrow_forwardPlease calculate the average best-case IPC attainable on this code with a 2-wide, in-order, superscalar machine: ADD X1, X2, X3 SUB X3, X1, 0x100 ORR X9, X10, X11 ADD X11, X3, X2 SUB X9, X1, X3 ADD X1, X2, X3 AND X3, X1, X9 ORR X1, X11, X9 SUB X13, X14, X15 ADD X16, X13, X14arrow_forwardOutline the overall steps for configuring and securing Linux servers Consider and describe how a mixed Operating System environment will affect what you have to do to protect the company assets Describe at least three technologies that will help to protect CIA of data on Linux systemsarrow_forward
- Node.js, Express, Nunjucks, MongoDB, and Mongoose There are a couple of programs similar to this assignment given in the lecture notes for the week that discusses CRUD operations. Specifically, the Admin example and the CIT301 example both have index.js code and nunjucks code similar to this assignment. You may find some of the other example programs useful as well. It would ultimately save you time if you have already studied these programs before giving this assignment a shot. Either way, hopefully you'll start early and you've kept to the schedule in terms of reading the lecture notes. You will need to create a database named travel using compass, then create a collection named trips. Use these names; your code must work with my database. The trips documents should then be imported unto the trips collection by importing the JSON file containing all the data as linked below. The file itself is named trips.json, and is available on the course website in the same folder as this…arrow_forwardusing r languagearrow_forwardusing r languagearrow_forward
- using r languagearrow_forwardWrite a short paper (1 page/about 500 words) summarizing what we as System Admins can do to protect the CIA of our servers. Outline the overall steps for configuring and securing Linux servers Consider and describe how a mixed Operating System environment will affect what you have to do to protect the company assets Describe at least three technologies that will help to protect CIA of data on Linux systems Required Resourcesarrow_forwardusing r language Estimate the MSE of the level k trimmed means for random samples of size 20 generated from a standard Cauchy distribution. (The target parameter θis the center or median; the expected value does not exist.) Summarize the estimates of MSE in a table for k= 1,2,...,9arrow_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





