Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Please help as soon as possible.

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
Preditor123
Asked:
Preditor123
  • 11
  • 7
  • 6
  • +2
1 Solution
 
kretzschmarCommented:
?? homework ??
0
 
shaneholmesCommented:
Yup!

Shane
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
Meikl Investigation LTD -  Homeworks discovering....
Teachers never been so warranted as now :))))))

F68 ;-)

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
calinutzCommented:
:)))))))))
0
 
shaneholmesCommented:
I guess he didn't like your answer Meikl.... Im glad he didn't do a split.....

<SMILE>

Shane
0
 
Preditor123Author Commented:
Will you help with the code, I am still a novice and try to understand how these programs work, to lead by example.
0
 
shaneholmesCommented:
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
 
Preditor123Author Commented:
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
 
shaneholmesCommented:
You will need to post questions, so all experts have an opportunity to participate.....

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


Shane
0
 
shaneholmesCommented:
OK, what is going on here..... kretzschmar, i think he needs help on using EE

Shane
0
 
shaneholmesCommented:
Thanks Meikl!

Shane
0
 
Preditor123Author Commented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
shaneholmesCommented:
ok, the only person who hasnt had their answer accepted so far is calinutz.

:)

Shane
0
 
Preditor123Author Commented:
Ferruccio68

Please show me the right way to get help, I am willing to learn, if you are offering.
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
Suggestion to the P.E. :
Ask for a moderator to investigate in this thrade and eventually lock the Preditor123 account....
0
 
shaneholmesCommented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
shaneholmesCommented:
Maybe....

Shane
0
 
shaneholmesCommented:
Sounds good to me!

Shane
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
@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
 
shaneholmesCommented:
:)))))

Shane
0
 
Preditor123Author Commented:

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
 
kretzschmarCommented:
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
 
Preditor123Author Commented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 11
  • 7
  • 6
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now