Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Help with program C++?

The following table can be found in the “West Suburban Boston,

Area Code 617, 1990–1991” telephone book.

M T W T F S S

8 am – 5 pm : full rate

5 pm – 11 pm : 35% discount

11 pm – 8 am & weekend: 60% discount

Dial direct

Weekday-----full rate: .26 cent

Evening----35% discount : .16 cent

Night & Weekend------60% discount : .10 cent

Write the a program that asks the user:

• the destination of the call

• the starting time

• the length of the call

• the weekday

The program should compute and display the charge. Note that the rate may vary.

If the call starts at 4:50 P.M. and ends at 5:10 P.M., then half of it falls into the day

rate and half of it into the evening rate.

2 Answers

Relevance
  • 7 years ago
    Favorite Answer

    I agree with the previous respondent. For something such as this a large part of the effort is the surrounding red tape to get the input from the user and display the results. That's simple stuff that you shouldn't have any problem at all with, so why should anyone here spend 10-15 minutes knocking that out before dealing with the actual core of the problem? If you provided that code as a starting point the actual problem could then be solved in five or ten minutes, but there's little incentive for us to put that work in because you couldn't be bothered.

    If you have genuine difficulty with an aspect of your exercise people will be quite willing to help you. People are not going to spend half an hour doing your complete homework for you.

  • 7 years ago

    how far have you gotten with this, and what problems are you facing ?

Still have questions? Get your answers by asking now.