Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the function cellPhoneBil1 () that takes two int m and tx as input and returns a float.The function takes total number of minutes and

Write the function cellPhoneBil1 () that takes two int m and tx as input and returns a float.The function takes total number of minutes and text messages that user spends in a particular month and returns the bill amount. These is the policy of the carrier company:

The plan includes 50 minutes of air time and 50 text messages for $15.00 a month.

Each additional minute of air time costs $0.25, while additional text messages cost $0.15 each.

All cell phone bills include an additional charge of $0.44 to support 911 call centers.

The entire bill (including 911 charge) is subject to 5 percent sales tax.

The function will take the total number of minutes and text messages and compute/return the total amount to be paid.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions

Question

Why is the national security argument for tariffs questionable?

Answered: 1 week ago