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

  What would be the output of the countdown routine

Recursion is a powerful technique that is often utilized for a variety or problems. Often, people think iteratively rather than recursively. However, when thinking computationally, as in computer language, recursive techniques are often utilized.

  Pointers to pointers is a term used to describe

Pointers whose contents are the address of another pointer.

  Write a program to sort students'' gpa in descending order

write a program to sort students' GPA in descending order.

  Create a class named vehicle that acts as a super class for

Create a class named Vehicle that acts as a super class for vehicle types

  Distinguish between traditional and operational bi

Distinguish between traditional and operational BI.

  When using uml to describe the classes

When using UML to describe the classes, what is UML? What does a + or - signify

  initialize the temperature to 100 degrees celsius

Initialize the temperature to 100 degrees Celsius. In a loop, decrement the Celsius value and compute the corresponding temperature in Fahrenheit until the two values are the same.

  Discuss the different ways to represent negative integers

Write a 2 page research paper on unsigned binary and 2's complement binary representations. Explain the concepts using at least an example. Use at least two resources (Wikipedia sources are not permitted) and list each resource used at the end of..

  What will be the contents of the top 10 bytes in the stack

What will be the contents of the top 10 bytes in the stack?

  Consultant for being brought in by xumuc

You are a consultant for being brought in by XUMUC to assist with a merger with another company.

  Java is a complete development language and platform

You have learned that Java is a complete development language and platform.

  It budget on security

What you need to convey to your CEO is that network attacks are continuing to make the news and organizations have reacted by increasingly spending more of their overall IT budget on security. Business executives are starting to have questions about ..

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