To implement conditional problems using multiple-if or nested-if Objectives: statements. Description The New Telephone Company has the following rate structure for long-distance calls: a. The regular...


To implement conditional problems using multiple-if or nested-if<br>Objectives:<br>statements.<br>Description<br>The New Telephone Company has the following rate structure for long-distance calls:<br>a. The regular rate for a call is P8 per minute.<br>b. Any call started after 6:00P.M. (1800 hours) but before<br>8:00 A.M (0800 hours) is discounted 50%.<br>c. Any call longer than 60 minutes receives a 15% discount.<br>d. All calls are subject to 4% federal tax on the cost after any discounts.<br>Write a program that takes the start time for a call based on a 24-hour clock and the length of the<br>call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the<br>net cost (after discounts are deducted and tax is added).<br>Sample Output if Applicable<br>Input:<br>Input the start time of the call:<br>Input the length of call in minutes : 61<br>1800<br>Output :<br>Gross cost : 488.00<br>Net cost : 430.56<br>

Extracted text: To implement conditional problems using multiple-if or nested-if Objectives: statements. Description The New Telephone Company has the following rate structure for long-distance calls: a. The regular rate for a call is P8 per minute. b. Any call started after 6:00P.M. (1800 hours) but before 8:00 A.M (0800 hours) is discounted 50%. c. Any call longer than 60 minutes receives a 15% discount. d. All calls are subject to 4% federal tax on the cost after any discounts. Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added). Sample Output if Applicable Input: Input the start time of the call: Input the length of call in minutes : 61 1800 Output : Gross cost : 488.00 Net cost : 430.56

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here