Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C programming using Quincy programming IDE Hi these are some basic C problems ne

ID: 3556645 • Letter: C

Question

C programming using Quincy programming IDE

Hi these are some basic C problems need to solve using C , using Quincy , please answer them all post answers with clear steps. Please use Quincy it is available online and easy to download. If you use some other IDE it gives out an error. Please answer them all and points guaranteed for the best answer.

Suppose we are given a table of integers, A, having m rows and n columns, and a list of integers, X, having n elements. We wish to generate a new list of integers, Y that is formed by carrying out the following operations: Write a complete C program to compute the elements of Y and print out the values of the elements of A and X, followed by the elements of Y. Use the program to process the following data:

Explanation / Answer

starting C in Quincy

Go to File -> New, then select C Source File and click OK.

A new frame should appear with an automatically chosen name (something like Text1.c, Text2.calthough the extension .c may not be displayed in the top of the frame.

Save the file to your My Documents directory using File->Save As. You should find the My Documentsfolder as a sub directory under Desktop/USERNAME where USERNAME needs to be replaced with your name.

Save the file under some name such as test.c in a directory of your choice (but only the mydocuments folder and its subdirectories will preserve your files: if you leave files on the Computer's Desktop for example, they will be deleted when you log out).

Enter a valid C-program into the file test.c such as the content of hello.c (which you can copy and paste from).

* Matrix Multiplication using function */

#include<stdio.h >

#include<conio.h>

int i,j,k;

void main()

{

int a[10][10],b[10][10],c[10][10],m,n,p,q;

void mul(int x[10][10],int y[10][10],int z[10][10],int m,int n,int p,int q);

void read(int x[10][10],int m,int n);

void display(int x[10][10], int m,int n);

clrscr();

printf("Enter the size of A Mtrix (Row and Col): ");

scanf("%d%d",&m,&n);

printf("Enter the size of B Mtrix (Row and Col): ");

scanf("%d%d",&p,&q);

if(n!=p)

{

printf("Multiplication Not Possible Please re-enter ");

printf("correct size and try again ..... ");

}

else

{

read(a,m,n);

read(b,m,n);

mul(a,b,c,m,n,p,q);

printf("A Matrix is : ");

display(a,m,n);

printf("B Matrix is : ");

display(b,m,n);

printf("C Matrix is : ");

display(c,m,n);

}

getch();

}

void mul(int x[10][10],int y[10][10],int z[10][10],int m,int n,int p,int q)

{

for (i=0;i<m;i++)

for(j=0;j<q;j++)

{

   z[i][j]=0;

   for(k=0;k<n;k++)

   z[i][j]+= x[i][k]*y[k][j];

}

}

void read(int x[10][10], int m,int n)

{

printf("Enter Matrix Value Row by Row ");

for (i=0;i<m;i++)

for(j=0;j<n;j++)

   scanf("%d",&x[i][j]);

}

void display(int x[10][10], int m,int n)

{

for (i=0;i<m;i++)

{

   for(j=0;j<n;j++)

   printf("%5d",x[i][j]);

   printf(" ");

}

printf(" ");

}