Sponsored Content
Full Discussion: URGENT HELP NEEDED
Top Forums Programming URGENT HELP NEEDED Post 302575204 by watisevil on Monday 21st of November 2011 12:44:41 AM
Old 11-21-2011
URGENT HELP NEEDED

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)...please help me do this
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

urgent help needed !!

i have a script, which is continuously looping. i want to view the script name when i use ps command... it is only showing -sh ... UID PID PPID C STIME TTY TIME COMMAND informix 8533 20923 0 18:19:28 pts/ta 0:00 -sh but i dont have my scriptname displayed .... how can i do that my script is... (0 Replies)
Discussion started by: guhas
0 Replies

2. Shell Programming and Scripting

urgent help needed.

Ok I admit it I am stumped and I would appreciate any and all help Here is what I am trying to do. Korn Shell script I am setting a variable to another shell script that I want to invoke in my main script like so: GETDIR=/vol100/cfg/.getdir The .getdir shell script take a parameter,... (4 Replies)
Discussion started by: Batch
4 Replies

3. UNIX for Dummies Questions & Answers

Urgent help needed

Hi I am using DB2 as the database and i am reading syscat.columns from the database. I want to manipulate the rows returned by running SQL query from the shell script. The manipulation involves addition and deletion of the rows from the resultset. All the above i want to do using SQL... (5 Replies)
Discussion started by: skyineyes
5 Replies

4. Shell Programming and Scripting

urgent needed

hi i want solution regarding usage of array. i m having code which is written using if- elif and can i use or access using arrays. here i wana use array values along with if -elif condition. i dnt wana use command line argument parameter1=(scram no_scram) if ; then ... (0 Replies)
Discussion started by: manish1
0 Replies

5. Windows & DOS: Issues & Discussions

Urgent XP help needed Please

Hi, Please accept my apologies if I have not explained anything clearly enough but i am a little old on new lingo!!! I am running XP from home and last night the following happened. After being logged on for pretty much the full day, I had what seemed like a pop up come up. Although most pop... (3 Replies)
Discussion started by: nike1601
3 Replies

6. UNIX for Advanced & Expert Users

Urgent help needed!!!

-------------------------------------------------------------------------------- hy guys, i got few interview questions i need someone to answer urgently: 1)If you cant get to the root, you try to fsck it, but gets errors to read file systems. What steps do you take to recover the host... (1 Reply)
Discussion started by: charneet
1 Replies

7. Shell Programming and Scripting

Urgent Help Needed.

Hi, Below is my issue which I desperately need and I want a shell script which can do this job. I need this script as I m planning to put this for a system health check. Please assist me. 1. There are 10 log files in a particular location. 2. open each log file. Goto to the end of the... (1 Reply)
Discussion started by: kashriram
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent Help Needed

Hello Friends, I am a Graduate in Computers. I completed BCA degree this year. I want to make my career in UNIX. But, unfortunately I don't know anybody who can guide me. I am totally confuse because I don't know where to start and what are the future prospect in UNIX. Please give your... (4 Replies)
Discussion started by: Luckyless
4 Replies

9. Shell Programming and Scripting

Urgent Help needed !!!

Hi, I have a directory, where i get 4 files for each day... The files will be generated at any time. I am trying for a shell script for copying the file from this directory whenever new file is generated. Say for example : If the directory X has following files A1,A2,A3,A4,B1,B2,B3,B4...... (2 Replies)
Discussion started by: krishh.kk
2 Replies

10. Shell Programming and Scripting

Urgent Help needed...

Hi I want to create a script which deleted files in the following folders older than 30 days. There are a particular version of files inside it to be deleted Folders : /files0/interfaces/ResponsysSavedList/BackInStock/EmailContent/backup... (3 Replies)
Discussion started by: Scudza
3 Replies
ppud(1M)																  ppud(1M)

NAME
ppud - Pay per use daemon SYNOPSIS
DESCRIPTION
is a daemon that provides system configuration and core usage information to a utility meter system for billing purposes. This daemon runs on Pay per use systems and meters core utilization and system configuration information. The daemon sends this information to a utility meter as an XML file. When a report is sent to a utility meter, it is also written to the file /var/ppu/PPUReport.xml. This report is best viewed using a web browser that understands XML. If the connection to the utility meter fails, the daemon caches the report data until the connection is restored. The daemon re-spawns itself if killed. The following entry is added to /etc/inittab in order to have start and re-spawn itself: The daemon is automatically started when a system boots if a utility meter has been specified via the command (see ppuconfig(1M)). The daemon does not need to be restarted when the meter configuration is changed via the command. The daemon reports errors via syslog. To unconfigure Pay per use, execute: Warning: if this is a Pay per use system and the daemon is not running, usage reports will not be sent to HP and usage may be assumed to be 100%. The daemon performs periodic operations based on the time of day. The daemon is spawned by and gets its timezone specification from the /etc/default/tz file. By default the timezone specified in /etc/default/tz is EST5EDT. You can specify which timezone the daemon uses to interpret its current time by modifying the /etc/default/tz file. Refer to environ(5)) for details of the format. A restart of the daemon is required before the new timezone value takes effect (i.e. kill the /usr/lbin/ppud process). For more information see the Pay per use User's Guide located at /usr/share/doc/PayPerUseUserGuide.pdf AUTHORS
ppud was developed by HP. FILES
/etc/default/tz File contains the timezone value used by . The format for the file is the same as the the environment variable format without the prefix . (See environ(5) for details of the TZ format). /var/ppu/cache/ Directory contains the report data that is cached if the connection to the utility meter fails. SEE ALSO
ppuconfig(1M), ppu(5) ppud(1M)
All times are GMT -4. The time now is 10:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy