I seriously need some help with two programming exercises. I have been up all ni
ID: 662401 • Letter: I
Question
I seriously need some help with two programming exercises. I have been up all night tyring to figure them out, and I just do not understand. I am a beginner, and this is my first programming class. The solution given in Chegg is not making any sense to me because it is not agreeing with what my professor is requiring. He wants us to write pseudocode that includes declarations, housekeeping, detailLoop, string prompts, and finish commands. The first question that I have that I only need pseudocode written for is as follows:
The Dash Cell Phone Company charges customers a basic rate of $5 per month to send text messages. Additional rates are as follows:
The first 60 messages per month, regardless of message length, are included in the basic bill.
An additional five cents is charged for each text message after the 60th message, up to 180 messages.
An additional 10 cents is charged for each text message after the 180th message.
Federal, state and local taxes add a total of 12 percent to each bill.
Write pseudocode for the following:
A program that accepts the following data about one customer
Explanation / Answer
* Read Customer_area with robust input for a positive integer with 7 digits
read code and text messsages like: int Customer_area,text_sent;
* Read Customer_phone with robust input a positive integer with seven digits
read phone num in array: int phone[7]; remember this should be +ve only
* Read Customer_text with robust input for positive integers
* print "Basic rate for subscription: $5 per month", set Customer_bill to 5
* select case of
: Customer_text <= 60 print "No extra charge for text messages"
: Customer_text <= 180 print "(Customer_text - 60) * 0.05 extra for text messages", add (Customer_text - 60) * 0.05 to Customer_bill
: Customer_text > 180 print "$6 extra for text messages from 60 - 180, (Customer_text - 180) * 0.10 extra for text messages beyond 180", add (Customer_text - 180) * 0.10 to Customer_bill, add 6 to Customer bill
* print "Bill before taxes is Customer_bill"
* Customer_finalbill = Customer_bill * 1.12
* print "Bill after 12% federal, state and local tax is Customer_finalbill"