Compute the cost of a long-distance call

Assignment Help Computer Engineering
Reference no: EM132213174

Write a python program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule:

• Any call started between 8:00 A.M. and 6:00 P.M., Monday through Friday, is billed at a rate of $0.40 per minute.

• Any call starting before 8:00 A.M. or after 6:00 P.M., Monday through Friday, is charged at a rate of $0.25 per minute.

• Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute.

The input will consist of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call.

Notes: 1. The time is to be input as 4 digit number, representing the time in 24-hour notation, so the time 1:30 P.M. is input as 1330

2. The day of the week will be read as one of the following three character string: ‘Mon', ‘Tue', ‘Wed', ‘Thr', ‘Fri', ‘Sat' or ‘Sun'

3. The number of minutes will be input as a positive integer.

For example, an execution could look like this:

Enter the day the call started at: Fri

Enter the time the call started at (hhmm): 2350

Enter the duration of the call (in minutes): 22

This call will cost $5.5

Reference no: EM132213174

Questions Cloud

Explain the most important part of management definition : Describe the formal, three-part definition of management and explain the most important part of the management definition and why you chose that part.
In what ways did koss management fail : In what ways did Koss management fail in its responsibilities relating to internal control over financial reporting? Note: Please be brief but be specific.
Motivating others is responsibility for leaders : Motivating others is a responsibility for leaders. Done well, employees are engaged, productive, and loyal. What would be the results with your team?
Overview and introduction to big data : How would you describe "Big Data" and "IoT" (Internet of Things) to your parents if they were to ask you about it over the holidays?
Compute the cost of a long-distance call : Write a python program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule.
What are some examples of journal : What are some examples of journal-published easy-to-understand research papers that use univariate ARCH (Autoregressive conditional heteroskedasticity) models?
What is the biggest threat facing uber currently : What is the biggest threat facing uber currently? Why is this the most important issue? Justify and support with relevant data.
Take 1 number as an argument and prints a triangle : Take 1 number as an argument and prints a triangle of asterisks that is right-aligned.
Changes in revenue and advertising spending : Several accounts from all of those at a large firm are looked at to investigate the relationship between changes in revenue and advertising spending.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Powerpoint 2010

Which among the following statement is TRUE regarding the PowerPoint 2010? Provide the answer providing the reson:Any PowerPoint presentation is saved with a .ptt extension after filename.

  Write a program to print the sizes of pointers to char

Write a program to print the sizes of pointers to char, short, int, and float. What do you conclude from the output?

  Prepare a map showing various components of cloud computing

Prepare process map showing the various components of cloud computing and who has responsibility for the implementation and support of the cloud.

  Should the getter and setter methods for the properties be

Design and draw a class hierarchy for the above objects, based on the given properties. In your class hierarchy place variable names next to each class.

  Write down a brief summary of the web article

In this assignment, you will find out and critique virtual information and word processing skills to create a professional-looking one-page document that promotes personal development or financial growth and maturity.

  Create a program that demonstrate passing arguments

create a program that demonstrate passing arguments ByVal and then ByRef. I just need help with the coding.

  1 express the following numbers in cartesian rectangular

1. express the following numbers in cartesian rectangular form.2. express the following numbers in polar form. describe

  Review the different digital forensics tools and hardware

From the second e-activity describe two devices that are available from leading computer manufacturing companies

  Disucss the design of analog-to-digital convener systems

What do you feel is the most significant new information you learned from this chapter?

  Implement a simulation using two queues

Implement a simulation, using two queues, one each for the planes waiting to take off and land. Landing planes get priority.

  Write a an application arithmetic which gets input

Write a an application Arithmetic which gets input from the user. It will have a main method. You will write the whole class

  Discusses four types of perceptual distortions

Discusses four types of perceptual distortions: stereotyping, halo effects, selective perception, and projection. Define each of these and provide an example.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd