Electrical and Computer Engineering Homework Solutions

gcc c: how do I impliment and reference a 2d array of structs

I am to implement an array that holds a color image. he image has 640x480 pixels. So, I need a 2-d array. Each pixel has 3 colors, red green blue. The values for each color is an integer between 0 and 255. So, I need an array of structs to hold the data. I am having trouble with the struct: typedef struct tnode { in ...continues

C linked list manipulations

I have to insert, delete, print all, and print specific members of a linked list. typedef struct tnode { int wayptnum; double x; double y; double heading; double distance; struct tnode *next; ...continues

sorting out C linked list/pointer errors

This is a program to insert, delete, print, printall to a list of waypoints using linked lists and pointers in C. My biggest problem is prototyping a function that has a cast that be will typedefined in Main... how do I do it? I've resorted to trial and error to try and find the correct syntax but that's gotten me anywhere ...continues

linked list program -> data is not being read in correctly?

(the program is supposed to insert, delete, print, and print all members of a link list) Please help me sort this out. This is my program which is supposed to read from a file: command, waypoint number, x coord, y coord. It calls a function based on the incoming command. The program compiles and runs without a formal err ...continues

Please help debug

I just included the relavent portions of the program. My errors seem to be in my enqueue function. The errors are syntactical. I need a second set of eyes to determine where the errors are. Two parse errors and two data misrepresentations... Thank you! typedef struct Data /*struct*/ { unsigned char byte; s ...continues

8051_C program definition

Fully explain what the program does by providing manual walk-through i.e. Step through the program by hand indicating state of variables, inputs and outputs at each statement. Give a general overview of what the program does using Layman terms. (See attached word document for program details)

Loop Unrolling Codes

Please check my work and let me know if I did this correctly. If not please show what is wrong and give me the correct answer and the proper way to get the answer. Question: Which are/is the 2 times loop unrolling code for the loop below? Loop: ADD R1, R2, R3 SUBI R4, R4, 1 BNEZ R4, Loop a) Loop: S ...continues

The 8086 Microprocessor Operating Systems and System Interrupt services

Please help me write a program that will display the hex code for any key, or key combination, that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the screen. This code must be for the 8086 chip and work with the A86 asse ...continues

8086 Microprocessor Operating Systems and System Interrupt Services

If your computer is equipped with a cga adapter or above, write the message "this is page1" on page 1, "this is page 2" on page 2 and so on until the message "this is page 7" is written to page 7. center the messages on the pages in exactly the same place. hav the program alternate the messages and determine if you can detec ...continues

Browse