Question

Write a program that predicts the score needed on the final exam
toachieve a
desired grade in a course. The program should interact with theuser
as follows:
Enter desired grade> B
Enter minimum average required> 79.5
Enter current average in course> 74.6
Enter how much the final counts as a percentage of the
course grade> 25
You need a score of 94.20 on the final to get B.

1.help me to calculate the score

int main(void)

{
double minimum_average, /* input for theminimum
average required */
current_average,
/* input for the current averagein course*/
percentage,
/*input for the percentage */
score; /*
output for the score of 94.20*/

/* prompt the user to input for the minimum averagerequired*/
printf("Enter the minimum average required");
scanf("%lf", &minimum_average);

printf("Enter the current average in course")'
scanf("%lf", &current_average);

printf("Enter the percentage of the course grade");
scanf("%lf", &percentage);