SOLUTION: Problem 2: The cost to send a telegram is $2.50 for the first 10 words or less and $.15 for each additional word. Write a program to calculate the cost of sending a telegram under
Algebra.Com
Question 747746: Problem 2: The cost to send a telegram is $2.50 for the first 10 words or less and $.15 for each additional word. Write a program to calculate the cost of sending a telegram under these conditions.
Input – number of words
Process – calculate the cost of the telegram under the above conditions.
Output – the cost of the telegram
Test:
Try your programs on the following:
7 words - $2.50
15 words - $3.25
Answer by lynnlo(4176) (Show Source): You can put this solution on YOUR website!
RELATED QUESTIONS
Write the system of equations and solve for x and y using any method:
The cost of... (answered by Edwin McCravy)
please help me solve this problem asap
the cost of sending a certain telegram is 60... (answered by mukhopadhyay)
what is the cost c of a telegram of 18 words is the cost f of the first 10 words plus the (answered by Fombitz)
Input number of words in a telegram and display the cost. Assume the first 15 words cost... (answered by ikleyn)
A long distance phone call is 50 cents for the first minute and 25 cents for each... (answered by JBarnum)
Write an equation and solve for the word problem: Rico spent $18.50 to rent a lawn... (answered by solver91311,edjones,oberobic)
An online fax company, EFaxIt.com, has a customer plan where a subscriber pays a monthly... (answered by jorel1380)
Please help me solve this problem: A family wants to rent a boat which costs $500 for the (answered by scott8148)
Need help solving this algebra problem: a long distance telephone call cost 10 cents for... (answered by Fombitz)