Question: You will make a natural gas bill calculation program. In order to make this calculation, you must first get the first and last index from

 You will make a natural gas bill calculation program. In order
to make this calculation, you must first get the first and last
You will make a natural gas bill calculation program.
In order to make this calculation, you must first get the first and last index from the user in order to calculate the measured volume from the meter. This value should be taken in cubic meters. When you subtract the first index you noted from the last index, you find the value in cubic meters, which is shown as the volume measured from the meter on the invoice. With these values, you should calculate the following formula.
Metered Volume (m3) = Last Index First Index
Gases are compressible fluids; therefore, the gas volumes measured at different pressures vary. According to the atmospheric pressure data obtained from meteorology, the correction coefficients are calculated according to the cities. The natural gas distribution company uses the correction coefficient to calculate the actual consumption volume of the consumer. This multiplier is the daily weighted average of the different coefficients in the billing period. The distribution company corrects the volume value measured from the meter (m3) by using the multiplier K in order to calculate the consumption volume on which it will base invoicing. For the K factor, the measurement pressure value should be obtained from the user. If this value is above 300 millibar, the k value should be updated to 6, if it is equal to or less than 300 millibar, the k value should be updated to 2. After the K value is found, the following formula should be calculated.
Adjusted Consumption (m3) = Volume Measured from Meter (m3) x Correction Coefficient (K)
Average upper calorific value gives the amount of energy obtained as a result of burning 1 m3 of natural gas in kilocalories (kcal) and is shown in kcal/m3 unit. The amount of energy to be obtained may vary depending on the gas mixture. You should get the actual upper calorific value of the billing period from the user. In order to find the energy consumption in kWh to be taken as a basis for the invoice, the following procedure is performed:
Consumption (kWh) = Adjusted Consumption (m3) x {Actual Upper Heating Value of the Billing Period (kcal/m3) / 860.42 (kcal/kWh)}
Extra info: It is accepted that 860,42 kcal energy is released from 1 kWh natural gas consumption.
Natural gas prices may change during the month you consume. Although prices are updated monthly, meter reading dates are variable. Therefore, the average retail sales price is taken as a basis while calculating the consumption price (invoice amount). This price is found by calculating the average of the natural gas prices that change during the month according to the meter reading dates and is displayed in TL/kWh. You should determine the Average Retail Price in accordance with the information in the table below.
Consumption Ranges
Average Price for 1 m3
0 522 m3
3,191 TL
522 5219 m3
3,174 TL
5219 m3 ve above
3,172 TL
Consumption Cost (TL) = Consumption (kWh) x Avg. Retail Price (TL/kWh)
The rate of value added tax (VAT) applied for natural gas consumption is determined as 18%. The VAT amount to be paid is calculated over the consumption price. If SKB is shown separately on the invoice, it must be included in the consumption price.
VAT = Consumption Cost x 0.18
After calculating the VAT value, the invoice amount is determined by the formula below.
Invoice Amount = Consumption Cost + VAT
Sample Output:
index from the user in order to calculate the measured volume from

The minutes. At the im tar th Your UL When the Genere The role were the 30 200 w Date a strom . in TLA. ca AN IMES LE DES 2 Comu. The exha mended the 2 Com Vomerometers in Chen Average per calificate of the ohned may vary depending on the game you the these to the one the nasa basis for the nice to proceed Consumption de Consumo chegar Extraweltscepted that 60.42 kalon.com Natural gas change in the more common w when the mount the year meeting de Theme Contion Average price for R 50. 11 132 1974 ve 112 Consumption Conti Como ustalen The common Tweve me ply enthe VAT - Canon Co. Art w ACVAT Sample Outot Last Index: 300 First IndextID Volume Measured from Meter 3: 200 Measurement Procure Value: 1500 Actual per floating Value of Being period 10.052334 Ponut iont 15.135399920068831 umpe on Cost: 40.29706116781150 VNT: 0.693471006606076 BI: 56.0532154417615 Wh.com.pl This question is 25 points The rate of value added tax (VAT) applied for natural gas consumption is determined s 18%. The VAT amount to be paid is calculated over the consumption AVO. Retail Price (TLIWN) separately on the invoice, it must be included in the consumption price VAT - Consumption Costx 0.18 After calculating the VAT value, the invoice amount is determined by the formula below Invoice Amount - Consumption Cost + VAT Sample Output: Last index: 300 First index: 100 Volume Measured from Meter (m3): 200 Measurement Pressure Value:1500 Actual Upper Heating Value of Billing Period:10.852334 Consumption: 15.135399920968831 Consumption Cost: 48.29706114781154 VT: 8.693471000606076 Bill: 56.990532154417615 When you complete your code, please paste it the field below of the question Be carbon Action 15 25 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!