subject
Computers and Technology, 02.02.2021 05:10 dajahp

Write a program using any high level language (Java, Python, C/C , etc) to help you convert from binary, octal, hexadecimal and decimal numbers. Your program would ask the users to enter a number in binary or decimal ask the users what type of number it is (binary or decimal) check to make sure the number is legal (a decimal number contains only 0-9). If the number if not legal, it should error out! If the number is legal, convert the number to the other 3 types To challenge yourself, your program should also handle floating numbers although this step is NOT required. NOTE: As always, properly document your program. Add in headers. Add in comments. You CANNOT use pre-defined built in functions to do the conversion such as the followings and others!! Integer. toString(n,8) // decimal to octal Integer. toString(n,2) // decimal to binary Integer. toString(n,16) //decimal to Hex Your program needs to mimic the algorithm we discussed in class. Use this addition/subtraction method or the division/multiplication method

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
question
Computers and Technology, 22.06.2019 07:00
You will be given two character arrays of the same size, one will contain a number of ships. ships will move around the character array based on which way they are facing and the route they are on. routes are given in the other array. the route consists of '-' and '|' for straight paths, '\' and '/' for curves, and '+' for intersections. there are ships on these routes. ships always face a direction, '^' for up, '> ' for right, 'v' for down, and '< ' for left. any time the ships hit a '\' or a '/' it will turn as you would expect a ship to turn (e.g. a '^' that moves into a '/' will turn right). at an intersection, ships will always continue straight through. all ships move at the same speed, ships take turns moving and all ships move during one 'tick'. the one in the most top left goes first, followed by those to its right, then the ones in the next row. it iterates along the rows and then down the columns. each ship moves one space on its turn moving along the route. your function needs to return the position of the first collision between two ships and the number of ticks before the crash occurred.
Answers: 2
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
You know the right answer?
Write a program using any high level language (Java, Python, C/C , etc) to help you convert from bin...
Questions
question
Mathematics, 27.08.2019 00:30
question
Social Studies, 27.08.2019 00:30
Questions on the website: 13722360