Utilize a constant called taxrate to hold the tax rate

Assignment Help Basic Computer Science
Reference no: EM13897462

Program should read in a file called "sales.txt". The contents of the text file are below.

Read in all data from the file. (refer to pages 102-103)

  • Sore units in integers and store sales in doubles.
  • The first integer is the first unit sales. The first double is the first $ of all the sales combined.
  • This continues through all five units.

Utilize a constant called taxRate to hold the tax rate of 8.5%.

Output the following items per the sample below:

  • Total Unit Sales (the sum of all units)
  • Total Sales (the sum of all sales)
  • Total Tax (rounded) (sales times taxRate)
    • Type cast to int * 100, then double / 100.
  • Total Sale (not rounded) (sales plus tax)
  • Output results in table format using the escape character for a tab as shown in the sample.

 

 

Reference no: EM13897462

Questions Cloud

Compute the before- and after-tax costs of its debt : Compute the before- and after-tax costs of ITS debt. Compute the cost of equity (assuming all funds come from internal sources) Using the constant growth Gordon Dividend Valuation Model.
Essay describing the differing approaches of nursing leaders : essay describing the differing approaches of nursing leaders and managers to issues in practice
How will you motivate the employees : Motivation - You are promoted into a position previously held by a poor performing manager/leader who was fired. Employees did not respect and thus did not work hard for this manager just fired. How will you specifically motivate the 15 employees ..
Make databases useful to corporations : Evaluate the tools, technology, and trends that make databases useful to corporations. Provide an example of a corporate database and how your tools and technology would be used in the organization of your choice
Utilize a constant called taxrate to hold the tax rate : Program should read in a file called "sales.txt". The contents of the text file are below. Read in all data from the file. Sore units in integers and store sales in doubles.The first integer is the first unit sales. The first double is the first $ o..
Struggle for definition : The struggle for definition is veritably the struggle for life itself. In the typical Western two men fight desperately for the possession of a gun that has been thrown to the ground: whoever reaches the weapon first shoots and lives; his adversar..
Showing the number of peaks and assigning hyperfine coupling : Locate spectral parameters (g values, proton and nitrogen hyperfine coupling constants, solvent) for the product of the reaction between N-benzylidene-tert-butylamine N-oxide (the radical trap) and both dibenzoylperoxide and azobisisobutyronitrile..
How enterprise architecture and enterprise systems : 1. How enterprise architecture and enterprise systems influence, support, and enable an organization's ability to contribute to strategic decision-making.2. How enterprise architecture and enterprise systems respond and adapt to the business environm..
Calculate the number of miligrams of each metal : This time the liberated EDTA required 15.47 mL of standard 0.020 65 M Mn2+. Calculate the number of miligrams of each metal (Mn2+, Zn2+, and Mg 2+) in the 25.00 mL sample of unknown.

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