C Program- Case Study of Nepal Telecom Bill with VAT and TAX

Program to calculate Total amount, VAT & TAX

CASE STUDY CLASS 12

nepal telecom case study

Question from Book

Hello Every student of class 12. Welcome back/welcome to my blog. Through out this post i want to teach you the program to calculate the total amount VAT and the TAX of Nepal Telecom Bill.

So here is the program only dedicated to all the brothers and sisters over there who are just facing the problems of C Programs. I think i can help you all in this hard condition :p . So here i am regularly uploading the programs of C. If you still think that you can not be a good in Programming Just say YES i can.

okay Let’s leave this all things and move toward the program,

here i have used only if else statement to calculate all the values, but you can also do the same things using your own logic(do it with Switch Case Statement and comment down your Program, so that every person can get the Programs written by you[The Super Hero/Heroine].).

Program for NTC Case Study:

#include<stdio.h>
void main(){
int call;
float tot,vat,tax,amt;
printf("Please enter the number of calls: ");
scanf("%d",&call);
if(call>=0 && call<=150){
vat=150*13/100;
tax=150*10/100;
tot=150+vat+tax;
printf("The Bill with %f vat and %f tax is %f",vat,tax,tot);
}
else if(call>=181 && call<=500){
amt=call;
vat=amt*13/100;
tax=amt*10/100;
tot=amt+vat+tax;
printf("The Bill with %f vat and %f tax is %f",vat,tax,tot);
}
else if(call>500)
{
amt=call/2;
vat=amt*13/100;
tax=amt*10/100;
tot=amt+vat+tax;
printf("The Bill with %f vat and %f tax is %f",vat,tax,tot);
}else{
printf("Invalid input");
}
//coded by CoderPradip.com go to coderpradip.com to get more c programming solutions.
/*
Get C Programming Tutorials only from: coderpradip.com/blog/category/c-programming.
Thank you !!


*/
}

 

Still not understanding the code?

Yes?

Don’t worry i will explain the codes but you have to leave a comment.

Checkout more programs and Posts: