Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Dash Cell Phone Company charges customers a basic rate of $5 per month to se

ID: 669162 • Letter: T

Question

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:

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

Explanation / Answer

start

Declaration

num Num_Of_Messages

num Basic_Charge

num Final_Charge

num Additional_Charge

num Total

num TOTAL_TAX = 0.12

num QUIT=-1

string PROMPT = "Enter number of messages sent: "

set Basic_Charge=5

output "Enter number of messages "

output "Enter -1 to quit"

input Num _Of_Messages

if Num _Of_Messages = QUIT then

output "Program end"

else if Num _Of_Messages <=60 then

Additional_Charge =0

Final_Charge= Basic_Charge+ Additional_Charge

Else

if (Num _Of_Messages > 60) AND (Num _Of_Messages <=180)

Additional_Charge = (Num _Of_Messages-60)*0.05

Final_Charge= Basic_Charge+ Additional_Charge

Else

if (Num _Of_Messages > 180)

Additional_Charge = (Num _Of_Messages-60)*0.05+(Num _Of_Messages-180)*0.1

Final_Charge= Basic_Charge+ Additional_Charge

endif

Total= Final_Charge+(0.12* Final_Charge)

output Total

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote