Jump to content



Photo
- - - - -

Could You Help Me?

fx-5800p programming casio help language

  • Please log in to reply
3 replies to this topic

#1 NeilPatrickHarris

NeilPatrickHarris

    Newbie

  • Members
  • Pip
  • 3 posts
  • Gender:Male

  • Calculators:
    fx-5800p

Posted 18 March 2015 - 10:10 AM

I bought a fx-5800p and i am trying make a program, there is no thing about programming in manual. What kind of a language or how can we learn make a programme, i guess they were supposed that we are know programming. Yes i know the Fortran but i couldn't make a program in this calculator.
 
Could you help me? 
 
and can you write this according to calculator's language;
 
program sample
 
a,b,c are an integer
 
print*, ''what is your born year?''
read*,a
 
print*, ''what is your father's born year??''
read*,b
 
c=a-b
print*, ''your father was'',c,''years old''
 
end pragrame sample
 
Kind Regards

Edited by NeilPatrickHarris, 18 March 2015 - 10:14 AM.


#2 pan.gejt

pan.gejt

    Casio Freak

  • Members
  • PipPipPipPip
  • 262 posts
  • Gender:Male
  • Location:CZ

  • Calculators:
    .

Posted 20 March 2015 - 06:21 AM

-Programming language is Basic

-The programming is mentioned in the UG on pages 101-124

http://support.casio...fx-5800P_EN.pdf

-Here on the forum is very nice programming tutorial for CASIO Basic

- You can download UG for other programmable models (Algebra models, fx-7400, fx-9750, fx-9760G, fx-3650P). 

http://support.casio...ist.php?cid=004

-visit following blog

http://edspi31415.bl...-length-of.html(on the right side is more programs, you can find on the blog some programs for fx-3650P also)

- download following book

fx-3650p practical programming examples

http://www34.zippysh...4S6oM/file.html

Basic Programming CASIO

http://www.casio.edu...Programming.pdf

 

Fix0: "what is your born year?"?->a:"what is your father's born year?"?->b:a-b->c:''your father was'':c(put here triangle mark as output command)

''years old''


Edited by pan.gejt, 20 March 2015 - 06:30 AM.

  • NeilPatrickHarris likes this

#3 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 20 March 2015 - 09:19 AM

Hi,

 

You can use CASIO Basic with fx-5800P. This language is minimal Basic but considering hardware performance (CPU clock, etc) the function is good enough. fx-5800P, fx-9860G, fx-9860GII, fx-CG10 and fx-FD10 Pro has 'New Generation' of CASIO Basic and there is compatibility. fx-5800P CASIO Basic has limitation, less commands than otheres, for example, it has no string handling commands, no I/O commands, etc.

 

If you cope with the limitation, you can still make useful programs.

 

CASIO Basic has a couple of 'dialects', those are old commands which has been prepared for old CASIO calcs as follows;

 

 ? (input command)

 " " (output command)

 => (jump command)

 

CASIO Basic has -> command for substitution.

 

When you want to substitute 10 to variable A, probably you write A=10. With CASIO Basic you should write 10->A

 

All other commands of CASIO Basic is very similar to ordinary Basic languages.

 

There are, If, For, While, Do, Break, Return, etc. Probably you are familiar with those commands, something may be deferent from FORTRAN, but should be similar.

 

With CASIO Basic there is 2 commands for input; ? (see above) and Getkey command.

Also there are 2 output commands; " " and Locate command.

 

If you want to write as exactly required in your question, program is as follows;

 

"what is your born year"?A

"what is your father's year"?B

"your father was"

""

Locate 1,4,A-B

Locate 4,4,"years old"

 

----

 

The usage of input command, ? here is different from pan.gejt's solution, please see there is no '->'.

If you compare with the "bla bla bla"?->A and "bla bla bla"?A, you will see deference from their output.

 
With fx-5800P and fx-FD10 Pro you can use "bla bla bla"?A, but cannot do with fx-9860(GII) and fxCG10. This is a good example there still be dialect on old commands.

 

But please note Basic commands are almost 100% compatible.

 

" " (output) command also send carriage return and line feed. "" does output NO caracters but send carriage return and line feed only. 

 

 

Please try!


Edited by Krtyski, 20 March 2015 - 09:42 AM.

  • pan.gejt likes this

#4 NeilPatrickHarris

NeilPatrickHarris

    Newbie

  • Members
  • Pip
  • 3 posts
  • Gender:Male

  • Calculators:
    fx-5800p

Posted 27 March 2015 - 05:40 AM

-Programming language is Basic
-The programming is mentioned in the UG on pages 101-124
http://support.casio...fx-5800P_EN.pdf
-Here on the forum is very nice programming tutorial for CASIO Basic
- You can download UG for other programmable models (Algebra models, fx-7400, fx-9750, fx-9760G, fx-3650P).
http://support.casio...ist.php?cid=004
-visit following blog
http://edspi31415.bl...-length-of.html(on the right side is more programs, you can find on the blog some programs for fx-3650P also)
- download following book
fx-3650p practical programming examples
http://www34.zippysh...4S6oM/file.html
Basic Programming CASIO
http://www.casio.edu...Programming.pdf

Fix0: "what is your born year?"?->a:"what is your father's born year?"?->b:a-b->c:''your father was'':c(put here triangle mark as output command)
''years old''



Thank you, i got it :)

Hi,

You can use CASIO Basic with fx-5800P. This language is minimal Basic but considering hardware performance (CPU clock, etc) the function is good enough. fx-5800P, fx-9860G, fx-9860GII, fx-CG10 and fx-FD10 Pro has 'New Generation' of CASIO Basic and there is compatibility. fx-5800P CASIO Basic has limitation, less commands than otheres, for example, it has no string handling commands, no I/O commands, etc.

If you cope with the limitation, you can still make useful programs.

CASIO Basic has a couple of 'dialects', those are old commands which has been prepared for old CASIO calcs as follows;

? (input command)
" " (output command)
=> (jump command)

CASIO Basic has -> command for substitution.

When you want to substitute 10 to variable A, probably you write A=10. With CASIO Basic you should write 10->A

All other commands of CASIO Basic is very similar to ordinary Basic languages.

There are, If, For, While, Do, Break, Return, etc. Probably you are familiar with those commands, something may be deferent from FORTRAN, but should be similar.

With CASIO Basic there is 2 commands for input; ? (see above) and Getkey command.
Also there are 2 output commands; " " and Locate command.

If you want to write as exactly required in your question, program is as follows;

"what is your born year"?A
"what is your father's year"?B
"your father was"
""
Locate 1,4,A-B
Locate 4,4,"years old"

----

The usage of input command, ? here is different from pan.gejt's solution, please see there is no '->'.
If you compare with the "bla bla bla"?->A and "bla bla bla"?A, you will see deference from their output.

With fx-5800P and fx-FD10 Pro you can use "bla bla bla"?A, but cannot do with fx-9860(GII) and fxCG10. This is a good example there still be dialect on old commands.

But please note Basic commands are almost 100% compatible.

" " (output) command also send carriage return and line feed. "" does output NO caracters but send carriage return and line feed only.


Please try!


Thank you :) i got it.





Also tagged with one or more of these keywords: fx-5800p, programming, casio, help, language

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users