Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: SOLUTION

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SOLUTION

    In the Meteorological institute at Ruritania, one can find the following at Shiaho Railway Station in 2013

    • In May 22 days with rainfall totaled 89 mm in that month
    • In June 1822 days with rainfall totaled 127 mm in that month
    • In Jule 8 days with rainfall totaled 19 mm in that month

    Write a Java program that in some variable you write information the above information and that calculate in other variables and write onto the screen the following 3 information (with suitable text in front of the numbers)

    a. How much rain was there in al in the summer of 2013(may+june+july) in Ruritania
    b. How much on the average did it rain in the summer of 2013 in Ruritania
    c. The normal rainfall in an average July at Shiaho Railway Station is 81mm. How much percentage of the normal rainfall did it rain in the month of July in 2013?

    You shall write a Java program, compile it, and make sure that it calculates the right values( check this by doing this by hand calculation)


    Tips: Remember that you will use java keyword int if you will declare a whole number and the Java keyword double if you will need a floating number and that division by two whole numbers gives a whole number which is an approximation ( truncated) to give a whole number which may not be the one you want.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: SOLUTION

    Do you have any specific java programming questions?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: SOLUTION

    Quote Originally Posted by tefo View Post
    • In June 1822 days
    Long month!
    Improving the world one idiot at a time!

Similar Threads

  1. HR Solution
    By sharif_jp in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 28th, 2014, 07:27 AM
  2. Program solution
    By Jayasree in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 18th, 2014, 01:47 PM
  3. exercise solution ???
    By somebodyonearth in forum Java Theory & Questions
    Replies: 1
    Last Post: March 11th, 2012, 12:52 PM
  4. Solution
    By Suresh.athi in forum The Cafe
    Replies: 1
    Last Post: January 19th, 2012, 08:46 AM
  5. Please help me with the solution
    By abhyudayaupadhyay in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 6th, 2011, 03:21 PM