Develop C program that will compute for a telephonebill of a customer.The progra
ID: 3613030 • Letter: D
Question
Develop C program that will compute for a telephonebill of a customer.The program would accept a time code ( 1-for DayTime and 2-for Night Time), destination code (1-for AmericanRegion, 2-for European Region, 3-for African Region and 4-for AsianRegion),and the duration of the call. The program then compute thetotal change. Urgentrequired Life Saver Will berated Develop C program that will compute for a telephonebill of a customer.The program would accept a time code ( 1-for DayTime and 2-for Night Time), destination code (1-for AmericanRegion, 2-for European Region, 3-for African Region and 4-for AsianRegion),and the duration of the call. The program then compute thetotal change. Urgentrequired Life Saver Will beratedExplanation / Answer
please rate - thanks without the additional information #include #include int main() {int ampm, dest,time; double charge; printf("Enter time code: "); printf("1-for Day Time "); printf("2-for Night Time "); scanf("%d",&m); printf("Enter destination code: "); printf("1-for American Region "); printf("2-for European Region "); printf("3-for African Region "); printf("4-for Asian Region "); scanf("%d",&dest); printf("Enter duration of call in minutes: "); scanf("%d",&time); switch(dest) {case 1:if(ampm==1) { } else { } break; case 2: if(ampm==1) { } else { } break; case 3: if(ampm==1) { } else { } break; case 4: if(ampm==1) { } else { } break; default: printf("Invalid entry - abort"); getch(); return0; } printf("The total charge is $%.2f ",charge); getch(); return 0; }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.