English
Source / code snippets

Perfektes Frühstücks-egg: Kochdauer-Formel

 

p.specht


Windowtitle "Eierformel"
'  Fun-Program (C)2009  by P. woodpecker, without Gewähr. Urheber see "Q:"!
declare t!,d!,t_wasser!,t_start!,t_innen!,sw%
T_Wasser!=99.8' for Seehöhe 130 m

while 1

    cls
    print ""
    print "        Empirische Formel, for a Frühstücks-egg perfect To kochen"
    print ""
    print "  Q: cook.exp.univie.ac.at/ostern_Ei.html"
    print "  +--------------------------------------------------------------------+"
    print "  ! Formel: t = 0.0016*d^2*ln(2*(t_Wasser-t_Start)/(t_Wasser-t_Innen)) !"
    print "  +--------------------------------------------------------------------+"
    print ""
    print "   d = egg-Durchesser in mm, rather said: The Durchmesser"
    print "       of/ one Röhre, by the the egg straight yet durchginge."
    print ""
    print "   t_Wasser = kochend, on Meereshöhe 100°C, Hochgebirge 96,5°"
    print ""
    print "   t_Start  = egg-temperature at insert in kochendes waters:"
    print "              from fridge: 4°C, otherwise Raumtemperatur(~20°C)"
    print ""
    print "   t_Innen  = WEICHES EI: 62°C (Ovalbumin-Gerinnung guard yolk)"
    print "              HARTES  EI: 82°C (Eigelb stockt)"
    print "   Result:"
    print ""
    print "   t        = Kochdauer in mins. ex insert in plenty kochendes Wasser"
    print "   ----------------------------------------------------------------------"
    print
    Locate 24,4: print "Ei-Durchmesser in mm (mostly 40-50): ";:input d!
    Locate 25,4: print "Ei-temperature before: ";:input T_Start!
    Locate 26,4: print "Weich = 0,  hard = 1: ";:input sw%
    T_Innen! = 62*(sw%=0) + 85*(sw%=1)

    if (T_Wasser!-T_Innen!)>0

        if (2*(T_Wasser!-T_Start!)/(T_Wasser!-T_Innen!))>0

            T! = 0.0016*d!*d!*ln(2*(T_Wasser!-T_Start!)/(T_Wasser!-T_Innen!))

        else

            Print ""
            Print "  One Straussen-egg???" : waitInput: break

        endif

    else

        print ""
        print "  so goes's not!" : waitInput : break

    endif

    print
    print "   +--------------------------------------------------------------------+"
    print "   !     your ";

    if sw%=0: print "weiches ";:endif

        if sw%=1: print "hartes ";:endif

            print "Ei needed very ";

            if int(t!)>0: print int(T!);" Minuten";:endif

                if (int(t!)>0) AND (int(t!)<t!):print "And ";:endif

                    if (int(t!)<t!):print int((t!-int(t!))*60+.5); " sec!";:endif

                        print tab(73);"!"
                        print "   +--------------------------------------------------------------------+"
                        beep
                        WaitInput

                    endwhile

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




ByteAttack
How could I all The years without The Formel life!
 
XProfan X4
Website:  [...] 
Facebook:  [...] 
04/25/21  
 




p.specht

appendix: Minimalistische Eieruhr

there The suitable Küchengeräte sooner difficult on Sekundengenauigkeit einzustellen are, the perfect Frühstücks-egg (normal Size) but in of my Seehöhe very 2 minutes and 43 sec Kochzeit needed, have I me allows, Dieter Zornow's Millisekunden-Formatierung for my want and XProfan 11.2a To adaptieren. Weiterer benefit: I can The Alarmlautstärke so take on, that I the Zeitablauf at the worst too yet in the side room listen would.

After the present Wissensstand remaining the cholesterol levels at Verzehr of Eiern in the welt of/ one ausgewogenen Ernährung with whom most Humans relatively konstant. studies set none Context between one regelmäßigen Eierkonsum (up to six Eiern per week) and Herzerkrankungen solid.

Windowstyle 24:Window Title "E I E R u H R":cls:font 2
Var alarmmin&=2:var alarmsec&=40'default 02:43
print "\n (end with ESC-Button)\n\n Please minutes and sec until Alarm prompt:"
print "\n Alarmminuten = ";:input alarmmin&
print "\n Alarmsekunden= ";:input alarmsec&
Window 150,20:cls rgb(220,200,255)
var az&=alarmmin&*60000+alarmsec&*1000
Declare ti&,tn&:var tm&=&gettickcount
Repeat :tn&=ti&:ti&=&gettickcount-tm&

if ti&>tn&:Windowtitle "Laufzeit: "+ms2minsec(az&-ti&)

    else :waitinput 900:case ti&>az&:beep

endif

until %key=27

End

Proc ms2minsec :parameters ms&:declare s&,w$,ms$,tmp$

w$="00:00":s&=ms&/1000:ms&=s&/60:tmp$=st$(ms&)+":"

If len(tmp$)=2 :w$="0"+tmp$ :else :w$=tmp$ :endif

    s&=s&-ms&*60:case s&<10:w$="0"
    Return @st$(s&)

Endproc

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




RudiB.


Sorry...bring me Error Message...

17 kB
Hochgeladen:05/19/21
Downloadcounter67
Download
 
XProfan X4
Xprofan X4
Rudolf Beske / München

Hardware: NB Intel I9 - 16GByte RAM
05/19/21  
 




p.specht

thanks for Info. my keyboard spin sometimes, there get 2 W eingestreut where tappt im dunkeln not hingehörten. Error fixed and supra korrigiert!
greeting
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/20/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

3.239 Views

Untitledvor 0 min.
H.Brill06/08/24
Member 361000509/28/22
p.specht11/21/21
R.Schneider11/20/21
More...

Themeninformationen

this Topic has 3 subscriber:

p.specht (3x)
RudiB. (1x)
ByteAttack (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