Write a program that computes the cost of a long-distance

Assignment Help Basic Computer Science
Reference no: EM13220078

Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any call started between 7:00 A.M. and 9:00 P.M., Monday through Friday, is billed at a rate of $0.45 per minute. b. Any call started before 7:00 A.M. or after 9:00 P.M., Monday through Friday, is billed at a rate of $0.20 per minute. c. Any call started on a Saturday or Sunday is billed 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. Input will come from the input file.

Reference no: EM13220078

Questions Cloud

What is the equivalent uniform annual worth and irr : Automotive Rebuilders, Inc., is considering a new automated assembly line to automate assembly of rebuilt alternators. The new line can be installed for $525,000 today and will have a life of 9 years until technological obsolescence.
What is the relationship between transistor densities : In two paragraphs explain what is the relationship between transistor densities and the improvement in computer speed and miniaturization?
Write a sample program that asks for the center : Write a sample program that asks for the center and side length, then prints out the square (using the toString method that you inherit from Rectangle) and the area of the square.
Can we conclude from the bet that geoff is risk-averse : Geoff and Hank are friends who are attending a "casino night" at a charity fundraiser. The event costs $100 to get in, which they have already paid. Once inside, there's a table at which you can gamble: for $10, you can flip a coin.
Write a program that computes the cost of a long-distance : Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any call started between 7:00 A.M. and 9:00 P.M.
Explain the engine cylinder temperature : What is the maximum height, neglecting all forms of friction, to which a car of mass 1000 kg an be driven on 1.00 gallon of fuel given that the engine cylinder temperature is 2000 degrees celsius and the exit temp is 800 degrees celsius.
What story added value to military equipment produce by firm : Consider a firm that produces military equipment. It employs 2,000 workers and pays each of them a competitive wage of $40,000 per year; its total labor costs are therefore $80 million per year. The firm also has other, non-labor costs of $30 million..
Indicate whether or not there is a carry : 1 ) What is the base-10 equivalent of: 1111, a 4-bit one's complement number 4) Add the following 16-bit 2's complement numbers (represented in Hex): 78CF + FAB4 and indicate whether or not there is a carry and/or an overflow generated. Also, if n..
Write the truth table for a device : The output should be in Binary Coded Decimal representation. 4. Use Full Adders and logic gates to design a device which will multiply a given 4-bit signed input x by -2.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Assembly program to compute division of two integer numbers

Write a program in assembly with the necessary comments that computes division of two integer numbers (Y by X) by consecutively subtracting X from Y.

  Deduce closed-form expression-estimates-linear regression

In weighted least-squares linear regression, we have weight ri corresponding to each data measurement. Deduce closed-form expression for estimates of w and b which minimize objective function.

  What is the median of the reported blood pressure values

What is the median of the reported blod pressure values?

  How to make sure that written work is free of grammar

How do you make sure that written work is free of grammar and spelling errors? Write down tools or secrets do you use?

  Swimlane-hypothesis space

Assignment need to be done. It is about swimlane. I am attaching document and example of how it suppose to be done.

  Design a program that asks for the price of each item

Design a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of the sales tax and the total.

  Explaining multiple client computers and servers

In network with multiple client computers, servers, switches and wireless access points, write down resources must be scanned for possible vulnerabilities.

  Find companies that specialize in computer forensics

What needs clarified? it's plainly stated use google to find 3 companies that specialize in computer forensics of those 3 companies write 2 or 3 paragraphs comparing what each company does.

  How matrices are calculated

Show each of the intermediate matrices. Refer to section 9-1 of the textbook for the details of how matrices are calculated. Because no translations are involved, you can use 3 x 3 matrix math for your calculations.

  Describe an algorithm

Describe an algorithm for determining if a given list contains a cycle using only constant additional space. The runtime should be O(N), where N is the (unknown) number of elements in the list. (Hint: use two iterators that advance at different sp..

  This code uses separate chaining

This code uses separate chaining ...implement it using double hashing. Implement a separate-chaining table in which each integer x is hashed twice using two different hash functions h1(x) and h2(x). This will perhaps produce two different location..

  Determine minimum number of element

We wish to find the element x that is in upper half when S is sorted, or in other words element which is greater than median. Determine the minimum number of element comparision required to solve problem ?

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