English
Source / code snippets

Lichtband-Leuchtbalken into space fitting

 

p.specht

In workshops is good light for quality the work important. Lichtbänder consist of Leucht-beam verschiedener length. target is it, The Raumlänge almost without Zwischenraum ("Gap") To fill. thereby but should too the Price the installation voices. enclosed my suggestion, How to the optimize could:
Window Title "Lichtband-Raumeinpassung with 3 Längen"
'(D) DEMO-PROGRAMM, ONLY FOR PRIVATE ZWECKE UND OHNE JEDWEDE GEWÄHR!
declare il&,jl&,kl&
declare ip&,jp&,kp&
declare mp&,rp&
declare Raumlaenge&
declare Montagetoleranz&
declare i&,j&,k&, L&,Gap&
cls:font 1

REPEAT

    Print "\n Raumlaenge [cm]: ";:input Raumlaenge&:print
    'case Raumlaenge&=0:Raumlaenge&=356 'cm
    Montagetoleranz&=11'cm utterly per space
    'dimensions: length the available Lichtbalken
    il&=45:jl&=70:kl&=100
    'Balkenpreis
    ip&=17:jp&=24:kp&=35
    'Montagekosten per beam:
    mp&=6
    'Raumfixe cost (Verrohrung, switch, cans)
    rp&=42

    whileloop 0,20:i&=&Loop

        whileloop 0,30:j&=&Loop

            whileloop 0,50:k&=&Loop

                L&= i&*il&+j&*jl&+k&*kl&

                if L&<=Raumlaenge&

                    gap&=int(Raumlaenge&-L&)

                    if (gap&>=0) and (gap&<Montagetoleranz&)

                        print " type I = ";i&;", J = ";j&;", k = ";k&;"  Montage-Gap=";gap&;" [cm]",
                        print tab(56);" cost: ";int(RP&+mp&*(i&+j&+k&)+i&*ip&+j&*jp&+k&*kp&);" [u]"

                        if %csrlin>30:sound 200,20:waitinput:cls:print:endif

                        endif

                    endif

                endwhile

            endwhile

        endwhile

        sound 2000,40
        waitinput 1000

    UNTIL %key=27

 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/28/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.435 Views

Untitledvor 0 min.
Gast.081511/20/24
Member 862464105/12/24
Stringray01/05/22
p.specht11/21/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie