+ 1

How do I write a C++ program that calculates and displays phone charges for 6 people

Employees are allowed to use the office telephone for call for a fee,each employee is given a pin code to allow them to make calls, the fee is R2 to make a call up to 3 minutes, an additional R1 per minute and therefore in access of 3 minutes charged, the max charge monthly an employee can pay is R10, thereafter the phone pin gets blocked and can only be blocked at beginning of next month, assume no employee reaches R10 mark, how do I create a program that uses a loop to calculate telephone charges

29th Mar 2017, 9:15 PM
George Learner
George Learner - avatar
3 Respuestas
+ 9
secondly write your code and post it so we can help you.
30th Mar 2017, 8:22 AM
Agus Mei
Agus Mei - avatar
+ 6
Let me write something you can start with. I will post it when I'm done for comments and improvement.
30th Mar 2017, 4:14 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 1
firstly do you have the ability to log the number and times of the calls in software already? If you do it should not be that hard to assign each employee a variable and then apply an algorithm to each variable that will do the calculation for you.
29th Mar 2017, 11:41 PM
Jason Hoffman
Jason Hoffman - avatar