Question: In the Pep / 9 Source code window, write a Pep / 9 assembly language ( Source code ) program that correspond to the following

In the Pep/9 Source code window, write a Pep/9 assembly language (Source code) program that correspond to the following C program (20 points)
Int exam1, exam2, exam3, exam4, sum, avg;
Int main()
{
scanf(%d %d %d %d, &exam 1, &exam,2 &exam3, &exam4)
Sum =exam1+exam2+exam3+exam4;
Avg = sum /4;
printf(sum =%d
,sum);
printf(average =%d
, avg);
Return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!