Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    converting java to pseudocode

    Hi,I'm really new to java and am a student at university.For one of my projects I have to convert pseudocode to java.I have completed most of it but now I'm stuck on one module and I've just got no idea where to start on this.If anyone could give me any help on this it would be much appreciated.I just need a starting point.For example whats the equivaleny for "Write" in java or how do I open the stats file.Thanks to anyone that could help me.






    Module 11 : saveStatistics
    IN : Year
    OUT : ---
    BEGIN
    11.1 StatsFile ← "Stats" + Year + ".txt"
    11.2 Open StatsFile for writing
    11.3 Write MonthName[WettestMonth] to StatsFile
    11.4 Write WettestFigure to StatsFile
    11.5 Write HighestDay to StatsFile
    11.6 Write MonthName[HighestDayMonth]to StatsFile
    11.7 Write HighestTemp to StatsFile
    11.8 Write MonthName[SunniestMonth] to StatsFile
    11.9 Write MaxSunshine to StatsFile
    11.10 Close StatsFile

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    http://java.sun.com/docs/books/tutorial/essential/io/

    java docs in file input/output (reading and writing )


  •  

    LinkBacks (?)

    1. 06-16-2014, 08:41 AM

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •