1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
olga_2 [115]
4 years ago
11

cellPhoneBill(m,tx)Write the function cellPhoneBill()that takes two int m and txas 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:
Computers and Technology
1 answer:
lidiya [134]4 years ago
4 0

Answer:

The solution code is written in C++

  1. float cellPhone(int m, int tx){
  2.    float COST_PER_MIN = 0.1;
  3.    float COST_PER_MESSAGE = 0.2;
  4.    
  5.    float bill_amount = m * COST_PER_MIN + tx * COST_PER_MESSAGE;
  6.    
  7.    return bill_amount;
  8. }

Explanation:

Firstly, declare a function named cellPhone() that takes two input parameters, m and tx (Line 1).

Since the policy of the carrier company is not given in the question, I make a presumption that the cost per minutes is $0.10 and the cost per message is $0.20 (Line 2- 3).

Next, apply the formula m * COST_PER_MIN + tx * COST_PER_MESSAGE to calculate the total bill (Line 5) and return the bill_amount as function output (Line 7).

You might be interested in
How to tell what wifi your nest camera is connected to
daser333 [38]

Answer:

On the app home screen, tap Settings .

Select Home info then Home Wi-Fi help. ​Note: If you don't find Home Wi-Fi help, you'll need to remove your camera from the app and add it back with new Wi-Fi information.

Select the camera you want to update.

Tap Start. Update settings.

6 0
3 years ago
Read 2 more answers
What information system would be most useful in determining what direction to go in the next two years?
cluponka [151]

Its actually Executive information system

3 0
4 years ago
Read 2 more answers
True or false?
sashaice [31]
True cars are fast and go fast
6 0
3 years ago
Read 2 more answers
Which lines of the code, marked by Q, are legally declared based on the scope of the variable?​
WINSTONCH [101]

inside a function or a block which is called local variables

4 0
2 years ago
Define conflict and negotiation;also describe negotiation strategies in detail.
saveliy_v [14]

Answer and Explanation:

Conflict:

It can be defined as an opposition or disagreement or interest clashes between two parties or where one party person perceives its interest being opposed by the other person or party.

Negotiation:

It is a method where people or parties usually discuss their differences in order to settle or make arrangements on the basis of mutual agreement.

Negotiation strategies:

1) Negotiating Process is not Individual based and is continuous:

To get fruitful outcome from negotiation one has to strengthen their relationships and their positions

2). Positive approach:

Believe in yourself and approach the whole process with a positive energy and for the success of the negotiation believe that you are bringing to the table those things that are required by the other party and maintain your composure, your gestures, non verbal communication in a positive manner.

3). Plan and Prepare:

Before starting any negotiation one should plan how to proceed to get the desired outcome and prepare things accordingly and also be prepared for the best and worst outcomes with awareness of the highest and lowest expectations in order to reach a suitable agreement.

4). Be persuasive and create value:

Belief strongly in your negotiations and present your ideas in a way to let others see the value of it.

Be clear and direct and discuss the ways to make it happen and discuss the related consequences.

5). Maintain balance:

Maintain a balance between both the parties in give and take situation and make sure to be equals.

6 0
4 years ago
Other questions:
  • When running JavaApplication8, the following output is seen on the display:
    15·1 answer
  • What does the program 7-zip do for the files on your computer
    10·1 answer
  • What is a detailed and thorough review of the deployed security infrastructure compared with the organization’s security policy
    5·1 answer
  • A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: The name of the clie
    11·1 answer
  • For each 8-bit data frame the layer uses a generator polynomial G(x) = x4+x2+ x+1 to add redundant bits. What is the sequence of
    11·1 answer
  • Use the ________ property in the html link tag to to associate a web page with a style sheet for printing.
    5·1 answer
  • Which of the following is NOT true about digitizing physical media?
    10·1 answer
  • The backbone networks of the Internet are typically owned by long-distance telephone companies called
    12·1 answer
  • The letters G, H, T, Y, B, and N are what type of keys?
    15·2 answers
  • Write a C++ program to grade the answers to a true-false quiz given to students in a course. The quiz consists of 5 true-false q
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!