111

cym13 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 19 16:35:04 PST 2016


On Saturday, 20 February 2016 at 00:04:04 UTC, Lisa wrote:
> On Saturday, 20 February 2016 at 00:01:47 UTC, cym13 wrote:
>> On Friday, 19 February 2016 at 23:56:29 UTC, Lisa wrote:
>>> Can you please help me and explain how to create a program, 
>>> which would find area of triangle and its perimeter?
>>
>> What do you need help for exactly? What have you tried? What 
>> do you struggle with?
>
> With everything, actually i need full explanation and listing 
> of programm from its beginning

I don't think you'll ever get the program listing here, it's just 
not how it works. We can help you, guide you to the solution but 
you are the one that has to do it otherwise it defeats the whole 
purpose of the exercise.

First of all, programming is explaining a solution to a really 
dumb student (the computer). If you can't do it by hand, you 
can't explain it to the computer. Once you can do it by hand, 
decompose each step into steps as simple as possible and write 
them down on paper. Then it's just a matter of translating your 
pseudo-code on paper to real code: if it's an exercise I'm sure 
you have had courses and examples. Take inspiration, try things 
and don't hesitate to fail: nobody expects you to get it right on 
the first time.


More information about the Digitalmars-d-learn mailing list