Friday, November 5, 2021

US Dollar To Philippine Peso in Pascal

 A program that I wrote that will ask money in US Dollar value and convert it into Philippine Peso equivalent.

  I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




Program Listing

Program US_Dollar_Philippine_Peso;

Uses Crt;


Var

  Choice : Char;

  US_Dollar : Real;


Procedure convert_Philippine_Peso(var US_Dollar: Real);

Var

  Convert : Real;


Begin

 Convert := US_Dollar * 50.77;

 writeln('$',US_Dollar:5:2,' is equivalent to PHP ',Convert:5:2);

End;


Begin

  Clrscr;

  Choice := 'Y';

  Writeln;

  Writeln;

  Write('US Dollar To Philippine Peso in Pascal');

  Writeln;

  Writeln;

  While upcase(Choice) = 'Y' Do

    Begin

     Writeln;

     Write('Enter US Dollar Value : ');

     Readln(US_Dollar);

     Writeln;

     convert_Philippine_Peso(US_Dollar);

     writeln;

     Writeln;

     Write('Continue [Y/N] ');

     readln(choice);

     Writeln;

    End;

    Writeln;

    Write('End of Program');

    Writeln;

  Readln;

End.


No comments:

Post a Comment