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

  Report on elliptic-low pass-bandpass-butterworth

Understanding Elliptic filters:  Elliptic filters are a class of filters that are well understood and well documented, even though their treatment in our textbook is extremely brief.

  Describe constraints which encode that cell is observed

Describe constraints which encode that cell (1, 2) is observed and indicates mine is not present, that cell (2, 1) is observed and indicates a mine is present, and that remaining cells are unobserved.

  Characteristics of professionals collapse

How might definitions of plagiarism vary across cultures and Characteristics of professionals Collapse

  Design a remote access control policy for richman

Richman Investments is an investment and consulting firm. The company wants to expand its business operations both in the U.S. and in foreign countries. It intends to eventually have 10,000 employees in 20 countries.

  Write a president class in java

Write a President class in java which will keep track of the following information of any president of the United States: Name,President Number,Date of birth and Date of death.

  Public key cryptography

The format of an X.509 certificate is described in

  Write a while or do-while loop

If the user enters a number that is not on the interval, informatively re-prompt until the user enters an appropriate number.

  Which five google technologies

1. Which five Google technologies would you like to research for your Final Case Studies?

  Course major and gpa of any students on athletic scholarship

Using the data from the database you created yesterday for me:Extract the First and Last Name, Student ID, Course Major and GPA of any students on athletic scholarship. Sort by Student ID. Produce a report with the data from Step #1 and Use good head..

  Use the readline() method to obtain a value from the user

Write a code segment that will analyze a numeric value provided by the user to determine if he or she is a newborn, a child, a teenager, or an adult. Make sure to include the following in your code:

  What feature in windows vista provides a permission dialog

Moving from one NTFS partition to another creates one copy of the object. The object in the new location inherits the permissions of the new location. So the newly moved file cannot have different permissions than the original.

  Program to find out median selling price

Input selling prices of all homes in Botany Bay sold during year 2002 and find out median selling price. The median of a list of N numbers is.

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