Design a flowchart or pseudo code for the following

Assignment Help Basic Computer Science
Reference no: EM131096536

The Summerville Telephone Company charges 10 cents per minute for all calls outside the customer's area code that last over 20 minutes. All other calls are 13 cents per minute. Design a flowchart or pseudo code for the following:

a. A program that accepts data about one phone call: customer area code (three digits), customer phone
number (seven digits), called area code (three digits), called number (seven digits), and call time in minutes (four digits). Display the calling number, called number, and price for the call only if the call is one in which the area code where the call originated is different from the called area code.

b. A program that accepts data about a phone call and displays all the details only about a call that costs over $10.

c. A program that continuously accepts data about phone calls until eof is reached and displays details only about calls placed from the 212 area code to the 704 area code that last over 20 minutes.

d. A program that prompts the user for a three-digit area code. Then the program continuously accepts phone call data until eof is reached, and displays data for any phone call to or from the specified area code.

Reference no: EM131096536

Questions Cloud

Was that good deal for americans as whole : In his State of the Union speech in January, 2012 (and throughout the following campaign), President Barack Obama stated, “We’ve brought trade cases against China at nearly twice the rate as the last administration –- and it’s made a difference. Over..
Firms produce identical product at zero marginal cost : Suppose two firms produce an identical product at zero marginal cost and face the demand curve P = 50 – Q a. If the firms behave as Cournot duopolists, what quantity do they produce? What is the total quantity produced by a perfectly competitive mark..
What was the company cost of debt capital after taxes : If the company's effective tax rate is 29%, what was the company's cost of debt capital after taxes?
Are they performing arbitrage in some market : When illegal immigrants come to the U.S. from Mexico, does their act of moving here to work promote Purchasing Power Parity? Are they performing arbitrage in some market? Explain.
Design a flowchart or pseudo code for the following : A program that prompts the user for a three-digit area code. Then the program continuously accepts phone call data until eof is reached, and displays data for any phone call to or from the specified area code.
Find the substitution-income and total effects : A consumer has utility function given by u(x1, x2) = √ x1x2. Suppose the price of good 1 falls from $5 to $2, while the price of good 2 and the consumer’s income remain constant at $10 and $100, respectively. Find the substitution, income, and total ..
Method of entry-the foley company : The Foley Company, a manufacturer of soybean harvesters, has for years sold a substantial number of machine sin Brazil. However, a Brazilian firm has begun to manufacture them, and Foley's local distributor has told Jesse Osborne
Opening individual retirement account : A 25-year-old engineer is opening an individual retirement account (IRA) at a bank. Her goal is to accumulate $1 million in the account by the time she retires from work in 40 years. The bank manager estimates she may expect to receive 8% APR, compou..
Define a token class almost reserved : Define a token class Almost Reserved to be those identifiers that are not reserved words but that would be if a single character were changed. Why is it useful to know that an identifier is "almost" a reserved word?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Ttime for implementation, and return on investment

You are the database administrator for your company. As your company continues to grow and expand, you have been asked to look into a client-server architecture for your database, which will allow you to have a database in a distributed environment. ..

  Aspects of negotiation will point out it is proceeding well

What aspects of negotiation will point out it is proceeding well or poorly? What will tell you that it is time to arrange further meeting? What signs will you utilize to decide when change in negotiators is necessary?

  Arraylist and linkedlist classes

In Java Collection Framework, ArrayList and LinkedList classes are both implementations of the interface List. Give an example of a situation where an array list would be the better choice and one where a linked list would. Explain the reasons in ..

  Prepare a detailed design document for the user interface

Your design document should not exceed ~25 pages in length, excluding references. You will need to reference all literature, applications and websites using the APA 6th edition referencing style.

  Articulating business problem statement

In the beginning of a design for study, a qualitative researcher should start by introducing a business problem statement. The objective of this statement is to provide the motivation for studying a particular area of interest.

  Is hci a term to describe any interaction with digital

Is HCI a term to describe any interaction with digital technology? Suggest a more appropriate phase to describe this. Also, explain your answer. Whom or what are you interacting with, when you use a smart phone, a tablet, and a laptop? Google Glass o..

  Create a powerpoint presentation to present the findings

Create a PowerPoint presentation to present the findings of your research to the widget company that has hired you as a consultant. Use five or more slides that detail the recommendations you are making to the company executives.

  Evaluate the information provided in the grant writing 2007

Evaluate the information provided in the Grant Writing 2007: Your Guide to Grants article. Write a 1,050- to 1,750-word paper summarizing the main points of the article.

  What do you mean by ascii or ebcdic

What is ASCII or EBCDIC? What part do the aforementioned things play in hashing? What is the formula for the PPD? What does the numerator and denominator say about the potential performance issues of this metric?

  Describe the purpose of a mac address

1.  Why does FDDI have counter rotating rings? Be sure to provide details why it uses them, not only why it has a second ring, but specifically why counter-rotating. Provide details what that provides, and how it uses them. 2.   What are the two pri..

  What does it mean that a class is ancestor of another class

what does it mean that a class is ancestor of another class?

  Create case manifest and record order fulfillment

Develop sequence diagrams for the use cases Enter New Order, Create Case Manifest and Record Order Fulfillment . Update the design class diagram with attribute information and method signatures derived from the sequence diagrams.

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