Homework2-4

# Homework2-4 - simple questions first.Lets get...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: simple questions first. ..Lets get started!\n"); //finds out what letter grade the user wants to end up with printf("\nPlease enter your desired letter grade.\n"); scanf("%c", &letter); //gets minimum average needed to obtain desired letter grade printf("\nEnter minimum average required for a %c > ", letter); scanf("%lf", &avg_req); //gets users current average printf("\nEnter your current class average.\n > "); scanf("%lf", &cnt_avg); //gets percentage that final exam counts towards course grade printf("\nEnter how much the final exam counts as a percentage\n of the overall course grade.> "); scanf("%lf", &grd_wt); grd_wt = grd_wt/100; //calculation of needed grade gd_need = (avg_req - cnt_avg)/grd_wt; if (gd_need < 100) { printf("\nYou will need a %5.2lf in order to get a %c .", gd_need, letter); } else { printf("I'm sorry, it's just not possible for you get a %c in this class.", letter); } return (0); }...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

Homework2-4 - simple questions first.Lets get...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online