subject

The Dash Cell Phone Company charges customers a basic rate of $5 per month to
send text messages. Additional rates are as follows:

l The first 60 messages per month, regardless of message length, are included in
the basic bill.
l An additional five cents is charged for each text message after the 60th
message, up to 180 messages.
l An additional 10 cents is charged for each text message after the 180th message.
l Federal, state, and local taxes add a total of 12 percent to each bill.
Design a flowchart or pseudocode for the following:

a. A program that accepts the following data about one customers bill: customer
area code (three digits), customer phone number (seven digits), and number of
text messages sent. Display all the data, including the month-end bill both
before and after taxes are added.

b. A program that continuously accepts data about text messages until a sentinel
value is entered, and displays all the details.

c. A program that continuously accepts data about text messages until a sentinel
value is entered, and displays details only about customers who send more than
100 text messages.

d. A program that continuously accepts data about text messages until a sentinel
value is entered, and displays details only about customers whose total bill with
taxes is over $20.

e. A program that prompts the user for a three-digit area code from which to
select bills. Then the program continuously accepts text message data until a
sentinel value is entered, and displays data only for messages sent from the
specified area code

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
These tools give presenters more freedom to move about the room and interact with their audience. laptop computer laser pointer lcd projector remote control
Answers: 2
question
Computers and Technology, 22.06.2019 12:10
1. package newton’s method for approximating square roots (case study 3.6) in a function named newton. this function expects the input number as an argument and returns the estimate of its square root. the script should also include a main function that allows the user to compute square roots of inputs until she presses the enter/return key. 2. convert newton’s method for approximating square roots in project 1 to a recursive function named newton. (hint: the estimate of the square root should be passed as a second argument to the function.) 3. elena complains that the recursive newton function in project 2 includes an extra argument for the estimate. the function’s users should not have to provide this value, which is always the same, when they call this function. modify the definition of the function so that it uses a keyword parameter with the appropriate default value for this argument, and call the function without a second argument to demonstrate that it solves this problem. 4. restructure newton’s method (case study 3.6) by decomposing it into three cooperating functions. the newton function can use either the recursive strategy of project 1 or the iterative strategy of case study 3.6. the task of testing for the limit is assigned to a function named limitreached, whereas the task of computing a new approximation is assigned to a function named improveestimate. each function expects the relevant arguments and returns an appropriate value. 5. a list is sorted in ascending order if it is empty or each item except the last one is less than or equal to its successor. define a predicate issorted that expects a list as an argument and returns true if the list is sorted, or returns false otherwise. (hint: for a list of length 2 or greater, loop through the list and compare pairs of items, from left to right, and return false if the first item in a pair is greater.)
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
You know the right answer?
The Dash Cell Phone Company charges customers a basic rate of $5 per month to
send text messag...
Questions
question
Social Studies, 19.02.2021 20:10
question
Mathematics, 19.02.2021 20:10
question
Mathematics, 19.02.2021 20:10
Questions on the website: 13722360