Main method: 1. Setup the taxpayer file for input 2. Setup the taxinfo file for output 3. For the first twenty records a. Read one record from the taxpayer file (Name, Company, Salary) b. Save into three arrays (String, String, double) c. If salary z 10000000.00 i. taxRate = 40.00 d. otherwise i. taxRate = 53.00 e. Calculate the tax owed ( call method calc Tax(salary, taxRate) f. Write the record to the taxInfo file 4. Close the taxpayer file 5. Close the taxrate file 6. Display a status message on the screen (e.g. records stored in file.) 7. Display the records on the screen Other methods: calc Tax method (double salary, double taxrate) returns tax owed 1. tax owed = salary * taxrate / 100 Return tax owad
Main method: 1. Setup the taxpayer file for input 2. Setup the taxinfo file for output 3. For the first twenty records a. Read one record from the taxpayer file (Name, Company, Salary) b. Save into three arrays (String, String, double) c. If salary z 10000000.00 i. taxRate = 40.00 d. otherwise i. taxRate = 53.00 e. Calculate the tax owed ( call method calc Tax(salary, taxRate) f. Write the record to the taxInfo file 4. Close the taxpayer file 5. Close the taxrate file 6. Display a status message on the screen (e.g. records stored in file.) 7. Display the records on the screen Other methods: calc Tax method (double salary, double taxrate) returns tax owed 1. tax owed = salary * taxrate / 100 Return tax owad
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Please help me with this using java
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 5 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY