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

  Write a java program to read sequences of integers from a

write a java program to read sequences of integers from a text file build a binary search tree for each sequence by

  Write a public static method writetokenstolines

Write a public static method called writeTokensToLines that will read an input file one token at a time using Scanner, and write the tokens to a file using a PrintWriter, one token per line, with the tokens numbered starting at 1.

  Write a java program called salesinfominer

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format. The program must then read in information about past sales transactions and output all the products to a new file, sorted by product description,..

  Create internal data structure and gui to display structure

Read a data file, create the internal data structure, create a GUI to display the structure, and let the user search the structure. Sort the structure, use hash maps to create the structure more efficiently.

  Write a program to solve rsa

Write a program to solve RSA, Use either Java or "VERY DETAILED" pseudocode. Take input for p, q, e, the number to encrypt and the number to decrypt.

  Define a class called counter an object of this class is

define a class called counter. an object of this class is used to count things so it records a count that is a

  Implement a standalone desktop game

Description - The goal of the class project is to implement a standalone desktop game. This game is a 2D game cop and robbers game, called RIC Racers, which is closely modeled after the C.A.P online flash game Robbers vs. Cops

  Create a world class that contains a 2d array

You have to create a world class that contains a 2d array then create an abstract class called organism that contains move() method the organism should move randomly one step at the time.

  Prepare an application that creates object of the classes

Write a CarbonFootPrint with only a pure virtual getCarbonFootprint method -  Have each of your classes inherit from the abstract class and implement the getCarbonFootprint method to compute an appropriate carbon footprint for that class.

  What is overloading and what is overriding

What is overloading and what is overriding? Wrtie JAVA code code to explain it.

  Write the bubble sort

The village of Marengo conducted a census and collected records that have household data, including the number of occupants in each household.

  Write program that takes theelevator-nxtthrough calibration

Write the program that takes theElevator-NXTthrough a calibration and test sequence, as shown in thisvideo. Raise the car as far as it goes to the top (the top floor).

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