Preview

mr shravan

Satisfactory Essays
Open Document
Open Document
881 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
mr shravan
COIT29222 Programming Principles (T3 2013)
Assessment item 2— Assignment 2
Due date:

Thursday of Week 10

Weighting:

30%

Length:

NA

ASSESSMENT

2

Objectives
This assessment item is designed to test your understanding of arrays/arrayLists, objects, classes, sorting and searching.

Assessment task
Write a java application that allows the user to read, display, sort, and search the city (type String), and weather condition data (defined by the low temperature, high temperature and humidity, all integer types) for N cities in Australia. N should be declared as a constant and should be either

equals to the largest digit of your student ID number or N=5 (if the highest digit of your student ID number is less than 5). The city name and weather condition data must be stored in separate single dimension arrays/arrayLists. This requires that your implementation must use parallel arrays (or arrayLists). If there are any uses of an array of records or structures/objects, it will be penalized under the heading “Using techniques not covered in the course.” The ranges for these weather condition data should be are in -20∼20, 0∼60 and 10% ∼100% respectively. These data must be entered from the keyboard and a validation for minimum and maximum values for each weather condition data variable must be done. In addition, the high temperature must be greater low temperature in the single set input for a city. Your application should display and execute a menu with the following options. A switch statement must be used to execute the following menu options.
1. Input data
2. Display
3. Sort by city
4. Sort by low temperature
5. Search
6. Display extreme temperature
7. Exit

The details for each option are described as below.
1. Input data
This option reads city name and weather condition data for N cities from the keyboard and stores them in separate single dimension arrays/arraylists. Figure 1 shows a sample input for a city. If the

You May Also Find These Documents Helpful

  • Good Essays

    Geog/111 Final Exam

    • 1610 Words
    • 7 Pages

    4) Which of the following would NOT be an appropriate use of a climatological record?…

    • 1610 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    PhysGeogCh

    • 1891 Words
    • 14 Pages

    Label the correct Köppen climate types for Charts 1 - 5. Use each of the following climate types only once.…

    • 1891 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    Dsci 202 Answers

    • 661 Words
    • 3 Pages

    1. WARNING: ALL FORMS OF CHEATING WILL BE PROSECUTED AS OUTLINED IN THE UNIVERSITY SENATE RULES AND REGULATIONS §§ 2.6.1-2.6.5, AND POSSIBLY 17 U.S.C.A. §§ 101, 106. PENALTIES TYPICALLY CARRY A MINIMUM OF “F” FOR THE COURSE, BUT MAY ALSO RESULT IN EXPULSION FROM THE UNIVERSITY. SOME FORMS OF CHEATING MAY ALSO INCUR FINES AS OUTLINED IN 17 U.S.C.A. §§ 504, 506.…

    • 661 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    To make sure that we can identify your exam if your student ID number is hard to read, please tick the boxes below to fill in your seven digit student ID number. Detailed instructions are on the next page. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0…

    • 6053 Words
    • 25 Pages
    Satisfactory Essays
  • Satisfactory Essays

    that may result in a false academic evaluation of that student or of another student. Without…

    • 2530 Words
    • 27 Pages
    Satisfactory Essays
  • Good Essays

    2. What is the advantage of describing the climate of locality in terms of both average weather plus extremes in weather?…

    • 697 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Data Analysis

    • 1650 Words
    • 7 Pages

    3. In a post office, the mailboxes are numbered from 1 to 4,500. These numbers represent…

    • 1650 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1. Describe the relationship that you observed between pressure and volume in this lab. Refer to your data and/or graph to help support your answer.…

    • 269 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Shreyansh

    • 15539 Words
    • 63 Pages

    Modern textbooks in financial economics often misrepresent the history of derivative securities. For example, in the opening sentence Hull (2006) suggests that derivatives became significant only during the past 25 years, and that it is only now that they are traded on exchanges. "In the last 25 years derivatives have become increasingly important in the world of finance. Futures and options are now traded actively on many exchanges throughout the world." (Hull 2006, p. 1) Mishkin (2006) is even more adamant that derivatives are new financial instruments that were invented in the 1970s. He suggests that an increase in the volatility of financial markets created a demand for hedging instruments that were used by financial institutions to manage risk. Does he really…

    • 15539 Words
    • 63 Pages
    Powerful Essays
  • Satisfactory Essays

    The Wedding Case

    • 498 Words
    • 2 Pages

    Contact Details : Email ID : Phone No : Mobile No : Qualification Details (as on 01.12.2011): Exam Passed Graduation: Degree B.Tech Subject /Stream Information Technology Date of Passing 04-10-2010 % of Marks 75.54 Class / Grade First Class bijolianabhi@gmail.com 01489-236249…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Jolin

    • 2194 Words
    • 9 Pages

    StudentId 7301645 9301075 9306244 8305325 9304302 6305834 6305834 7307220 8304555 7301174 9305814 8305409 8300870 8300284 7300923 9304750 8306831 9306309 8308395 8303213 8303790…

    • 2194 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Truancy Problems

    • 273 Words
    • 2 Pages

    * May result in an ineligibility to graduate or to receive credit for the class attended.…

    • 273 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Youth Action

    • 4593 Words
    • 19 Pages

    STUDENT ID : 000650897 STUDENT NAME : PYIE PHYO MAUNG COURSE : COMP1304 INFORMATION SYSTEMS ENGINEERING…

    • 4593 Words
    • 19 Pages
    Good Essays
  • Powerful Essays

    online help desk

    • 1245 Words
    • 6 Pages

    The existing system is a semi automated system. Here the student knows the college details by manually from other persons or some broachers. It becomes tedious for a fresher who enters the college campus with knowing anything. The manual system gives us very less security for saving data; some data may be lost due to mismanagement. It’s a limited system and fewer users friendly. Searching of particular information is very critical it takes lot of time. It is very difficult to get all university college information at a time. The users only know his information only not others. It is very critical to share public information to all users. The manual system having the lot of time consuming process. Sending request for Hostel, canteen, library is not possible in manual system.…

    • 1245 Words
    • 6 Pages
    Powerful Essays
  • Best Essays

    NAME: AHMED NAWAZ RASHEED STUDENT ID NO: S 10321785 ID NUMBER: A 003000 EMAIL ADDRESS: email.nawa@gmail.com…

    • 3945 Words
    • 16 Pages
    Best Essays

Related Topics