Answered step by step
Verified Expert Solution
Question
1 Approved Answer
way selection : Suppose that the cost of sending an international fax is calculated as follows: the service charge is $3.00, $.2 per page for
way selection : Suppose that the cost of sending an international fax is calculated as follows: the service charge is $3.00, $.2 per page for the first 10 pages, and $.10 for each additional page. Design an algorithm that asks the user to enter the number of pages to be faxed to calculate the amount due Enter the number of pages Is the pages>10? False Print charge-0.1*(pages- 10)+0.2*10 Print charge-0.2*pages Total charge-Print charge + service charge Print out the number of pages and the total charge #include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) //1) delcare variables //2) prompt the input of pages //3) calculation //calculate print charge //claculate totalcharge //4) print out the number of pages and total charge system("pause"); return e
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started