LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-16-2012, 01:03 AM   #1
soniaholly1
LQ Newbie
 
Registered: Feb 2012
Posts: 12

Rep: Reputation: Disabled
Seeking advice for a script to manage prices and discounts


for example there are customer want to play in:
KID and TODDLER..

for the kid
1 hour = 45
but for the toddler
1 hour = 60

if for example for the kid he got 5 hours to play he/she will be discounted in 15 %

and also for the toddler he/she will discounter to 10 % if he/she got 5 hours

i would enter in this:

Customer Name = "example gerry"
Type = "TODDLER or KID"
Time in = "example 10:00 Am"
Time out = "example 8:00 Pm"


and OUTPUT will look like these:...

8 Hours = 1000

Thank you come again!!!



----------------

like these please help me...
 
Old 02-16-2012, 01:07 AM   #2
kindofabuzz
Member
 
Registered: Mar 2010
Location: Memphis, TN
Distribution: Linux Mint 13, Ubuntu Server 10.04
Posts: 230

Rep: Reputation: 42
Do your own homework. If you can't even do this simple program, you won't go far. give up now.
 
Old 02-16-2012, 04:56 AM   #3
soniaholly1
LQ Newbie
 
Registered: Feb 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
naaa...

because i dont know, and you do not know also.. so i need help lol...
 
Old 02-16-2012, 06:33 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by kindofabuzz View Post
Do your own homework. If you can't even do this simple program, you won't go far. give up now.
Please, don't be so harsh, especially towards a first time poster! If you detect some irregularity, the best thing to do is to report the post and wait for a moderator step in. Thanks.
 
Old 02-16-2012, 06:38 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
soniaholly1, welcome to LinuxQuestions!

What have you tried so far? Please post your lines of code and feel free to ask if you are stuck somewhere or if you have some specific question. Don't expect someone write a script for you (be it homework or not). At least, you should show some effort.

Moreover, please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. I've changed it accordingly.
 
Old 02-16-2012, 08:47 AM   #6
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
The brain is like a muscle the more you use the stronger it become !

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Seeking advice for user creation script ramkumarramki Linux - Newbie 5 12-22-2011 06:50 PM
LXer: How to fetch NYSE prices with a simple bash script LXer Syndicated Linux News 0 09-24-2011 05:10 AM
Seeking advice on bash script satimis Programming 6 10-11-2004 11:01 AM
Seeking advice on script satimis Programming 1 10-05-2004 03:02 PM
Seeking Diagnosis Advice... verbal Linux - Hardware 2 09-12-2003 06:11 AM


All times are GMT -5. The time now is 04:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration