a. Write a program that calculates and prints the bill for a cellular company using two...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium • Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. ● iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340 a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium • Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. ● iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340 a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium • Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. ● iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340 a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium • Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. ● iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340
Expert Answer:
Related Book For
Construction accounting and financial management
ISBN: 978-0135017111
2nd Edition
Authors: Steven j. Peterson
Posted Date:
Students also viewed these programming questions
-
3.16. Let f(x,y) = 1 x y. (a) Sketch the graph of f. (b) Find an equation of the plane tangent to the graph of at (x, y) = (.4, .5).
-
1. Consider the function f(x) = x + 10 on the interval [1,9]. (a) Calculate the upper sum for f(x) using n subintervals. Give your answer as an expression involving n but no summation by using the...
-
What should be the STP (Segmentation, Targeting, Positioning) based on boat industry in Canada?
-
For the charge configuration of Prob. 2.15, find the potential at the center, using infinity as your reference point.
-
Distinguish between a calorie and a Calorie.
-
The comparative balance sheet of Livers Inc. for December 31, 20Y3 and 20Y2, is as follows: The income statement for the year ended December 31, 20Y3, is as follows: Additional data obtained from an...
-
During its first year of operations, Atlas Travel earned revenue of $400,000 on account. Industry experience suggests that Atlas Travels uncollectible accounts will amount to 2% of revenues. On...
-
Sanlucas, Inc., provides home inspection services to its clients. The following is the company's trial balance dated June 1, current year. Sanlucas engaged in the following transactions in June. June...
-
What is one brand strategy that would differ if you were to attempt to expand Nike to a different audience level, and how might it be applied? (For example, if Nike were branding for a local...
-
The sector rotates with the indicated angular quantities about a fixed axis through point B. Simultaneously, the particle A moves in the curved slot with constant speed u relative to the sector....
-
Use the following purchase prices to determine the dollar food cost of one portion Bacon Mac and Cheese consisting of 4ounces of Macaroni Pasta (Yield % = 100%), 2 ounces of grated sharp cheddar, 1...
-
Calculate the range and mean absolute deviation for the data given in question 21. Question 21 A quality control manager finds the following number of defective light bulbs in 10 cases of light...
-
You are a quality control specialist for Brite Lite Company, a light bulb manufacturer. Carefully explain why the standard deviation is as important to you as the mean number of defective light bulbs...
-
Suppose you were the agent for Ralph Boomer Smith, the punter for the Los Angeles Rams. Explain how you could use the mean yards and standard deviation for Boomers punts to argue for a pay increase...
-
Comment on the following statement: Investors dont care about the variability of a stocks returns, because they have the same chance of falling below the median as above the median. Therefore, on...
-
When a distribution is skewed to the right, which measure of central tendencythe mean, median, or modehas the highest value? Which has the lowest value?
-
Use the Black-Scholes Option Pricing Model and put-call parity to estimate the value of the call and put options below, along with the intrinsic value and time value for each. Input: Stock price (S)...
-
A random sample of 10 houses heated with natural gas in a particular area, is selected, and the amount of gas (in therms) used during the month of January is determined for each house. The resulting...
-
What is the future value, ten years from now, of $1,000 invested today at a periodic interest rate of 12% compounded annually?
-
Determine the break-even volume of work for a company with a fixed overhead of $63,000, a contribution margin ratio of 11.0%, and a required level of profit of $60,000.
-
A piece of equipment is purchased for $40,000 and has an estimated salvage value of $1,000 at the end of the recovery period. Prepare a depreciation schedule for the piece of equipment using the 150%...
-
On 1 January 2024, a company receives gross debenture interest of 1,600 from another UK company and pays net debenture interest of 8,640 to individuals. Explain the corporation tax treatment of each...
-
A company's accounts for the 17 months to 30 June 2023 include: The debentures were acquired (not for trade purposes) on 1 May 2022. Interest is payable half-yearly on 30 April and 31 October. Show...
-
Distinguish between P-time and M-time.
Study smarter with the SolutionInn App