Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c++ Please read through the specification below. Any program that doesn't compile is an automatic 0. http://moodle.bergen.edu/pluginfile.php/1465974/mod_assign/intro/PG4.docx Two test files are included for you
in c++ Please read through the specification below. Any program that doesn't compile is an automatic 0.
http://moodle.bergen.edu/pluginfile.php/1465974/mod_assign/intro/PG4.docx
Two test files are included for you to run your program with. Please create 2 additional test files, and show me the output for those as well.
Submit your .cpp file source code, 4 output files, and your two additional test files you ran your program with.
Programming Assignment 4 We have a text file, pastdue.txtattached), that contains data for past due invoices. The input file resembles the following LastName FirstName DaysofRental BalanceDue Smith Joe 15 100.50 Doe John 10 95.20 Anderson Paul 30 20.00 O'Donell Miriam 10 24.30 Foster Sam 30 15.00 Preconditions: File always has 10 records The specification is as follows 1. Sort the input file by last name, and create a new sorted file called "sorted.txt" 2. In the new file you created in 1., alsa include the following information a. Total balance due, which would be the sum of all records b. Customer with the highest number of rental days c. Customer with the highest balance due The output file should look as follows: LastName FirstName DaysofRental BalanceDue Anderson Paul 30 20.00 Doe John 10 95.20 Foster Sam 30 15.00 O'Donel Miriam 10 24.30 Smith Joe 15 100.50 Total Balance Due for file: 255.00 Customer with the highest number of rental days are: Paul Anderson, Sam Foster Customer with the highest balance due are: Joe Smith Submission All programs need to be submitted to modle, Only submit your con file Grading Grades are calculated based on efficiency, correctness and style. Any program that is submitted and does not compile will receive an automatic F, no questions asked, and absolutely no resubmissions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started