Answer to Question #154036 in C for Chanelle

Question #154036

Program that computes and assesses the tuition fee of the student in one semester using programming c language


1
Expert's answer
2021-01-07T12:09:26-0500
#include <stdio.h>
int main() {
    // we declare a variables
    float Fee, totalFee;
    int mode;
    printf("Enter Tuition Fee: ");
    scanf("%f", &Fee);
    printf("Enter Mode of Payment: \n");
    printf("| 1. 10 percentage discount\n"); 
    printf("| 2. Two-Installment 5 percentage interest\n");
    printf("| 3. Three-Installment 10 percentage interest\n");
    scanf("%d", &mode);
    // Total fee
    if (mode == 1) {
    totalFee = Fee * 0.9;
    } else if (mode == 2) {
    totalFee = Fee * 1.05;
    } else if (mode == 3) {
    totalFee = Fee * 1.1;
    }
    // Output
    printf("Your total tuition fee is: %f", totalFee);
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS