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

  Concurrent access to objects

This question asks about synchronizing methods for stack and queue objects. (a) Bounded stacks can be de?ned as objects, each containing an array of up to n items. Here is apseudocode for one form of stack class.

  Coin change program

coin change program. Make change using fewest number of coins. I'm attempting dynamic programming and i may be misunderstanding the algorithm

  What balance will be stored

Let Account be the bank account class discussed. What balance will be stored in acct1, acct2, and acct3 after the following statements have been executed

  Create a class diagram that shows an interface

Create a class diagram that shows an interface called Buyer in the Violet UML editor. This interface should declare the methods to perform a buyer's responsibilities

  Create a payroll program named calcpay

Create a payroll program named CalcPay that allows the user to enter two double values namely hours worked and hourly rate. After the user enters the rate and hours, the program should calculate the gross pay.

  Eliminate the last comma in the string output

Eliminate the last comma in the String Output which includes array output values from "hourlyTemp[i]" (entire list). My guess is that this needs to incorporate "%d" somehow but my online book won't accept the use of "%d" for some reason. From the boo..

  Create a uml class diagram for a survey class

Create a UML Class Diagram for a Survey class, using the application of your choice. Suggested applications are Visio, Word, Excel or Visual Paradigm. The following are requirements of the Survey class.

  Code that sorts the household sizes in ascending order

The program should allow the user to enter each household size and determine the mean and median household size in Marengo. Need to write the code that sorts the household sizes in ascending order using a bubble sort.

  What is the most restrictive access modifier

What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?

  Number of elements in the array dynamically

When instantiating an array, you can assign the number of elements in the array dynamically, using a variable (as opposed to using a constant). What situation will that be useful? and why?

  Complete the code to counts the number of lines input

Complete the code to counts the number of lines input by a user until the user enters the string ENDOFDATA (must be uppercase letters, no spaces) on a line by itself.

  A program with main() would produce output below

A  program with main() would produce output below - Your code ...Calling getLargestUncommonDigit()

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