Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 399 Weeks Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 15 Sep 2017 My Price 8.00

charged at a flat rate

Write a program that will calculate the cost of a phone call as follows:

  • The first 10 minutes are charged at a flat rate of $0.99 for the entire 10 minutes (Not 99 cents a minute - but 99 cents for the first 10 minutes total).
  • Every minute after the initial 10 minutes will be charged at $0.25 per minute.
  • Input the number of minutes talked as an integer.
  • Using an IF/ELSE structure, check for an entry of 0 minutes first, and inform the User that no minutes were entered.
    • IF 0 minutes are entered THEN
      • output an error message stating that no minutes were entered.
    • ELSE
      • Calculate and display the results.
      • The final display will show the minutes and the final cost.
      • The price will be formatted with 2 decimal places.
  • Add the code necessary to force the display window to stay open until you press a key from the keyboard:

system ("pause");

 

  • Test your program thoroughly with the following data:

1. 9 minutes
2. 10 minutes
3. 11 minutes
4. 35 minutes

DO NOTuse the "return 0" code to force an exit from within your IF/ELSE structure.Let the program progress to the end of the main function. The end of the main function is the only place that the return

Answers

(5)
Status NEW Posted 15 Sep 2017 09:09 PM My Price 8.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)