السلام عليكم ورحمة الله وبركاته...
انا عضوة يديدة انضميت لكم بس علشان احد يجوف لي حل مع هذه المادة (يبى غربلونا ماتسوى علينا مسجلين في جامعتهم) ...... ماابي اطول عليكم اتمنى من الي يعرف انه هو مايتردد في حله لي لانه ابغيه ضروري وبكرة اخر يوم لتسليمه (مااعرف احله) شاسوي غير طلب مساعدتكم . يالله عاد لاتحرجوني. اوكي...
Question 1:
Consider a telephone company that has different number of calls with the following call time-dependent costs?
Price BD/ minute
Call type
First 100 minutes free
Local
Next 200 minutes 0.05 BD/ minutes
Above 300 minutes 0.03 BD/ minutes
First 30 minutes free
National
Above 30 minutes 0. 1 BD/ minutes
1.0 BD/ minute
International
0.4 BD/ minute
Mobile
Write a program to calculate the fees for unknown number of customers for each customer read call type and number of minutes print the total fees for each customer, and then print the grand total for all the customers.
Question 2:
Problem:
Develop a c++ program that uses a while statement to determine the gross pay for each of several employees.
The company pays" straight time" for the first 40 hours worked by each employee and pays "time-and- a half" for the first 40 hours . You are give a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee's gross pay.
Sample output:
Enter hours worked (-1 to end):39
Enter hourly rate of the worker( $00.00): 10.00
Salary is $390.00
Enter hours worked (-1 to end) :40
Enter hourly rate of the worker ($00.00): 10.00
Salary is $400.00
Enter hourly worked (-1 to end): 41
Enter hourly rate of the worker ($00.00): 10.00
Salary is $415.00
Enter hours worked (-1 to end): -1