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).
17 Antworten
+ 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!
+ 10
very very simple skeleton to get started with
..needs lots...
https://code.sololearn.com/cIfb5Zmqx25o/?ref=app
+ 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.
+ 8
i wish i could. sorry i cannot.
+ 8
c++
+ 7
what do you help with?
+ 6
switch(variable) {
case 0:
// do stuff
break;
case 1:
// do other stuff
break;
}
+ 1
i cant understand :(
maybe speak tagalog sir coz im pinoy
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 :)
0
how to code
0
Can you code that for me sir? maybe i copy nalang :)
0
For education porpose lng sir. thanks
0
i can wait for that sir. i have no idea for that kase e.
for me to have a idea lng
0
thankyou sir :)
0
Can you explain sir how do you get?
0
what language did you use sir?
switch?
0
need switch statement :(