int main() {
int assignment1[30]; " ";
int assignment2[30]; " ";
int assignment3[30]; " ";
int assignment4[30]; " ";
int assignment5[30]; " ";
int assignment6[30]; " ";
char totalPoints = "assignment1; + assignment2; + assignment3; + assignment4; + assignment;5 + assignment6;";
printf(" Grade calculator ... By Geoffrey \n\n");
printf(" Please enter your grades \(in points\) after \n each prompt and press the enter key.\n\n");
printf("Assignment 1:");
scanf ("%s", assignment1);
printf("Assignment 2:");
scanf ("%s", assignment2);
printf("Assignment 3:");
scanf ("%s", assignment3);
printf("Assignment 4:");
scanf ("%s", assignment4);
printf("Exam:");
scanf ("%s", assignment5);
printf("participation");
scanf ("%s", assignment6);
int totalScore; + x = 900;
return 0;
}
ok i wanted to add the assignment1-6, and then do a basic algebra problem as the following..
totalScore - 900 = x(what ever the user has typed in , in this case its 50 )
someone help id appreciate this