No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I am trying to write a program that either zero extends or sign extends a 16 bit input to a 32 bit output, what exactly is meant by sign extending a number? I believe zero extending would be adding 16 0s in the 16 Most Significant bits, Is sign extending … |
|
hey guys, as well all know, C rounds downwards, anyway, i'm trying to write a function that would make it round upwards, and got something like this: [code=c] int round_up(float x) { int y = 100*x; double z = 100*x-y; if(z>0) y = (x+0.01)*100; else y = x*100; return y; … |
|
Ok, i snapped of little usb port on the hard drive so now, i can't attach a usb cable to it. I tried opening up the hard drive and thought i could connect it to my computer using SATA cables, but however it doesn't seem to have any place i … |
|
hi im trying to write some code for a priority queue using an unsorted array..it should be easy but i have a few concerns about it.. say if i have a graph of something like this: node 0, priority 100 node 1, priority 50 node 2, priority 200 node 3, … |
|
hi all, im doing a project where i have to implment a rpg game... i have a class called item and the constructor looks something like public Item(int x, int y, String image_path, boolean z) { map_x = x; map_y = y; image = new Image (image_path); pickup = z; … |
|
Hi i have a program that outputs a bunch of hexadecimal numbers. Here is a example: 18 3048 ffff8007 The thing is i want all the outputs to be 8 digits long, so i want the out put to be something like: 00000018 00003048 ffff8007 so yea basically i just … |
|
hi guys im working on making a program where u get given a machine code. The first 6 bits are the opcode, the next 5 bits is the source register, the next 5 bits is destination register and the last 16bits is the immediate. What we have to do is … |
|
Hi im doing a project and i need to draw up a ER diagram for a SNS with a search engine that returns results about movie reviews. I was just thinking about the the entities involved and i thought ok..so the 3 main attributes should be User, Search, and Movie … |
|
hi all, i got a program that calculates the fibonacci numbers and prints them out, looks something like this: main: li $s0, 0 li $s1, 1 loop: slt $t0, $s1, $s0 bgtz $t0, done addu $s2, $s0, $s1 move $s0, $s1 move $s1, $s2 li $v0, 1 move $a0, $s2 … |
|
ok i know this is the command for reading an integer but where does it read the integer from? I got a factorial program, heres the beginning of it: [ICODE] .data prompt: .asciiz "you want n! for which value of n?\n" .align 4 n: .space4 i: .word 1 fact: .word … |
|
Hi i have a CSV file that looks something like this: Name ASX_Code Date SharePrice ACACIA RESOURCES AAA 19990630 1.75 ACACIA RESOURCES AAA 19980630 1.72 ABSOLUTE RETURN FUND UNIT AAB 20040625 0.9 ABSOLUTE RETURN FUND UNIT AAB 20030630 0.85 AUSTRALIAN AGRICULT. AAC 20070629 2.95 AUSTRALIAN AGRICULT. AAC 20060630 1.935 AUSTRALIAN … |
|
hi, im learning to use python at the moment and i came over a question where it gives me a large csv file with names of companies and how much they are earning and i was asked to find the top 10 companies..i orignially did this: [code] import urllib import … |