skip to Main Content
The smarter way
to do assignments.

Please note that this is just a preview of a school assignment posted on our website by one of our clients. If you need assistance with this question too, please click on the Order button at the bottom of the page to get started.

 
Project Description:
#include 
#include 
struct node {
int data;
struct node *next;
};
int main() {
struct node *first, *p, *first2, *p2;
int value;
    first = 0;
scanf (“%d”, &value);
while (value != -9999){
        p = first;
        first = (struct node *) malloc (sizeof(struct node));
        first -> data = value;
        first -> next = p;
scanf(“%d”, &value);
    }
for (p = first; p != 0; p = p -> next){
printf(“%d “, p -> data);
    }
    first2 = 0; p2 = 0;
for (p = first; p != 0; p = p -> next){
        p2 = first2;
        first2 = (struct node *) malloc (sizeof(struct node));
        first2 -> data = p -> data;
        first2 -> next = p2;
    }
for (p2 = first2; p2 != 0; p2 = p2 -> next){
printf(“%d “, p2 -> data);
    }
printf(“n”);
return 0;
}
Declare first2 and p2 to be local variables along with the other locals as follows:
struct node *first, *p, *first2, *p;
int value;
Translate the complete program to pep/9 assembly language.

GET HELP WITH THIS ASSIGNMENT TODAY

Clicking on this button will take you to our custom assignment page. Here you can fill out all the additional details for this particular paper (grading rubric, academic style, number of sources etc), after which your paper will get assigned to a course-specific writer. If you have any issues/concerns, please don’t hesitate to contact our live support team or email us right away.

How It Works        |        About Us       |       Contact Us

© 2018 | Intelli Essays Homework Service®