Linux Programming

closed account (1CohAqkS)
KING KONG ELECTRICITY AUTHORITY
BILL CALCULATOR
You are required to develop a script that will enable KING KONG ELECTRICITY AUTHORITY to
calculate customer bills based on their meter readings.
The customers are categorized into the following categories:
 Residential customers
 Commercial customers
Residential tariff rates
If the units of power consumed is less than or equal to (<=) 75 kW per month, the government
will subsidize at the rate of 17.64 cents per unit for all consumptions equal to or less than
75kW per month and in effect the customer will pay 17.20 cents per unit.
If the units of power consumed are greater than (>) 75 kW per month, the user is not entitled
for government subsidy. All consumptions will be charged at the rate of 34.84 cents per unit.
Commercial tariff rates
If the units of power consumed is less than or equal to (<=) 14,999 kW per month, the
consumer is charged at 42 cents per unit. The excess units will be charged at 44 cents per unit
and added to the overall total.
Program flow:
The following are the inputs to the program:
1. Client name
2. Client address
3. Client category (“R” for residential or “C” for commercial)
4. Date of meter reading
5. Period of meter reading (start month – end month)
6. Previous meter reading
7. Current meter reading (30 days)
The following calculations should be done:
1. Units consumed (current meter reading – previous meter reading)
2. Total billing (VEP)
3. Total VAT @ 15%
4. Total billing (Total billing (VEP) + VAT)
closed account (1CohAqkS)
im new to linux plzzzzzzzzzzzzzzzzzzz help me in doing my assignment.....i have no idea what to do!!!!!!!!
closed account (1CohAqkS)
echo "************************************************************"
echo " KING KONG ELECTRICATILY AUTHORITY"
echo " Monthly Billing Calculator"
echo "***********************************************************"

echo "Please Enter The Name of the Client"
read name
echo "Please Enter Client Address"
read address
echo "Please Enter Client Category R"
read category
echo "Please Enter the date of meter reading"
read xx
echo "Please enter the period of meter reading"
read time

I HAVE DONE ONLY THIS MUCH PLZZZZZZZZZ HELP ME.....
closed account (1CohAqkS)
PLZZZZZZZZZZZZZZZZZZ HELPPPPPP MEEEEE IT URGENT......
closed account (1CohAqkS)
PLZZZZZZZZZ help meeee....
closed account (1CohAqkS)
please can anyone help me...
Stop this PLZZZZZZZZZZZZ stuff, no one is going to help you for adding too many ZZZZZZ!

Anyway what exactly is your problem? What have you done up to now?

You are supposed to program it in Linux environment? If so do you know how to write the code in other environments? I am asking this because I think that you can write your program in a platform independent way in plain C++. No need to use platform specific commands. If you don't know how to do some thing in Linux ask (specifically) for these.

Hope I was clear enough.
skills wrote:
echo "************************************************************"
echo " KING KONG ELECTRICATILY AUTHORITY"
echo " Monthly Billing Calculator"
echo "***********************************************************"

echo "Please Enter The Name of the Client"
read name
echo "Please Enter Client Address"
read address
echo "Please Enter Client Category R"
read category
echo "Please Enter the date of meter reading"
read xx
echo "Please enter the period of meter reading"
read time


This is not C++. What language are you supposed to be writing this in?
closed account (1CohAqkS)
its supposed to be written in scrip........
its supposed to be written in scrip........


This is a C++ forum. We do C++. No scrip........
Topic archived. No new replies allowed.