[VA] HP-71B Mini-challenge: Qualifying for a job II: Your best image
|
09-29-2022, 09:24 PM
Post: #1
|
|||
|
|||
[VA] HP-71B Mini-challenge: Qualifying for a job II: Your best image
Hi, all, After passing with flying colors the first part of your job application evaluation (the infamous "DEF FN Hell" part,) now the Human Resources manager, Ms. Lovejoy, mercilessly inflicts a new programming task upon those applicants who survived, namely asking them to create a simple three-liner strictly according to the following specification: The BASIC program (for a bare-bones HP-71B) must first (1) perform some initialization, ask for a real value x and force it to the range [1..100], then (2) it must display on a single line the values of
Your finished program must produce the following five test sample runs (plus "OK"), roughly tabulated here as follows for clarity's sake (the values should be output exactly as shown, the spacing is just indicative):
>RUN -> ? PI/2 [ENDLINE] -> 1.571 1.0 -5.1034E-12 -195948537906. 5.262060 >RUN -> ? 13 [ENDLINE] -> 13.000 0.4 0.9074 0.5 442415.956958 >RUN -> ? 30 [ENDLINE] -> 30.000 -1.0 0.1543 -6.4 1.068647E13 >RUN -> ? 51*PI/2 [ENDLINE] -> 80.111 -1.0 -3.9728E-11 25171429518.9 6.188666E34 Best of luck with your job application ! V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)