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

The NEWTECH university prepares an admission list for Computer Science degree pr

ID: 3704485 • Letter: T

Question

The NEWTECH university prepares an admission list for Computer Science degree prog using an Admission Point Score (APS) system. A student if he has ramme will be given admission to the course APS of 42 or more Level 7 or above for elective subject which is Computer Applications related. Level 5 or above for English. Level 6 or above for Mathematics. A student will be waitlisted if the APS is greater than or equal to 38 but less than 42, provided the required levels for three subjects have been achieved. Other students are eliminated from the list. Write a program that prompts the user for a student's full name, APS and the levels (numeric value between 1 and 8, both inclusive) for three subjects (elective subject, Mathematics and English) Display a report as output, as shown in the sample below. An appropriate message should be displayed against 'Status' depending on whether the student is offered an admission, waitlisted or eliminated. Choose the most appropriate data types for the variables in your program. Submit the program and THREE outputs, the outputs representative of the three different scenarios- admitted, eliminated or waitlisted. Sample output:

Explanation / Answer

I have written the program in C since the programming language is not written. Just copy paste the program below in your IDE, compile it and run it. You will get the results. Show me how the out put should look like and I will edit accordingly. If you have any questions or explanations, ask in the comment. Best of luck

#include <stdio.h>
#include <string.h>
int main()
{

char *FirstName;
char *LastName;


int i,n;
int j=0;
int k=0;
int l=0;
printf("Enter the total number of students applied: ");
scanf("%d", &n);
char *wait[2][n];
char *admit[2][n];
char *elim[2][n];
float APS;
int Ele,Eng,Math;
//fgets (Name[n], 100, stdin);

//printf("the name was : %s %s ", firstName, lastName);

for(i=0;i<n;i++){

printf("enter the first name of student %d ",i+1);
scanf("%50s", &FirstName);
printf("enter the last name of student %d ",i+1);
scanf("%50s", &LastName);
printf("Enter the APS of the student: ");
scanf(" %f",&APS);
printf("Enter the Level of computer application related elective ");
scanf(" %d",&Ele);
printf("Enter the Level of English ");
scanf(" %d",&Eng);
printf("Enter the level of Mathematics ");
scanf(" %d",&Math);
if(APS>=42&&Ele>=7&&Eng>=5&&Math>=6){
printf("The student is admitted ");
admit[0][j]= FirstName;
admit[1][j]= LastName;
j=j+1;
}
else if (APS>=38&&APS<42&&Ele>=7&&Eng>=5&&Math>=6){
printf("The student is wait listed ");
wait[0][j]= FirstName;
wait[1][j]= LastName;
k=k+1;
}
else {
printf("The student is eliminated ");
elim[0][j]= FirstName;
elim[1][j]= LastName;
l=l+1;
}
}

printf("Admitted students are: ");

for(i=0;i<j;i++){
printf("%s %s ",admit[j]);
}

return 0;
}