Solved

Please help as soon as possible.

Posted on 2004-04-28
36
156 Views
Last Modified: 2010-04-05
Problem1: Five rand shop(all items costs R 5), according to costomer type....
a. scholar gets 10% discount.
b. student gets 5% discount.
c.pentioner gers 20% discount.

I need (total) prise value, (discount) value and (amount due) value.

Thanks

0
Comment
Question by:Preditor123
  • 11
  • 7
  • 6
  • +2
36 Comments
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
?? homework ??
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Yup!

Shane
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
Meikl Investigation LTD -  Homeworks discovering....
Teachers never been so warranted as now :))))))

F68 ;-)

0
 
LVL 11

Expert Comment

by:calinutz
Comment Utility
:)))))))))
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
I guess he didn't like your answer Meikl.... Im glad he didn't do a split.....

<SMILE>

Shane
0
 

Author Comment

by:Preditor123
Comment Utility
Will you help with the code, I am still a novice and try to understand how these programs work, to lead by example.
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Why did you close the question out?

Why didn't you respond when kretzschmar asked if this was a home work assignment (which it has all the characteristics of)?

If you are a novice, and you are trying to understand how programs work, - you dont ask a question like the one above.

Shane




0
 

Author Comment

by:Preditor123
Comment Utility
To shane.....

Since you are so active in this site, please give a hand with my problem, I have many more to complete. Don't wast you talent!

Be happy
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
You will need to post questions, so all experts have an opportunity to participate.....

Again, that can't be homework assignments....


Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
OK, what is going on here..... kretzschmar, i think he needs help on using EE

Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Thanks Meikl!

Shane
0
 

Author Comment

by:Preditor123
Comment Utility
I am trying to learn how to program in delphi. I use a text book "Introducing Delphi Programming". The problem that a try to solve is problems in the text book. I do this in my spare time, and I don't have a lot of it. This is not homework or assignment, I just want help.

0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
mmm...until now i've smiled reading this thread, but now i think that there's something wrong in the air...

Preditor123, note that this is not the right way to get help from Ex-ex experts....joking is good for a while, persistence is quiet an offending action....
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
ok, the only person who hasnt had their answer accepted so far is calinutz.

:)

Shane
0
 

Author Comment

by:Preditor123
Comment Utility
Ferruccio68

Please show me the right way to get help, I am willing to learn, if you are offering.
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
Suggestion to the P.E. :
Ask for a moderator to investigate in this thrade and eventually lock the Preditor123 account....
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Actually, Ferruccio68, i dont think he is being malicious, I truly dont think he knows what is is doing. Meikl! has  asked him to go and read the help sections, but so far, he has not done so.....


Shane
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
mmm...shane, i'd understand if it was the first or the second time...but re-accepting a different non-answer for 3 times seems simply a joking game...

0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Maybe....

Shane
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
Sounds good to me!

Shane
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
and now guys? what about this?

BTW for locking account i'was meaning about a Community Support Moderator action, not by PE... maybe he could decide to freeze his account for a few time....
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
@phew, guessing i need a moderator ...

i guess too...

Shane: you're in Ex-Ex Guinness: two time accepted in the same thread without posting an answer :))))
0
 
LVL 11

Expert Comment

by:shaneholmes
Comment Utility
:)))))

Shane
0
 

Accepted Solution

by:
Preditor123 earned 0 total points
Comment Utility

procedure TfrmFiveRandShop.radScholarClick(Sender: TObject);
const Item = 5;
ScholarDiscount = 0.1;

var Scholar, Discount, AmountDue, Total : double;

begin
  Scholar := StrToFloat(sedNumberOfItems.Text);
  Total := Scholar * Item;
  edtTotal.Text := 'R ' + FloatToStrF(Total,ffFixed,8,2);

  Discount := Total * ScholarDiscount;
  edtDiscount.Text := 'R ' + FloatToStrF(Discount,ffFixed,8,2);

  AmountDue := Total - Discount;
  edtAmountDue.Text := 'R ' + FloatToStrF(AmountDue,ffFixed,8,2);
end;

procedure TfrmFiveRandShop.radStudentClick(Sender: TObject);
const Item = 5;
StudentDiscount = 0.05;

var Student, Discount, AmountDue, Total : double;

begin
  Student := StrToFloat(sedNumberOfItems.Text);
  Total := Student * Item;
  edtTotal.Text := 'R ' + FloatToStrF(Total,ffFixed,8,2);

  Discount := Total * StudentDiscount;
  edtDiscount.Text := 'R ' + FloatToStrF(Discount,ffFixed,8,2);

  AmountDue := Total - Discount;
  edtAmountDue.Text := 'R ' + FloatToStrF(AmountDue,ffFixed,8,2);
end;

procedure TfrmFiveRandShop.radPensionerClick(Sender: TObject);
const Item = 5;
PensionerDiscount = 0.2;

var Pensioner, Discount, AmountDue, Total : double;

begin
  Pensioner := StrToFloat(sedNumberOfItems.Text);
  Total := Pensioner * Item;
  edtTotal.Text := 'R ' + FloatToStrF(Total,ffFixed,8,2);

  Discount := Total * PensionerDiscount;
  edtDiscount.Text := 'R ' + FloatToStrF(Discount,ffFixed,8,2);

  AmountDue := Total - Discount;
  edtAmountDue.Text := 'R ' + FloatToStrF(AmountDue,ffFixed,8,2);
end;

0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
glad, you got it solved byself,

sorry, that this question is a bit mixed

-> you may ask at community-support topic for paq this q
and refund points

meikl ;-)
0
 

Author Comment

by:Preditor123
Comment Utility
Hello Kretzschmar

Will you please add me in the following...

I have read the help file, and it was very helpfull. I went to the Cummunity Support Resouse Channel to awnser my own question, but my question is not availible to me any more. I want to close this question and ask for refund of points.

Will you please aid me to how I should go about my request.

Thx

Preditor    

0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
Hi Preditor....
first: Don't click that accept  button until you find a right and useful solution to your question....
Accept means that you want to accept a comment as an answer to your question and this will clos the question itself....
To add comments just write into the Post a Comment Box and click Submit. You don't have to Accept until you really want to close the question...

Second: to ask for closing and refunding you have to post a question On Community Support (here: http://www.experts-exchange.com/Community_Support/) with a link to the question that you want to delete or close because was answered by yourself....

So now you could go there post a question to Unaccept, PAQ and refund points for this question...hope this help and clearify how to feel this forum
F68 ;-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now