Hello and welcome to our community! Is this your first visit?
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
    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 : ---
    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. #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Bradford, UK
    Thanked 68 Times in 67 Posts

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


Posting Permissions

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