How design a C program to calculate the tuition payable by its
students. The
program should accept the students Id number, name, Programme being
persued and the programme
Year (1, 2, OR 3) the student is in, and the students GPA (NB*
First year students start with a GPA of
0 and the program is to programmatically insert this value). The
regular tuition fee for all students is
$175,000.00. However, a discount is given to every student whose
GPA falls within a certain range,
based on whether the student is in Year 1, Year 2, OR Year 3, as
follows:
Year GPA Discount
1 0 0%
2 2.7 to 4.0 10%
3 3.2 to 4.0 15%
The program is to calculate the final tuition amount, and display
the students’ name, Id number,
programme being persued, regular tuition, discount amount and final
tuition amount, for each student
processed. After each student is processed, the system should give
the user an option to process
another.
Here is the program for your question in C Programming Language.
CODE :(filename.c)
|
#include<stdio.h> int main() |
SCREENSHOTS




OUTPUT


If wrong input given

NOTE : As I have used scanf for reading strings please be careful while giving names of student and program , make sure they do not contain spaces if they contain spaces the second string after space will be taken as next variable value.
Any doubts can be explained with pleasure :)
How design a C program to calculate the tuition payable by its students. The program should...