Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

Program should read in a file called “sales.txt”

Program should read in a file called “sales.txt”. The contents of the text file are below. Create the sales.txt file with the following data: 10 100.00 9 18.18 100 50.00 64 121.22 560 1020.00 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. Round the sales tax using basic math to round it. Do NOT use printf or any rounding function to perform this. Here is a few hints that I got. So the tax rate is a double as you know. What you need to do is convert it to an integer first by multiplying by 100 and storing as integer. Then convert it back to a double and store it as a double. What this does is round it by getting rid of anything that is going to be over 2 decimal places. This is what I have so far. I just need the Total Tax and Total Sales . This is what I have so far. import java.util.Scanner; import java.io.File; public class SalesTax { public static void main (String[] args) throws Exception { //Scanner stdIn = new Scanner(System.in); Scanner stdIn = new Scanner (new File (“sales.txt”)); int fUnit = stdIn.nextInt(); // First number of units double fPrice = stdIn.nextDouble(); // First Unit Price int sUnit = stdIn.nextInt(); // Second number of units double sPrice = stdIn.nextDouble(); // Second Unit Price int tUnit = stdIn.nextInt(); // Third number of units double tPrice = stdIn.nextDouble(); // Third Unit Price int foUnit = stdIn.nextInt(); // Fourth number of units double foPrice .nextDouble(); // Fourth Unit Price int fiUnit = stdIn.nextInt(); // Fifth number of units double fiPrice .nextDouble(); // Firth Unit price double taxRate= 0.085; double TotalSales = (fPrice + sPrice+ tPrice + foPrice + fiPrice); double TotalTaxes = (TotalSales * taxRate); double GrandTotal = (TotalSales + TotalTaxes); System.out.println(“TotalUnits = t” + (fUnit + sUnit + tUnit + foUnit + fiUnit)); System.out.println(“TotalSales = t$” + (fPrice + sPrice+ tPrice + foPrice + fiPrice)); System.out.println(“TotalTaxes =t$” + (TotalSales * taxRate)); System.out.println (“GrandTotal=t$” + (TotalSales + TotalTaxes));// end main// SalesTax

WHAT OUR CURRENT CUSTOMERS SAY

  • Google Rating
  • Sitejabber
  • Trustpilot
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.

ORDER NOW

Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

————-

See Why Our Clients Hire Us Again And Again!


OVER
10.3k
Reviews

RATING
4.89/5
Avg Rating

YEARS
12
Experience

Elite Academic Research Promises You:


Always on Time

If we are a minute late, the work is on us – it’s free!

Plagiarism-free

If the work we produce contains plagiarism we’ll pay out a £5,000 guarantee.

Quality

Providing quality work is core to our beliefs, which is why we will strive to give you exactly that, and more!

Written to Standard

All of our assignments go through a stringent quality checking process from start to finish.

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

YOUR EDUCATION ON AUTOPILOT

Pay an expert to take your online class and say goodbye to poor grades, missed deadlines, and the struggles
of balancing your education with other work/life responsibilities. Life Is too Short to Spend on Classes
You Have No Interest In. Focus on what is really important in your life. Let our professional handle your class.

    Guaranteed A or B

    100% Confidential

    Experienced Tutors

    24/7 Support

Fill in free quote request

Tell us about your online class and what help you need. Try to give us the maximum information.

Agree on price

Our representative will contact you to discuss the details of your order and the rates for our assistance.

Pay and get help

When everything is agreed, you will receive an email with the invoice. After you pay, we start working on your task.