First off I'm looking for help not someone to do it for me.
My first assignment is: There are 2 midterms, each counting 20% of the grade. The final is worth 25%, and there are 5 programming assignments each worth 7%. Write a program that will prompt the user to enter the grade received on each of these parts (each on a scale of 0.0 - 10.0) and will calculate the final grade in the course.
My second assignment is: Now modify the program in part on as follows. The student is about to take the final exam in the course and would like to know the minimum score they need to get to receive a specific grade. Modify the program to prompt the user for the desired numerical grade (0 - 100.0) and will calculate the grade needed on the final to active the desired result.
This is what I have so far:
Code:
#include <stdio.h>
int main(int argc, char* argv[])
{
int assignment1;
int assignment2;
int assignment3;
int assignment4;
int assignment5;
int midterm1;
int midterm2;
int final;
float numeric;
printf("Enter assignment1: ");
scanf("%d", &assignment1);
printf("Enter assignment2: ");
scanf("%d", &assignment2);
printf("Enter assignment3: ");
scanf("%d", &assignment3);
printf("Enter assignment4: ");
scanf("%d", &assignment4);
printf("Enter assignment5: ");
scanf("%d", &assignment5);
printf("Enter midterm1: ");
scanf("%d", &midterm1);
printf("Enter midterm2: ");
scanf("%d", &midterm2);
printf("Enter final: ");
scanf("%d", &final);
numeric = ((((assignment1 + assignment2 + assignment3 + assignment4 + assignment5) * .07) + (midterm1 + midterm2) * 0.20) + (final * 0.25));
printf("%d/%d/%d/%d/%d/%d/%d/%d\n", assignment1, assignment2, assignment3, assignment4, assignment5, midterm1, midterm2, final);
return 0;
}