Question: Hellow can I please get the solution I'm struggling to get output Design a solution to the following programming problem: The Cell Phone Company, Cell4U,

Hellow can I please get the solution I'm struggling to get output

Design a solution to the following programming problem: The Cell Phone Company, Cell4U, determines their cell phone costs as fol os: A dient pays R2.05 for full minute calls and 2c for each extra second. They also pay 40c per SMS, but a dlient gets 2 free SMS's for every full 30 call minutes. A dlient also gets 1 SMS free for every 30 SMS's sent. All employees who work for the company get a free cell phone as a perk and their account is also paid to a maximum of R800 per month. The company requires a monthly report of the cell phone bills for all employees as well as the total amount that they spend on cell phone perks for employees For al employees the following must be entered .Employee number Total duration in seconds of a calls during the month .Number of SMSs sent during the month After it has successfully been entered, the following values must be calculated and displayed for that employee: The employee number The total duration of all calls in minutes and seconds The number of SMS's sent, along with the number of free SMS's recelved The cost of all calls in rand and cent . . The cost for the SMS'S The total cost for the employee, and The amount paid by the company At the end the total amount that has to be paid by the company must be displayed. The program must provide for the following: The amount due for the calls and the amount due for the sms-messages must be calculated in a sub procedure. This will necessarily imply that the sub procedure must conwert the seconds to minutes and seconds and that these values as well as the number of free SMS's also are made available to the main procedure. A second sub procedure must be called to calculate the total bill for the employee and to accumulate the total that the company needs to pay out for cell phone perks. This sub procedure must also use a Boolean parameter to indicate to the main procedure whether the company will pay out the full amount for this employee on only R800. . . All output must be displayed in the main module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
