Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 (20 MARKS) The Nusa UniCity is a convenience college university that has three building of hostel (block A, B and C) located in
Question 2 (20 MARKS) The Nusa UniCity is a convenience college university that has three building of hostel (block A, B and C) located in Nusajaya. At the end of each year, the management wants to know the total bill of these hostels from January to December. They have decided to use a computer program to help them in analyzing the h been appointed to develop the program using C language. The requirements of the program are as follow ostel's bill. You, as a freelance programmer have Input . The program should read in bill data from a text file . The format of the input file is as follows: Three columns are for block A, B and C bills. While twelve rows data is for January to December bill Figure 1 below shows an example of input file named "bil12016.txt" containing bill data for the year 2016. 2840 3030 2530 2760 3220 3140 3080 3110 2960 2890 2940 2700 4500 4740 4620 4560 4720 4800 4600 4530 4420 4260 4360 4200 3760 3630 3720 3850 3940 4070 3860 3800 3770 3680 3600 3550 Figure 1: An example of input file, "bil12016.txt" Output: . The program should print out a report into a text file named "report2016.txt". . The report should include o o o The total bill for January to December The total, max and min bill for each hostel. The grand total of bill, over all hostel bills throughout the year Figure 2 shows an example report file for the sales data of the year 2015
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