Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make a comprehensive C program (Including all required functions) with the aim of calculating the cost of power for a specific apartment building in each

image text in transcribed
Make a comprehensive C program (Including all required functions) with the aim of calculating the cost of power for a specific apartment building in each neighborhood. A file called ElectrilicConsume.at contains details regarding the amount of electricity used by each home during the specified number of days, and the file Days.txt contain number of days regarding to each consume (Example: If the first line of the file Days.txt contains is and the first line of ElectricConsume.txt contains 157, then 157 Kilowatts of electricity were consumed over the course of 15 days.). The program's objective is to calculate the cost of energy for each apartment based on the quantity of Kilowatts consumed and the cost of each Kilowatt. The program's other goal is to estimate the cost of each apartment based on average consumption across all units and to specify the degree of accuracy for each estimate. The program should use different functions to calculate the Exact electric fees for each apartment based on the price of Kilowarf and the addition of tax, as shown in the equation below. Other function specifies to calculate the Aparoximate Electris Fees based on the total number of days and total electric consumed for all apartments, Other function that specifies to define the level of accuracy based on the difference between exact and approximate values A specific file called ExactFeess.tat must include the values of ExactFees, which represent the exact fees for each apartment. A particular file called AporoximateFeestat will be used to store the values of ApproximateFees for cach apartment. This file contains all approximate Fees for all apartments (Append is needed. here). The Value of Accuracy for each apartment will be written to a specific file called Accuracy.txt Moreover, the values of accuracy for each apartment approximate fees will be written to the sereen. Imprtant Eouations and constructions Eract Electric fees- No.Kn Coasumed per day ' Price + Tax. Price for canwaing betwern 50-150Kn ia e.82 Nic per Kw and the Tax in 14.8"s Price fer canwanieg mare 150 is a sNike and the Tax 61655 . Ameuat of Electric Censumed Per day - Tatal Number of electric consumed Total number of day. Accuracy - ABS(ExactFeen ApproximateFesy ( (ExactFentAproximateFeen 2)100

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Address an envelope properly.

Answered: 1 week ago

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago