someone please help me to solve this coding...
Given 3 inputs - First input is previous reading, second input is current reading and last input is per unit charge , Write code to calculate the current bill.
Reading Format - XXXXXAAAAA where XXXXX is consumer number and AAAAA is meter reading.
Example:
input1 =ABC2012345
input2 = ABC2012660
input3 = 4
Bill = (12660 - 12345 ) * 4
output = 1260
Input and Output Format:
First input is a string that corresponds to the previous reading. Next input is a string that corresponds to the current reading. Third input is an integer that corresponds to charge per unit.
Output is an integer.
Sample Input 1:
ABCDE11111
ABCDE11222
3
Sample Output 1:
333