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 2 of 2

Thread: [Beginner] Need help with my Java homework

  1. #1
    Junior Member
    Join Date
    Apr 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post [Beginner] Need help with my Java homework

    Hello people,

    I'm beginning courses of programming and I have some difficulties...
    I have a homework to do using Java language !

    So I wanted to ask you, if maybe you can help me please. I don't know where to start at all !

    The subject is :

    "1-You need to write a program that asks the user for an array size, and then asks the user to enter that many integers. Your program will then print out the sum , average, largest and smallest of the values in the array. 10 points

    2- According to the U.S. Census Bureau, the 10 largest American cities (by population) in 2000 were as follows: 10 points

    New York, NY (8,008,278 people)
    Los Angeles, CA (3,694,820)
    Chicago, IL (2,896,016)
    Houston, TX (1,953,631)
    Philadelphia, PA (1,517,550)
    Phoenix, AZ (1,321,045)
    San Diego, CA (1,223,400)
    Dallas, TX (1,188,580)
    San Antonio, TX (1,144,646)
    Detroit, MI (951,270)

    Define an array (or arrays) that holds this information about locations and population. Print a table of locations and population information that includes the total population in all 10 cities."


    Thanks a lot in advance !

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    205
    My Mood
    Amused
    Thanks
    6
    Thanked 14 Times in 14 Posts

    Default Re: [Beginner] Need help with my Java homework

    Have you tried anything ?
    Whatever you are, be a good one

Similar Threads

  1. Need help with homework (beginner)
    By JavaPotato in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 6th, 2014, 06:50 PM
  2. [Beginner] Need Help for my Homework
    By deluxe7 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 12th, 2014, 05:04 PM
  3. Homework Help Java Beginner
    By Edmacelroy in forum What's Wrong With My Code?
    Replies: 7
    Last Post: October 21st, 2013, 04:39 PM
  4. Beginner struggling with homework question
    By mets3214 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 6th, 2013, 08:10 PM
  5. Homework assignment (beginner)
    By z3ohyr84 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 30th, 2011, 01:32 PM