a program that reads a rentals.csv file into an array of structures. There are o
ID: 3907256 • Letter: A
Question
a program that reads a rentals.csv file into an array of structures. There are only 20 rental units available, so your array must be copable of holding at most 20 contracts. The structure for the rental contracts must contain a tenvont's name. thhe rumber of charge. the pet charge and their total monthly rent. The initial dato fie that is read in only contains the name, number of bedrooms, and number of pets. Your main() will contain the array and will call three functions: loadDato calculateMonthlyRent(), and printReport0. loadData() function: This function is responsible for reading in the data trom the file into your array and will return the total number of tenants calculateMonthlyRent() function: This function will use the information in your All of this information will be stored within the tenant's structure. Your function array to calculate the rent charge, the pet charge, and the total monthly rent. must initialize an array of rental prices as follows: 500.00 650.00 800.00 2 bedroom 3 bedroom The total monthly rent will be based on how many bedrooms they wish to have and whether or not they have pets. There is an additional charge of $9.50 per month for each pet that they have. printReport() function: This function will use the information in the array to print the rentalContract.txt file. You must tell the user that the report was successfully created after the report has been written. Please see the second page for what your rentalContracts.txt file should look lik this after your report was successfully created Once finished, you must print your source code (.c or cpp file) AND your rep File. IMPORTANT! You must ypload your source to the test in Moodle! Failu do so may result in a zero on the test! Please initial here that you have read this:Explanation / Answer
I know the solution to this problem. Just give me a couple of hours while i implement the c code with detailed comments and screenshots for better understanding. I assure you that you won't be disappointed in the solution at all! :):)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.