0

Need help guys

The New Telephone Company has the following rate structure for long-distance calls: a.) Any call started after 6:00 P.M. gets a 50% discount. b.) Any call started after 8:00 A.M. is charged full price. c.) All calls are subject to a 4% tax. d.) The regular rate for a call is P5.00 per minute. e.) Any call longer than 60 minutes receives a 15% discount on its cost (after any other discount is taken but before tax is added).

29th Aug 2017, 4:20 AM
Jerald De Vera
Jerald De Vera - avatar
17 Respostas
+ 10
i could if i had the time. try doing smaller steps first. for example make a program that prints a start time and duration to the screen and nothing else. next try adding the first call rates calculation. next add another call rate. etc before you know it you will have done it!
29th Aug 2017, 5:18 AM
jay
jay - avatar
+ 10
very very simple skeleton to get started with ..needs lots... https://code.sololearn.com/cIfb5Zmqx25o/?ref=app
29th Aug 2017, 5:55 AM
jay
jay - avatar
+ 8
oh.. well that all depends on the complexity required and how much c++ you know. it could be as simple as prompting the user for the call info i.e start time/duration (see std::cin) then performing the calculations as you would on paper.
29th Aug 2017, 5:09 AM
jay
jay - avatar
+ 8
i wish i could. sorry i cannot.
29th Aug 2017, 5:12 AM
jay
jay - avatar
+ 8
c++
29th Aug 2017, 8:12 AM
jay
jay - avatar
+ 7
what do you help with?
29th Aug 2017, 5:03 AM
jay
jay - avatar
+ 6
switch(variable) { case 0: // do stuff break; case 1: // do other stuff break; }
29th Aug 2017, 12:30 PM
jay
jay - avatar
+ 1
i cant understand :( maybe speak tagalog sir coz im pinoy
29th Aug 2017, 5:11 AM
Jerald De Vera
Jerald De Vera - avatar
0
The New Telephone Company has the following rate structure for long-distance calls: a.) Any call started after 6:00 P.M. gets a 50% discount. b.) Any call started after 8:00 A.M. is charged full price. c.) All calls are subject to a 4% tax. d.) The regular rate for a call is P5.00 per minute. e.) Any call longer than 60 minutes receives a 15% discount on its cost (after any other discount is taken but before tax is added). Write a program that processes several call by reading the start time for each call and the length of each call. The gross cost (before any discounts or tax) should be printed followed by the net cost (after discounts are deducted and tax is added). This is the complete question guys. someone help me out? thanks :)
29th Aug 2017, 4:20 AM
Jerald De Vera
Jerald De Vera - avatar
0
how to code
29th Aug 2017, 5:04 AM
Jerald De Vera
Jerald De Vera - avatar
0
Can you code that for me sir? maybe i copy nalang :)
29th Aug 2017, 5:14 AM
Jerald De Vera
Jerald De Vera - avatar
0
For education porpose lng sir. thanks
29th Aug 2017, 5:17 AM
Jerald De Vera
Jerald De Vera - avatar
0
i can wait for that sir. i have no idea for that kase e. for me to have a idea lng
29th Aug 2017, 5:22 AM
Jerald De Vera
Jerald De Vera - avatar
0
thankyou sir :)
29th Aug 2017, 6:17 AM
Jerald De Vera
Jerald De Vera - avatar
0
Can you explain sir how do you get?
29th Aug 2017, 6:20 AM
Jerald De Vera
Jerald De Vera - avatar
0
what language did you use sir? switch?
29th Aug 2017, 6:33 AM
Jerald De Vera
Jerald De Vera - avatar
0
need switch statement :(
29th Aug 2017, 12:26 PM
Jerald De Vera
Jerald De Vera - avatar