If they choose to show the report, for each sales person display the following: • amount sold • name • commission percent (with 2 decimals) • amount earned (with 2 decimals) Sample Output: ABC Company Report $ 10001 Barnes, Julia, 6.00% ($600.06) $ 4500 Lee, Emma, 4.50% ($202.50) $ 1001 Li, Vincent, 4.50% ($45.05) 2$ 5800 Retter, Adam T., 5.25% ($304.50) $ 999 Smith, Ada, 3.00% ($29.97) Total Sales: $22301 The Sales Report has been saved to "sales_report.txt" Write the array to an output file using the same format as shown above. Create the output file name from the input file name: take the input file name and add_report.txt to it. If the input file name is sales, the output file name with extension is sales_report.txt. Finally, release the memory (deallocate the array) and terminate the program.
If they choose to show the report, for each sales person display the following: • amount sold • name • commission percent (with 2 decimals) • amount earned (with 2 decimals) Sample Output: ABC Company Report $ 10001 Barnes, Julia, 6.00% ($600.06) $ 4500 Lee, Emma, 4.50% ($202.50) $ 1001 Li, Vincent, 4.50% ($45.05) 2$ 5800 Retter, Adam T., 5.25% ($304.50) $ 999 Smith, Ada, 3.00% ($29.97) Total Sales: $22301 The Sales Report has been saved to "sales_report.txt" Write the array to an output file using the same format as shown above. Create the output file name from the input file name: take the input file name and add_report.txt to it. If the input file name is sales, the output file name with extension is sales_report.txt. Finally, release the memory (deallocate the array) and terminate the program.
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
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 8 steps with 8 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