Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

4 What are the alternatives to the competences approach?

Answered: 1 week ago

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago