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

  Recover the corresponding encryption key

1. Recover the corresponding encryption key knowing that the first ciphertext word corresponds to plaintext "Recall".

  Functions of the universitys library electronic database

Develop a unit test plan for key functions of the university's library electronic database.

  Windows word is an example

Windows Word is an example of System software. Platform software.

  Explain the difference between a fluorescence emission spect

Explain the difference between a fluorescence emission spectrum and a fluorescence excitation spectrum. Which more closely resembles an absorption spectrum?Why do some absorbing compounds fluoresce but others do not?

  Migrating business-critical applications

Migrating business-critical applications

  What are the risks associated with the loss of these data

Based on the Ledford (2012) article, what special issues must be considered for corporate data which are not fully digitized? What are the risks associated with the loss of these data? What recovery procedures do you recommend for these situations..

  Write a java program which compiles and executes

Write a Java program which compiles and executes

  Estimate how much speedup would be gained from change

Suppose you are designing a computer system and are considering a change to your original design. Estimate how much speedup would be gained from this change. You must.show your work.

  Will estimate emotional state of some user

Will estimate emotional state of some user

  Investigate and discuss how data is structured

Choose any two of the problem areas and discuss in detail how the database approach solves the problem when compared to alternative approaches.

  Explain the operation of the device from a physics perspec

Explain the operation of the device from a physics perspective and discuss the main features or specifications. Explain how the packaging, assembly, or housing makes the device appropriate for the unique environmental conditions. Be sure to provide a..

  How the pages hold style continuity in grid system

Export the finished article as PDF format AND also give me the original indesign file, and the fonts you used.

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