Write a code snippet to answer the following question. Just the code that goes inside the main, no need to actually writ
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a code snippet to answer the following question. Just the code that goes inside the main, no need to actually writ
question. Just the code that goes inside the main, no need to actually write the main Suppose that amountDue in a double variable to store the amount a customer will pay to fax sorte document, and numPages in an integer variable to store the number of pages to be faxed. Weite a C code snippet that determines and outputs the amount a customer should pay for taxing several pages of a document, you would first find out how many pages the customer wishes to fax and then calculate using the rates shown below The rate are as follows: the service charge is $9.99 in all cases, to fax the first 10 pages (Pages 1 - 10 ) costs $0.25 per page the subsequent 15 pages (Pages 11 - 25) costs $0.30 per page and pages over 25 cost $0.40 per page. This means if the customer wishes to fax 16 pages, they are charged $0.25 each for the first 10 pages, and then $0.30 for the remaining 6 For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI V S Paragraph Arial 10pt E A 2 !!! V < I O WORDS POWERED BY TINY P
Write a code snippet to answer the following