I need help in coding the following practice problem using the fundamentals of C Programming Language without using arrays. The New Telephone Company has the following rate structure for long-distance calls: a) Any call started after 6:00 P.M. gets a 50% discount. b) Any call started after 8:00 A.M. is charged full price. c) All calls are subject to a 4% tax. d) The regular rate for a call is /P5.00 per minute. e) Any call longer than 60 minutes receives a 15% discount on its cost(after any other discount is taken but before tax is added). Write a program that processes several calls by reading the start time for each call and the length of each call. The gross cost (before any discounts or tax) should be printed followed by the net cost (after discounts are deducted and tax is added).

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 9PP: (Data processing) Your professor has asked you to write a C++ program that determines grades at the...
icon
Related questions
Question

I need help in coding the following practice problem using the fundamentals of C Programming Language without using arrays.

The New Telephone Company has the following rate structure for long-distance calls:
a) Any call started after 6:00 P.M. gets a 50% discount.
b) Any call started after 8:00 A.M. is charged full price.
c) All calls are subject to a 4% tax.
d) The regular rate for a call is /P5.00 per minute.
e) Any call longer than 60 minutes receives a 15% discount on its cost(after any
other discount is taken but before tax is added).
Write a program that processes several calls by reading the start time for each call and
the length of each call. The gross cost (before any discounts or tax) should be printed
followed by the net cost (after discounts are deducted and tax is added). 

 

Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr