Create a two dimensional array

Assignment Help JAVA Programming
Reference no: EM131299237

Rule 1: Naming is an important issue in Java. Not only you need to define meaningful variable names, but also have to give appropriate names for the physical java file, which should be the same as your public class name that you edit.

Unless otherwise mentioned, you will follow the industry standard for Java naming convention:
(1) Java Classes start in uppercase and each individual word in the class name is capitalized;
(2) All Java methods and variables start in lowercase and each individual word in themethod and variable is capitalized;
(3) Each final variable (known as a constant) should be written in all uppercase.

Rule 2: There should be a space around all operators (e.g., 3 + 5, not 3+5). In addition, spacing with regards to parentheses should be consistent.

Rule 3: In addition to the Java naming convention, you are asked to add your name in front of each class name like LastNameFirstNameClassName.java.

For instance, if your name is "John Doe" and the class name is "RightTriangle", then your class name in your source code should be"DoeJohnRightTriangle" and your corresponding physical file name should be "DoeJohnRightTriangle.java".

Rule 4:Everything nested inside of an open brace should be indented with regular-sized spaces (say, 4 or 8 spaces).The open brace for functions and classes should (1) come at the end of the line and be preceded by a space like
public class DoeJohnRightTriangle {
public static void main() {
}
}

or (2)start with the new line as shown below:

public class DoeJohnRightTriangle
{
public static void main()
{
}
}

Rule 5: Always type block comments to include title of the project, program's purpose, your name, the date, and the version number as in the lectures or in the labs. For example,

/*******************************************************************
@Title: LastNameFirstNameClassName
@Purpose: To verify the edit, compile, execute function in Textpad
@Author: (your last & first name)
@Date: (today's date)
@Version: 1.0
********************************************************************/

Or

/**
@Title: LastNameFirstNameClassName
@Purpose: To verify the edit, compile, execute function in Textpad
@Author: (your last & first name)
@Date: (today's date)
@Version: 1.0
*/

Question 1: PersonalNameList

Companies acquire personal information from phone, World Wide Web, or email in order to sell or send an advertisement about their product. However, when this information is acquired, moved, copied or edited, the data may lose its quality. Often, the use of data administrators or a tool that has limited capabilities to correct the mistyped information can cause many problems. Moreover, most of the correction techniques are particularly implemented for the words used in daily conversations.

For this assignment question, write a program which will get the personal names from the user and store them in an array list called "personalNames". If there is any other character besides "a-z" or "A-Z" in a record, those should be flagged as ill-defined data. Because of the stated reasons above, instead of trying to fix the error in personal names, we want to remove this ill-defined data from the original array list and move it to another array list called "errorProneNames". In other words, error involving records should be saved in a separate array. At the end your solution should print out the "personalNames" and "errorProneNames" array list separately.

Your file will have the following documentation comments before the class header:

/**
@Title: LastNameFirstPersonalNameList
@Purpose: To practice ArrayList
@Author: (your last first name)
@Date: (today's date)
@Version: 1.0
*/

Question 2: Snowfall Total

The table below reflects the snowfall totals in centimeters for 5 different cities between the months of November and March.

 

November

December

January

February

March

Detroit

3.6

24.6

31.8

26.4

17.5

Chicago

4.7

29.1

33.0

29.2

17.7

Boston

5.5

23.3

41.0

26.7

14.4

New York

4.4

18.8

36.1

24.4

11.1

Washington DC.

2.1

10.1

18.8

18.8

8.9

Create a two dimensional array called snowfalltotal that will hold the values above.

a) Calculate and print: the average snowfall totals for each city.
b) Calculate and print: the average snowfall totals of these five cities for each month.
c) Calculate and print: In December, which city received the least amount of snowfall.
d) Calculate and print: Which city received the most amount of snowfall between the months of November and March.
e) Calculate and print: Which month has the most amount of snowfall of these five cities.

Your file will have the following documentation comments before the class header:

/**
@Title: LastNameFirstSnowFallTotal
@Purpose: To practice two dimensional arrays
@Author: (your last first name)
@Date: (today's date)
@Version: 1.0
*/

Reference no: EM131299237

Questions Cloud

Determine the required iip3 of an 11a g receiver : Repeating the calculations leading to Equation, determine the required IIP3 of an 11a/g receiver for a data rate of 54 Mb/s and a sensitivity of 265 dBm.
Experiences a recession : Suppose that a country currently is running a trade deficit. What would you expect to see happen to the deficit if the country suddenly experiences a recession and why?
Victims of a large earthquake in southern chile : Suppose that Americans donate to victims of a large earthquake in southern Chile. How would these donations affect the Balance of Payments? Include a short explanation.
Determine the required synthesizer phase noise : Suppose the interferers in Example are not approximated by narrowband signals. Is the corruption due to reciprocal mixing greater or less than that calculated in the example?
Create a two dimensional array : COSC 1436: Programming Fundamentals - Create a two dimensional array called snowfalltotal that will hold the values - Define meaningful variable names, but also have to give appropriate names for the physical java file, which should be the same as y..
Determine the required synthesizer phase noise : Assume a noise-to-signal ratio of -35 dB.- Determine the required synthesizer phase noise for an 11a receiver such that reciprocal mixing is negligible.
Research data and information regarding an rfid system : Each student is required to research and collect data and information regarding an RFID system that can be integrated into a specific business process to solve a problem in their individual industry, career or field of study.
Currency speculators believe : Suppose that currency speculators believe that the value of the euro will increase compared to the dollar (they expect the euro to appreciate). Assume that nothing else changes, how would this belief be represented in the market for dollars?
What is highest blocker level that allows a signal to noise : If the receiver has a phase noise of -100 dBc/Hz, what is the highest blocker level that allows a signal-to-noise ratio of 30 dB? Neglect other sources of noise.

Reviews

len1299237

12/3/2016 1:54:28 AM

Please only do the first part of the assignment .. in text pad form only please and thank you.. Note 1: Unless otherwise mentioned, you are asked to upload ONLY your java source files(not the class files) through blackboard. Email submission is not accepted, because of confusion in grading. Note 2:If your programs contain any syntactical errors, no points will be given. Thus, please make sure your programs are properly compiled with computers at the CS labs, not only in your laptop or desktop environments. Note 3:No late submission will be accepted, thus keep the deadline. Note 4: Grading will be divided into two categories, formatting and logic, where formatting compromise 25% of your total grade. Formatting will be based on the following rules.

Write a Review

 

JAVA Programming Questions & Answers

  Add event handling to the button find out the value the

make a windows program in java that has a labeled text field for the price of a meal. there are different discounts for

  Computer science and information system

In the College of Computer Science and Information System, forty students were asked to rate the quality of teaching of his Course Instructor in the class room environment on a scale of 1 to 10 (1 means minimum standard of teaching and 10 means ex..

  Construct 4 instances of your instrument

Create a Java test class that simulates using your MusicalInstrument class.  In your test class you should at a minimum construct 4 instances of your instrument,

  Write a program called drawing in the form of a public class

Write a program called Drawing in the form of a public class Drawing that extends a Java JFrame and provides the following features.

  Java program editing

Prompt the user for the student's score and put that value into an object

  Implement a personal scheduler windows application

Implement a personal scheduler Windows application. The application should have the following features: Create a new Java Project named SchedulerApp.

  Example of a problematic programming situation or scenario

Suggest one (1) example of a problematic programming situation or scenario that the use or implementation of a sequence structure could resolve

  How to access to elements of document object model

To limit creation of malicious code, do you believe that access to elements of document object model and some Javascript functionality be limited?

  Explain how the loop displaying the menu

Explain how the loop displaying the menu is exited, what value does menuSel have when the program finishes? Describe what happens next when menuSel gets this value.

  Implementation of memory management

Implementation of memory management

  Allow the user to display a work history report

The 'report screen' shall:Allow the user to display a work history report for an individual or for all employees for the two weeks prior to the report request.

  Returns the object with the largest measure

public static Measurable maximum(Measurable[] objects)that returns the object with the largest measure. Use that method to determine the country with the largest area from an array of

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd