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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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