How to Write a C Program to calculate Talk time (TT) and Recharge Amount in C Programming Language ?
Calculate Talk time and Recharge amount.
Being 9.3% tax of TRAI for telecom service provider you can calculate Your talk time and recharge amount
1. For Conversation Recharge Amount to talk time
2. For Conversation Talk time to recharge amount
Solution:
- #include <stdio.h>
- #include <conio.h>
- void main()
- {
- int ch;
- float a,d,b,c,e,f;
- clrscr();
- printf("\t\t\t Calculate Talk time and Recharge amount\nBeing 9.3% tax of TRAI for telecom service provider you can calculate Your talk time and recharge amount");
- printf("\n 1. For Conversation Recharge Amount to talk time\n2. For Conversation Talktime to recharge amount");
- printf("\n\n Please Enter your choice: ");
- scanf("%d",&ch);
- switch(ch)
- {
- case 1:
- {
- printf("\nYou chosing opt. %d and your opt. is conversation Recharge Amt. to TT\nPlease Enter for calculation",ch);
- getch();
- clrscr();
- printf("\nPlease enter your recharge amount: ");
- scanf("%f",&a);
- printf("\nPlease Enter processing fee: ");
- scanf("%f",&b);
- printf("\nPlease Enter extra charge: ");
- scanf("%f",&c);
- d=a*0.093;
- e=a-d;
- f=e-b-c;
- printf("\nYour Entered amount is: %.f\n\nYour processing fee is %.f\n\nService Tax= %.2f\n\nYour total talk time(deduction of your service tax only)= %.2f\n\nTotal Talk Time(Deduction of all tax)= %.2f Rupees",a,b,d,e,f);
- break;
- }
- case 2:
- {
- printf("\n You chosing opt. %d and your opt. is conversation TT to Rec. Amt.\nPlease Enter for calculation",ch);
- getch();
- clrscr();
- printf("\nEnter your Talktime: ");
- scanf("%f",&a);
- printf("\nPlease enter Procesing fee: ");
- scanf("%f",&b);
- printf("\nPlease enter all taxes: ");
- scanf("%f",&c);
- d=b+c;
- e=a+d;
- f=(e/(1-0.093));
- printf("\nYour Talk Time(included of all taxes): %.2f\n\nFor getting your given Talk Time you must rechage equal or above= %.f Rupees",a,f);
- break;
- }
- default:
- {
- printf("\nInvalid Choice!!");
- }
- }
- getch();
- }
Learn More :
Calculate
- C Programm zur Berechnung von Umfang und Flächeninhalt verschiedener geomatrischer Figuren
- Napisać funkcję obliczającą funkcję geometryczną w tablicy NxM elementowej z elementów o wartościach parzystych znajdujących się pod główną i ponad przeciwną przekątną.
- C Program to Calculate GCD using recursion
- C Program To Calculate First Numbers Using Recursion
- C Program to Calculation of One Number Raised to Another
- C Program to Calculate 2 numbers with 1 operation
- Un-sortiertes Array and Sortiertes Array
- C Program Calculation of Simple Interest
- C Program to Calculation of Total and Percentage
- C Program for calculation of Gross Salary
- C Program to calculate Area, Perimeter of Rectangle; Area, Circumference of Circle.
- C program calculates a given function in range given by user, stores the data in arrays and displays the answer in a table.
- C Program for statistically calculating pi using a specific scheduling policy.
- C Program that prompts the user to input a string, (whitespaces allowed)
- C Program Number of Judge and Score From Each Judge
- C Program to Calculate the mathematical expression for the first n numbers
- C Program to Calculate the price of movie tickets
- C Program to calculate sum of two m*n matrices & store the result in 3 matrix
- C Program to calculate the sum of elements of upper triangle of a n*n matrix using DMA
- C Program to accept n numbers from user store these numbers into an array & calculate average of n numbers
- Calculate sum of element of upper triangle of m*n matrix by using dynamic memory allocation
- Calculate sum of non-diagonal element in m*n matrix C Program
- Accept n number from user, store these number into an array and calculate the average of n number
- Calculate sum of element of lower triangle of m*n matrix by using dynamic memory allocation
Recharge
Talk Time
Amount